Build LHCb Packages #43
This file contains hidden or 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: Build LHCb Packages | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 2 * * *' # Nightly at 2 AM UTC | |
| jobs: | |
| build: | |
| name: Build (${{ matrix.target-platform }}) | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| id-token: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| target-platform: linux-64 | |
| - os: ubuntu-24.04-arm | |
| target-platform: linux-aarch64 | |
| - os: macos-15-intel | |
| target-platform: osx-64 | |
| - os: macos-latest | |
| target-platform: osx-arm64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: prefix-dev/setup-pixi@v0.8.1 | |
| with: | |
| pixi-version: v0.43.0 | |
| - name: Build packages | |
| run: | | |
| pixi run rattler-build build \ | |
| --recipe-dir recipes \ | |
| --skip-existing=all \ | |
| -c conda-forge \ | |
| -c https://prefix.dev/lhcb-nightly \ | |
| --variant-config variants.yaml \ | |
| --output-dir output | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: packages-${{ matrix.target-platform }} | |
| path: output/**/*.conda | |
| - name: Upload to prefix.dev | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| run: | | |
| for pkg in output/**/*.conda; do | |
| pixi run rattler-build upload prefix \ | |
| -c lhcb-nightly \ | |
| --token-template '{"oidc": {"type": "github_actions"}}' \ | |
| "$pkg" | |
| done |