-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (62 loc) · 1.66 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build-linux-x86_64:
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-x86_64:
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
build-windows-x86_64:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --target=x86_64-pc-windows-msvc --verbose
- name: Run tests
run: cargo test --verbose
build-windows-arm64:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Add aarch64-pc-windows-msvc target
run: rustup target add aarch64-pc-windows-msvc
- name: Build
run: cargo build --target=aarch64-pc-windows-msvc --verbose