@@ -19,34 +19,43 @@ jobs:
1919 - os : ubuntu-26.04
2020 rust : stable
2121 name : " Linux x86 (stable)"
22+ target : x86_64-unknown-linux-gnu
2223 - os : ubuntu-26.04
2324 rust : nightly
2425 name : " Linux x86 (nightly)"
26+ target : x86_64-unknown-linux-gnu
2527 - os : ubuntu-26.04
2628 rust : nightly
2729 name : " Linux x86 (nightly tail calls)"
30+ target : x86_64-unknown-linux-gnu
2831 args : " --features tinywasm/nightly-tail-calls"
2932 - os : ubuntu-26.04
3033 rust : stable
3134 name : " Linux x86 (stable, no default features)"
35+ target : x86_64-unknown-linux-gnu
3236 args : " --no-default-features"
3337 - os : ubuntu-26.04
3438 rust : nightly
3539 name : " Linux x86 (nightly, no default features)"
40+ target : x86_64-unknown-linux-gnu
3641 args : " --no-default-features"
3742 - os : ubuntu-26.04
3843 rust : nightly
3944 name : " Linux x86 (nightly tail calls, no default features)"
45+ target : x86_64-unknown-linux-gnu
4046 args : " --no-default-features --features tinywasm/nightly-tail-calls"
4147 - os : macos-26
4248 rust : stable
4349 name : " macOS arm64 (Apple M1)"
50+ target : aarch64-apple-darwin
4451 - os : windows-2025
4552 rust : stable
4653 name : " Windows x86_64"
54+ target : x86_64-pc-windows-msvc
4755 - os : ubuntu-26.04-arm
4856 rust : stable
4957 name : " Linux arm64"
58+ target : aarch64-unknown-linux-gnu
5059 - os : ubuntu-26.04-arm
5160 rust : stable
5261 name : " Linux armv7"
@@ -65,33 +74,25 @@ jobs:
6574 uses : actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0
6675 with :
6776 toolchain : ${{ matrix.rust }}
77+ target : ${{ matrix.target }}
6878 rustflags : " "
79+ build-warnings : warn
6980 components : rustfmt, clippy
70- if : matrix.target == ''
71-
72- - name : Run tests
73- run : cargo test --workspace ${{ matrix.args }} && cargo test --workspace ${{ matrix.args }} --examples
74- if : matrix.target == ''
75-
76- - name : Run clippy
77- run : cargo clippy --workspace ${{ matrix.args }}
78- if : matrix.target == ''
7981
8082 - name : Install armv7 tools
8183 run : sudo apt-get update && sudo apt-get install -y gcc-arm-linux-gnueabihf qemu-user
82- if : matrix.target != ' '
84+ if : matrix.target == 'armv7-unknown-linux-gnueabihf '
8385
84- - name : Install Rust toolchain (${{ matrix.target }})
85- uses : actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0
86- with :
87- toolchain : ${{ matrix.rust }}
88- target : ${{ matrix.target }}
89- rustflags : " "
90- if : matrix.target != ''
91-
92- - name : Run tests (${{ matrix.target }})
93- run : cargo test --workspace --target ${{ matrix.target }}
86+ - name : Run tests
87+ run : cargo test --workspace --target ${{ matrix.target }} ${{ matrix.args }}
9488 env :
9589 CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER : arm-linux-gnueabihf-gcc
9690 CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_RUNNER : qemu-arm -L /usr/arm-linux-gnueabihf
97- if : matrix.target != ''
91+
92+ - name : Run examples
93+ run : cargo test --workspace --target ${{ matrix.target }} ${{ matrix.args }} --examples
94+ if : matrix.target != 'armv7-unknown-linux-gnueabihf'
95+
96+ - name : Run clippy
97+ run : cargo clippy --workspace --target ${{ matrix.target }} ${{ matrix.args }}
98+ if : matrix.target != 'armv7-unknown-linux-gnueabihf'
0 commit comments