-
Notifications
You must be signed in to change notification settings - Fork 133
51 lines (47 loc) · 1.36 KB
/
release.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
name: Release
on:
release:
types: [created]
env:
CARGO_TERM_COLOR: always
jobs:
release:
name: ${{ matrix.platform.target }}
strategy:
fail-fast: false
matrix:
platform:
# Linux
- os: "ubuntu-22.04"
target: "x86_64-unknown-linux-gnu"
arch: "x86_64"
- os: "ubuntu-22.04"
target: "x86_64-unknown-linux-musl"
arch: "x86_64"
- os: "ubuntu-22.04"
target: "aarch64-unknown-linux-gnu"
arch: "arm64"
- os: "ubuntu-22.04"
target: "armv7-unknown-linux-gnueabihf"
arch: "armhf"
# Windows
- os: "windows-2022"
target: "x86_64-pc-windows-msvc"
arch: "x86_64"
# macOs
- os: "macos-13"
target: "aarch64-apple-darwin"
# This is not true, but simplifies the logic of the action.
arch: "x86_64"
- os: "macos-13"
target: "x86_64-apple-darwin"
arch: "x86_64"
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/package
with:
arch: ${{ matrix.platform.arch }}
github_token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ matrix.platform.target }}
runs_on: ${{ matrix.platform.os }}