|
| 1 | +# NOTICE - Actions permissions policy (Settings > Actions > General): |
| 2 | +# - "Allow sirius-db, and select non-sirius-db, actions and reusable workflows" |
| 3 | +# - Allow actions created by GitHub: YES (covers actions/*) |
| 4 | +# - Allow actions by Marketplace verified creators: NO |
| 5 | +# - Explicitly allowed third-party actions: |
| 6 | +# prefix-dev/setup-pixi@* |
| 7 | +# prefix-dev/rattler-build-action@* |
| 8 | +# mozilla-actions/sccache-action@* |
| 9 | +# - Require actions to be pinned to a full-length commit SHA: NO |
| 10 | +# |
| 11 | +# Adding a new action? You must: |
| 12 | +# 1. Pin it to a full-length commit SHA (e.g. uses: owner/repo@<40-char-sha> # vX.Y.Z) |
| 13 | +# 2. If it is not from sirius-db, GitHub, or the explicitly allowed third-party actions above, add it to the |
| 14 | +# project-level allowlist above before merging |
| 15 | +name: Conda |
| 16 | + |
| 17 | +on: |
| 18 | + push: |
| 19 | + branches: |
| 20 | + - dev |
| 21 | + pull_request: |
| 22 | + merge_group: |
| 23 | + |
| 24 | +concurrency: |
| 25 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 26 | + cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
| 27 | + |
| 28 | +jobs: |
| 29 | + build: |
| 30 | + strategy: |
| 31 | + matrix: |
| 32 | + arch: |
| 33 | + - x64 |
| 34 | + - arm64 |
| 35 | + channel: |
| 36 | + - stable |
| 37 | + - nightly |
| 38 | + fail-fast: false |
| 39 | + runs-on: ${{ format('ubuntu-24.04{0}', case(matrix.arch == 'arm64', '-arm', '')) }} |
| 40 | + steps: |
| 41 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 42 | + with: |
| 43 | + submodules: recursive |
| 44 | + |
| 45 | + - uses: prefix-dev/rattler-build-action@91928848ad1ec2025fb7fdd6c018a88ad31e3609 # v0.2.36 |
| 46 | + with: |
| 47 | + rattler-build-version: v0.61.1 |
| 48 | + artifact-name: conda-${{ matrix.channel }}-${{ matrix.arch }} |
| 49 | + build-args: >- |
| 50 | + --config-file conda.recipe/rattler-build${{ case(matrix.channel == 'nightly', '-nightly', '') }}.toml |
| 51 | + ${{ case(matrix.channel == 'nightly', '--variant-config conda.recipe/variants-nightly.yaml', '') }} |
0 commit comments