-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (48 loc) · 1.32 KB
/
build.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
49
50
51
52
53
54
55
56
name: Build all packages
# this is important for trusted publishing
permissions:
id-token: write
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
include:
- { target: linux-64, os: ubuntu-20.04 }
- { target: win-64, os: windows-latest }
# force older macos-13 to get x86_64 runners
- { target: osx-64, os: macos-13 }
- { target: osx-arm64, os: macos-14 }
fail-fast: false
name: ${{ matrix.target }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.39.0
- name: Add .pixi/envs/default/bin to the $PATH
shell: bash
run: |
echo "$(pwd)/.pixi/envs/default/bin" >> $GITHUB_PATH
- name: Run code in changed subdirectories
shell: bash
run: pixi run build-all
- name: Upload all packages
shell: bash
# do not upload on PR
if: github.event_name == 'push'
run: |
# uses trusted publishers for the upload
for file in output/**/*.conda; do
rattler-build upload prefix -c prefix-package-incubator "$file"
done