-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.58 KB
/
build.yml
File metadata and controls
61 lines (54 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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