-
Notifications
You must be signed in to change notification settings - Fork 17
48 lines (41 loc) · 1.22 KB
/
build-upload.yml
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
name: Build and upload packages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
id-token: write
jobs:
build:
strategy:
matrix:
label:
- ubuntu-latest
- macos-latest
- magic_arm64_8core
runs-on: ${{ matrix.label }}
env:
DATA_FILE: data/failed-compatibility-${{ matrix.label }}.json
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
- uses: prefix-dev/setup-pixi@92815284c57faa15cd896c4d5cfb2d59f32dc43d # v0.8.3
with:
pixi-version: v0.37.0
- name: Configure git
run: pixi run configure-git
- name: Build packages
shell: bash
run: pixi run build-all --channel https://prefix.dev/modular-community --channel https://conda.modular.com/max
env:
RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: true
RATTLER_BUILD_COLOR: always
- name: Commit changes to failed-compatibility.json
run: pixi run commit-changes ${{ env.DATA_FILE }}
if: always()
- name: Upload all packages
shell: bash
run: pixi run upload --channel modular-community