@@ -14,28 +14,37 @@ jobs:
14
14
15
15
strategy :
16
16
matrix :
17
- os : [ubuntu-latest, macos-latest]
17
+ include :
18
+ - os : ubuntu-latest
19
+ target : x86_64-unknown-linux-gnu
20
+ - os : ubuntu-latest
21
+ target : x86_64-unknown-linux-musl
22
+ - os : macos-latest
23
+ target : aarch64-apple-darwin
18
24
19
25
steps :
20
26
- uses : actions/checkout@v5
21
27
22
28
- run : ./scripts/install-protobuf.sh
23
29
shell : bash
24
30
25
- - run : rustup toolchain install nightly --component rustfmt
31
+ - if : matrix.target == 'x86_64-unknown-linux-musl'
32
+ run : sudo apt-get update && sudo apt-get install -y musl-tools
33
+
34
+ - run : rustup toolchain install nightly --component rustfmt --target ${{ matrix.target }}
26
35
- run : cargo +nightly fmt --all -- --check
27
36
28
37
# the "runc" and "containerd-shim" crates have `sync` code that is not covered by the workspace
29
- - run : cargo check -p runc --all-targets
30
- - run : cargo clippy -p runc --all-targets -- -D warnings
31
- - run : cargo check -p containerd-shim --all-targets
32
- - run : cargo clippy -p containerd-shim --all-targets -- -D warnings
38
+ - run : cargo check -p runc --all-targets --target ${{ matrix.target }}
39
+ - run : cargo clippy -p runc --all-targets --target ${{ matrix.target }} -- -D warnings
40
+ - run : cargo check -p containerd-shim --all-targets --target ${{ matrix.target }}
41
+ - run : cargo clippy -p containerd-shim --all-targets --target ${{ matrix.target }} -- -D warnings
33
42
34
43
# check the workspace
35
- - run : cargo check --examples --tests --all-targets
36
- - run : cargo check --examples --tests --all-targets --all-features
37
- - run : cargo clippy --all-targets -- -D warnings
38
- - run : cargo clippy --all-targets --all-features -- -D warnings
44
+ - run : cargo check --examples --tests --all-targets --target ${{ matrix.target }}
45
+ - run : cargo check --examples --tests --all-targets --all-features --target ${{ matrix.target }}
46
+ - run : cargo clippy --all-targets --target ${{ matrix.target }} -- -D warnings
47
+ - run : cargo clippy --all-targets --all-features --target ${{ matrix.target }} -- -D warnings
39
48
40
49
- run : cargo doc --no-deps --features docs
41
50
env :
0 commit comments