-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.14 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
name: build
on:
pull_request:
push:
branches:
- trunk
jobs:
build:
name: Builds on ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
name:
- linux-x64-musl
- macos-x64
- macos-aarch64
include:
- name: linux-x64-musl
os: ubuntu-latest
target: x86_64-unknown-linux-musl
exe: wait-on
- name: macos-x64
os: macos-latest
target: x86_64-apple-darwin
exe: wait-on
- name: macos-aarch64
os: macos-latest
target: aarch64-apple-darwin
exe: wait-on
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install ${{ matrix.name }} System Dependencies
if: matrix.name == 'linux-x64-musl'
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
- name: Build for Release
run: cargo build --release --target ${{ matrix.target }}