@@ -26,30 +26,22 @@ concurrency:
2626 cancel-in-progress : true
2727
2828jobs :
29- minimal-versions :
30- uses : RustCrypto/actions/.github/workflows/minimal-versions.yml@master
31- with :
32- working-directory : ${{ github.workflow }}
33-
34- build :
29+ build-no-std :
3530 runs-on : ubuntu-latest
36- strategy :
37- matrix :
38- rust :
39- - 1.85.0 # MSRV
40- - stable
41- target :
42- - thumbv7em-none-eabi
43- - wasm32-unknown-unknown
4431 steps :
4532 - uses : actions/checkout@v6
4633 - uses : RustCrypto/actions/cargo-cache@master
4734 - uses : dtolnay/rust-toolchain@master
4835 with :
49- toolchain : ${{ matrix.rust }}
50- targets : ${{ matrix.target }}
36+ toolchain : stable
37+ targets : thumbv7em-none-eabi
5138 - uses : RustCrypto/actions/cargo-hack-install@master
52- - run : cargo build --target ${{ matrix.target }}
39+ - run : cargo build --target thumbv7em-none-eabi --all-features
40+
41+ minimal-versions :
42+ uses : RustCrypto/actions/.github/workflows/minimal-versions.yml@master
43+ with :
44+ working-directory : ${{ github.workflow }}
5345
5446 test :
5547 strategy :
@@ -163,3 +155,18 @@ jobs:
163155 - uses : dtolnay/rust-toolchain@nightly
164156 - run : rustup component add miri && cargo miri setup
165157 - run : cargo miri test --target ${{ matrix.target }} --all-features --lib
158+
159+ # Test WASM using `wasmtime`
160+ test-wasm :
161+ runs-on : ubuntu-latest
162+ env :
163+ CARGO_TARGET_WASM32_WASIP1_RUNNER : " wasmtime"
164+ steps :
165+ - uses : actions/checkout@v6
166+ - uses : bytecodealliance/actions/wasmtime/setup@v1
167+ - uses : dtolnay/rust-toolchain@master
168+ with :
169+ toolchain : stable
170+ targets : wasm32-wasip1
171+ - run : cargo test --target wasm32-wasip1 --all-features
172+ - run : cargo test --target wasm32-wasip1 --all-features --release
0 commit comments