Commit f3dd049 1 parent d3ce0f6 commit f3dd049 Copy full SHA for f3dd049
File tree 1 file changed +36
-1
lines changed
1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change 49
49
- name : Install Rust 1.70.0
50
50
51
51
with :
52
- targets : wasm32-unknown-unknown
52
+ targets : wasm32-unknown-unknown, wasm32-wasi
53
53
54
54
- uses : Swatinem/rust-cache@v2
55
+ with :
56
+ prefix-key : v1-rust
55
57
56
58
- name : Run cargo check
57
59
run : cargo check
63
65
--no-default-features
64
66
-F wasm
65
67
68
+ - name : Run cargo check (wasi)
69
+ run : >
70
+ cargo check
71
+ --target wasm32-wasi
72
+ --no-default-features
73
+
74
+ wasi :
75
+ runs-on : ubuntu-22.04
76
+ needs : [rustfmt-clippy, msrv]
77
+
78
+ env :
79
+ CARGO_INCREMENTAL : 0
80
+ RUSTFLAGS : ' -Dwarnings'
81
+ CARGO_TARGET_WASM32_WASI_RUNNER : wasmtime
82
+
83
+ steps :
84
+ - uses : actions/checkout@v4
85
+
86
+ - name : Install wasmtime
87
+ uses : taiki-e/install-action@wasmtime
88
+
89
+ - name : Install Rust stable
90
+ uses : dtolnay/rust-toolchain@stable
91
+ with :
92
+ targets : wasm32-wasi
93
+ - uses : Swatinem/rust-cache@v2
94
+
95
+ - name : Run tests
96
+ run : >
97
+ cargo test
98
+ --target wasm32-wasi
99
+ --no-default-features
100
+
66
101
build-unix :
67
102
strategy :
68
103
matrix :
You can’t perform that action at this time.
0 commit comments