-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (46 loc) · 1.29 KB
/
package.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
name: Package
on:
workflow_call:
inputs:
checkoutRef:
type: string
required: false
jobs:
package:
strategy:
fail-fast: false
matrix:
include:
- key: linux-amd64
os: ubuntu-latest
target: x86_64-unknown-linux-musl
- key: linux-arm64
os: ubuntu-latest
target: aarch64-unknown-linux-musl
extra-args: --use-cross
- key: darwin-amd64
os: macos-latest
target: x86_64-apple-darwin
- key: darwin-arm64
os: macos-latest
target: aarch64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.checkoutRef }}
- run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: |
./ci/package.py \
--rust-target ${{ matrix.target }} \
--dest-dir dist/release \
${{ matrix.extra-args }}
- uses: actions/upload-artifact@v4
with:
name: alt-package-${{ matrix.key }}
path: dist/release/
if-no-files-found: error