Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions .github/workflows/conda_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,75 +99,6 @@ jobs:
shell: pixi exec --spec rattler-build -- bash -e {0}
run: rattler-build upload anaconda --force /tmp/rattler-build/linux-64/*.conda

build_package_osx-64:
name: Build conda package for osx-64
runs-on: macos-13
strategy:
fail-fast: false
matrix:
variant: ["r43", "r44"]
env:
ANACONDA_API_KEY: ${{ secrets.ANACONDA_API_TOKEN }}
ANACONDA_OWNER: ${{ vars.ANACONDA_OWNER }}

steps:
- name: Checkout pull request branch
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get latest version
id: latest-version
if: ${{ github.event.inputs.version }} == "latest"
uses: pozetroninc/github-action-get-latest-release@v0.8.0
with:
repository: ${{ github.repository }}
token: ${{ secrets.CI_TOKEN }}

- name: Set version
id: set-version
run: |
if [[ ${{ github.event.inputs.version }} != "latest" ]]; then
version=${{ github.event.inputs.version }}
else
version=${{ steps.latest-version.outputs.release }}
fi
echo "version=${version}" >> "$GITHUB_OUTPUT"

- name: Download release
uses: robinraju/release-downloader@v1
with:
tag: ${{ steps.set-version.outputs.version }}
token: ${{ secrets.CI_TOKEN }}
out-file-path: /tmp/recipe
tarBall: true

- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.9.2
with:
run-install: false

- name: Create recipe from template
shell: pixi exec --spec sed --spec coreutils --spec wget -- bash -e {0}
run: |
cp .github/recipe/recipe.yaml /tmp/recipe/recipe.yaml
cp .github/recipe/variant_${{ matrix.variant}}.yaml /tmp/recipe/variants.yaml
repository=${{ github.repository }}
build=${{ github.event.inputs.build }}
version=${{ steps.set-version.outputs.version }}
sha256sum=$(sha256sum /tmp/recipe/${repository//*\//}-${version}.tar.gz | cut -d ' ' -f 1)
sed -i "s/VERSION_PLACEHOLDER/${version}/g" /tmp/recipe/recipe.yaml
sed -i "s/SHA256SUM_PLACEHOLDER/${sha256sum}/g" /tmp/recipe/recipe.yaml
sed -i "s/BUILD_PLACEHOLDER/${build}/g" /tmp/recipe/recipe.yaml

- name: Build conda package
shell: pixi exec --spec rattler-build -- bash -e {0}
run: rattler-build build -c dnachun -c conda-forge -c bioconda --output-dir /tmp/rattler-build --recipe-dir /tmp/recipe

- name: Upload package
shell: pixi exec --spec rattler-build -- bash -e {0}
run: rattler-build upload anaconda --force /tmp/rattler-build/osx-64/*.conda

build_package_osx-arm64:
name: Build conda package for osx-arm64
runs-on: macos-14
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ LinkingTo:
RcppGSL
NeedsCompilation: yes
VignetteBuilder: knitr
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
Loading