File tree 12 files changed +119
-75
lines changed
12 files changed +119
-75
lines changed Original file line number Diff line number Diff line change
1
+ [target.wasm32-wasi]
2
+ runner = "wasmtime"
Original file line number Diff line number Diff line change 90
90
- name : Version features
91
91
run : cargo +1.57.0 test --features "$VERSION_FEATURES"
92
92
93
- wasm :
94
- name : Tests / WebAssembly
93
+ wasm_bindgen :
94
+ name : Tests / WebAssembly (wasm-bindgen)
95
95
runs-on : ubuntu-latest
96
96
steps :
97
97
- name : Checkout sources
@@ -104,11 +104,36 @@ jobs:
104
104
run : wasm-pack test --node
105
105
106
106
- name : Version features
107
- run : wasm-pack test --node -- --features "$VERION_FEATURES $DEP_FEATURES js"
107
+ run : wasm-pack test --node -- --features "$VERSION_FEATURES $DEP_FEATURES js"
108
108
109
109
- name : Fast RNG
110
110
run : wasm-pack test --node -- --features "js v4 fast-rng"
111
111
112
+ wasi :
113
+ name : Tests / WebAssembly (WASI)
114
+ runs-on : ubuntu-latest
115
+ steps :
116
+ - name : Checkout sources
117
+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
118
+
119
+ - name : Install Wasmtime
120
+ run : curl https://wasmtime.dev/install.sh -sSf | bash
121
+
122
+ - name : Add Wasmtime to path
123
+ run : echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH
124
+
125
+ - name : Install wasm32-wasi target
126
+ run : rustup target add wasm32-wasi
127
+
128
+ - name : Default features
129
+ run : cargo test --target wasm32-wasi
130
+
131
+ - name : Version features
132
+ run : cargo test --target wasm32-wasi --features "$VERSION_FEATURES $DEP_FEATURES"
133
+
134
+ - name : Fast RNG
135
+ run : cargo test --target wasm32-wasi --features "v4 fast-rng"
136
+
112
137
mips :
113
138
name : Tests / MIPS (Big Endian)
114
139
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -161,11 +161,11 @@ version = "1.0"
161
161
[dev-dependencies .serde_test ]
162
162
version = " 1.0.56"
163
163
164
- [target .'cfg(target_arch = "wasm32")' .dev-dependencies .wasm-bindgen ]
164
+ [target .'cfg(target = "wasm32-unknown-unknown ")' .dev-dependencies .wasm-bindgen ]
165
165
package = " wasm-bindgen"
166
166
version = " 0.2"
167
167
168
- [target .'cfg(target_arch = "wasm32")' .dev-dependencies .wasm-bindgen-test ]
168
+ [target .'cfg(target = "wasm32-unknown-unknown ")' .dev-dependencies .wasm-bindgen-test ]
169
169
version = " 0.3"
170
170
171
171
[dev-dependencies .trybuild ]
You can’t perform that action at this time.
0 commit comments