@@ -15,34 +15,40 @@ jobs:
1515 strategy :
1616 fail-fast : false
1717 matrix :
18- os : [ubuntu-24.04, macos-14, windows-2022 ]
18+ target : [x86_64-pc-windows-msvc, x86_64-unknown-linux-musl, aarch64-apple-darwin ]
1919 feature-args : ['', '-Funstable-mobile-app']
2020 include :
21- - os : ubuntu-24.04
22- display-os : Linux
23- - os : macos-14
24- display-os : macOS
25- - os : windows-2022
26- display-os : Windows
21+ - target : x86_64-pc-windows-msvc
22+ runs-on : windows-2022
23+ display-name : Windows
24+ - target : x86_64-unknown-linux-musl
25+ runs-on : ubuntu-24.04
26+ display-name : Linux
27+ - target : aarch64-apple-darwin
28+ runs-on : macos-14
29+ display-name : macOS
2730 - feature-args : ' '
2831 feature-suffix : ' '
2932 - feature-args : ' -Funstable-mobile-app'
3033 feature-suffix : ' (-Funstable-mobile-app)'
3134
32- name : ${{ matrix.display-os }}${{ matrix.feature-suffix }}
33- runs-on : ${{ matrix.os }}
35+ name : ${{ matrix.display-name }}${{ matrix.feature-suffix }}
36+ runs-on : ${{ matrix.runs-on }}
3437 steps :
3538 - name : Checkout Repository
3639 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
3740
3841 - name : Install Rust Toolchain
3942 run : rustup toolchain install stable --profile minimal --component clippy --component rustfmt --no-self-update
4043
44+ - name : Add Rust Target
45+ run : rustup target add ${{ matrix.target }}
46+
4147 - name : Cache Dependencies
4248 uses : swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # 2.8.0
4349
4450 - name : Run Rustfmt
4551 run : cargo fmt --all -- --check
4652
4753 - name : Run Clippy
48- run : cargo clippy --workspace --tests ${{ matrix.feature-args }}
54+ run : cargo clippy --workspace --tests ${{ matrix.feature-args }} --target ${{ matrix.target }}
0 commit comments