Switch to rattler-build #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: conda-build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
paths: | |
- '.github/**' | |
- 'conda.recipe/**' | |
jobs: | |
build: | |
name: ${{ matrix.variant-file }} | |
runs-on: ${{ matrix.os }} | |
env: | |
CI: True | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { variant-file: linux_64_python3.9.____cpython, target-platform: linux-64, os: ubuntu-latest, rattler-build-args: '' } | |
- { variant-file: linux_64_python3.13.____cpython, target-platform: linux-64, os: ubuntu-latest, rattler-build-args: '' } | |
- { variant-file: osx_64_python3.10.____cpython, target-platform: osx-64, os: macos-latest, rattler-build-args: '' } | |
- { variant-file: osx_arm64_python3.9.____cpython, target-platform: osx-arm64, os: macos-latest, rattler-build-args: '' } | |
- { variant-file: osx_arm64_python3.13.____cpython, target-platform: osx-arm64, os: macos-latest, rattler-build-args: '' } | |
- { variant-file: win_64_python3.9.____cpython, target-platform: win-64, os: windows-latest, rattler-build-args: '' } | |
- { variant-file: win_64_python3.13.____cpython, target-platform: win-64, os: windows-latest, rattler-build-args: '' } | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get git metadata | |
id: git-metadata | |
shell: bash | |
run: | | |
if [ -f .git/shallow ]; then | |
git fetch --prune --unshallow | |
fi | |
GIT_DESCRIBE_TAG="$(git describe --tags --abbrev=0 || echo UNKNOWN)" | |
echo GIT_DESCRIBE_TAG=${GIT_DESCRIBE_TAG} >> $GITHUB_OUTPUT | |
GIT_DESCRIBE_HASH=g"$(git rev-parse --short HEAD || echo UNKNOWN)" | |
echo GIT_DESCRIBE_HASH=${GIT_DESCRIBE_HASH} >> $GITHUB_OUTPUT | |
GIT_DESCRIBE_NUMBER="$(git rev-list --count ${GIT_DESCRIBE_TAG}..HEAD || echo UNKNOWN)" | |
echo GIT_DESCRIBE_NUMBER=$GIT_DESCRIBE_NUMBER >> $GITHUB_OUTPUT | |
- uses: prefix-dev/rattler-build-action@b1147fbfc554014f7b152296deeab0de1789f05d # v0.2.30 | |
with: | |
recipe-path: conda.recipe/recipe.yaml | |
build-args: -m .ci_support/${{ matrix.variant-file }}.yaml --target-platform ${{ matrix.target-platform }} ${{ matrix.rattler-build-args }} | |
artifact-name: package-${{ matrix.variant-file }} | |
env: | |
GIT_DESCRIBE_TAG: ${{ steps.git-metadata.outputs.GIT_DESCRIBE_TAG }} | |
GIT_DESCRIBE_HASH: ${{ steps.git-metadata.outputs.GIT_DESCRIBE_HASH }} | |
GIT_DESCRIBE_NUMBER: ${{ steps.git-metadata.outputs.GIT_DESCRIBE_NUMBER }} |