Skip to content

Merge pull request #390 from kmarchais/release/v0.17.0 #781

Merge pull request #390 from kmarchais/release/v0.17.0

Merge pull request #390 from kmarchais/release/v0.17.0 #781

Workflow file for this run

name: Conda Build
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
conda-build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
python-version:
- "3.10"
- "3.14"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set stdlib variant
id: stdlib
shell: bash
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
echo 'args=--variant "c_stdlib=sysroot" --variant "c_stdlib_version=2.17"' >> "$GITHUB_OUTPUT"
elif [[ "$RUNNER_OS" == "macOS" ]]; then
echo 'args=--variant "c_stdlib=macosx_deployment_target" --variant "c_stdlib_version=11.0"' >> "$GITHUB_OUTPUT"
elif [[ "$RUNNER_OS" == "Windows" ]]; then
echo 'args=--variant "c_stdlib=vs" --variant "c_compiler=vs2022" --variant "cxx_compiler=vs2022"' >> "$GITHUB_OUTPUT"
fi
- name: Build conda package
uses: prefix-dev/rattler-build-action@1ca5f45832f419a46d1326ccc5861d7e14d67c44 # v0.2.39
with:
recipe-path: conda/recipe.yaml
artifact-name: conda-package-${{ matrix.os }}-py${{ matrix.python-version }}
build-args: >-
--variant "python=${{ matrix.python-version }}"
${{ steps.stdlib.outputs.args }}