File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,18 @@ jobs:
19
19
matrix :
20
20
settings :
21
21
- os : macos-12
22
- target : x86_64-apple-darwin
23
- - os : macos-12
24
- target : aarch64-apple-darwin
22
+ target :
23
+ - x86_64-apple-darwin
24
+ - aarch64-apple-darwin
25
25
- os : windows-2022
26
- target : x86_64-pc-windows-msvc
26
+ target :
27
+ - x86_64-pc-windows-msvc
28
+ - x86_64-pc-windows-gnu
27
29
- os : ubuntu-22.04
28
- target : x86_64-unknown-linux-gnu
30
+ target :
31
+ - x86_64-unknown-linux-gnu
32
+ - x86_64-unknown-linux-musl
33
+ - aarch64-unknown-linux-musl
29
34
30
35
steps :
31
36
- name : Checkout
@@ -39,13 +44,20 @@ jobs:
39
44
- name : Cache cargo registry
40
45
uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
41
46
47
+ - uses : goto-bus-stop/setup-zig@7ab2955eb728f5440978d5824358023be3a2802d # v2.2.0
48
+ with :
49
+ version : 0.12.0
50
+
51
+ - name : Install Zigbuild
52
+ run : cargo install cargo-zigbuild --locked --git https://github.com/rust-cross/cargo-zigbuild --rev 6f7e1336c9cd13cf1b3704f93c40fcf84caaed6b # 0.18.4
53
+
42
54
- name : Add build architecture
43
55
run : rustup target add ${{ matrix.settings.target }}
44
56
45
57
- name : Build Rust
46
58
env :
47
59
RUSTFLAGS : " -D warnings"
48
- run : cargo build --target ${{ matrix.settings.target }} --release
60
+ run : cargo zigbuild --target ${{ matrix.settings.target }} --release
49
61
50
62
- name : Upload Artifact
51
63
uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
You can’t perform that action at this time.
0 commit comments