@@ -19,14 +19,13 @@ jobs:
19
19
{ os: "ubuntu", target: "i686-unknown-linux-gnu" },
20
20
{ os: "ubuntu", target: "wasm32-unknown-unknown" },
21
21
{ os: "macos", target: "aarch64-apple-darwin" },
22
- { os: "ubuntu", target: "wasm32-wasi" },
23
22
]
24
23
env :
25
24
TZ : " /usr/share/zoneinfo/your/location"
26
25
steps :
27
- - uses : actions/checkout@v3
26
+ - uses : actions/checkout@v4
28
27
- name : Cache .cargo and target
29
- uses : actions/cache@v2
28
+ uses : actions/cache@v4
30
29
with :
31
30
path : |
32
31
~/.cargo
@@ -36,16 +35,13 @@ jobs:
36
35
- name : Install Rust toolchain
37
36
uses : actions-rs/toolchain@v1
38
37
with :
39
- toolchain : 1.81 # 1.82 seems to break wasm32 tests https://github.com/rustwasm/wasm-bindgen/issues/4274
38
+ toolchain : stable
40
39
target : ${{ matrix.platform.target }}
41
40
profile : minimal
42
41
default : true
43
42
- name : Install test runner for wasm
44
43
if : matrix.platform.target == 'wasm32-unknown-unknown'
45
44
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
49
45
- name : Stable Build with all features
50
46
uses : actions-rs/cargo@v1
51
47
with :
65
61
- name : Tests in WASM
66
62
if : matrix.platform.target == 'wasm32-unknown-unknown'
67
63
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
+
75
65
check_features :
76
66
runs-on : " ${{ matrix.platform.os }}-latest"
77
67
strategy :
81
71
env :
82
72
TZ : " /usr/share/zoneinfo/your/location"
83
73
steps :
84
- - uses : actions/checkout@v3
74
+ - uses : actions/checkout@v4
85
75
- name : Cache .cargo and target
86
- uses : actions/cache@v2
76
+ uses : actions/cache@v4
87
77
with :
88
78
path : |
89
79
~/.cargo
0 commit comments