File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 2323 run : |
2424 MSRV=$(grep '^rust-version' Cargo.toml | cut -d '"' -f 2)
2525 echo "msrv=$MSRV" >> $GITHUB_OUTPUT
26- build :
26+ lint :
2727 needs : prepare
2828 strategy :
2929 matrix :
5252 run : cargo clippy --all-targets --all-features -- -D warnings
5353 - name : Run tests
5454 run : cargo test --verbose
55+
56+ build :
57+ strategy :
58+ matrix :
59+ # x86_64-unknown-linux-gnu build is included in the lint job, so skip it here
60+ targets :
61+ - target : x86_64-unknown-linux-musl
62+ os : ubuntu-latest
63+ - target : aarch64-unknown-linux-gnu
64+ os : ubuntu-latest
65+ - target : aarch64-unknown-linux-musl
66+ os : ubuntu-latest
67+ - target : x86_64-apple-darwin
68+ os : macos-latest
69+ - target : aarch64-apple-darwin
70+ os : macos-latest
71+ runs-on : ${{ matrix.targets.os }}
72+ steps :
73+ - name : Checkout
74+ uses : actions/checkout@v4
75+ - name : Setup
76+ run : rustup target add ${{ matrix.targets.target }}
77+ - name : Build
78+ uses : houseabsolute/actions-rust-cross@v1.0.0
79+ with :
80+ command : build
81+ target : ${{ matrix.targets.target }}
You can’t perform that action at this time.
0 commit comments