@@ -19,14 +19,13 @@ jobs:
1919 { os: "ubuntu", target: "i686-unknown-linux-gnu" },
2020 { os: "ubuntu", target: "wasm32-unknown-unknown" },
2121 { os: "macos", target: "aarch64-apple-darwin" },
22- { os: "ubuntu", target: "wasm32-wasi" },
2322 ]
2423 env :
2524 TZ : " /usr/share/zoneinfo/your/location"
2625 steps :
27- - uses : actions/checkout@v3
26+ - uses : actions/checkout@v4
2827 - name : Cache .cargo and target
29- uses : actions/cache@v2
28+ uses : actions/cache@v4
3029 with :
3130 path : |
3231 ~/.cargo
@@ -36,16 +35,13 @@ jobs:
3635 - name : Install Rust toolchain
3736 uses : actions-rs/toolchain@v1
3837 with :
39- toolchain : 1.81 # 1.82 seems to break wasm32 tests https://github.com/rustwasm/wasm-bindgen/issues/4274
38+ toolchain : stable
4039 target : ${{ matrix.platform.target }}
4140 profile : minimal
4241 default : true
4342 - name : Install test runner for wasm
4443 if : matrix.platform.target == 'wasm32-unknown-unknown'
4544 run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
46- - name : Install test runner for wasi
47- if : matrix.platform.target == 'wasm32-wasi'
48- run : curl https://wasmtime.dev/install.sh -sSf | bash
4945 - name : Stable Build with all features
5046 uses : actions-rs/cargo@v1
5147 with :
6561 - name : Tests in WASM
6662 if : matrix.platform.target == 'wasm32-unknown-unknown'
6763 run : wasm-pack test --node -- --all-features
68- - name : Tests in WASI
69- if : matrix.platform.target == 'wasm32-wasi'
70- run : |
71- export WASMTIME_HOME="$HOME/.wasmtime"
72- export PATH="$WASMTIME_HOME/bin:$PATH"
73- cargo install cargo-wasi && cargo wasi test
74-
64+
7565 check_features :
7666 runs-on : " ${{ matrix.platform.os }}-latest"
7767 strategy :
8171 env :
8272 TZ : " /usr/share/zoneinfo/your/location"
8373 steps :
84- - uses : actions/checkout@v3
74+ - uses : actions/checkout@v4
8575 - name : Cache .cargo and target
86- uses : actions/cache@v2
76+ uses : actions/cache@v4
8777 with :
8878 path : |
8979 ~/.cargo
0 commit comments