-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (46 loc) · 1.17 KB
/
build.yaml
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
name: Build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build-linux-amd64:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Rustfmt Check
run: cargo fmt --check
- name: Add x86_64-unknown-linux-musl target
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get -y update
sudo apt-get -y install musl-dev musl-tools
- name: Build
run: cargo build --target=x86_64-unknown-linux-musl --verbose
- name: Run tests
run: cargo test --verbose
- name: Build benches
run: cargo bench --features bench --no-run
build-linux-arm64:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install cross
run: cargo install cross
- name: Build
run: cross build --target aarch64-unknown-linux-musl --verbose
build-darwin-amd64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
build-darwin-arm64:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose