File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,17 @@ jobs:
27
27
- os : macos-latest
28
28
- os : ubuntu-latest
29
29
env :
30
- CARGO_BUILD_TARGET : wasm32-wasi
30
+ CARGO_BUILD_TARGET : wasm32-wasip1
31
31
CARGO_TARGET_WASM32_WASI_RUNNER : /home/runner/.wasmtime/bin/wasmtime --dir=.
32
32
runs-on : ${{ matrix.os }}
33
33
env : ${{ matrix.env || fromJSON('{}') }}
34
34
steps :
35
35
- uses : actions/checkout@v3
36
36
37
37
- name : Install Wasm deps
38
- if : matrix.env.CARGO_BUILD_TARGET == 'wasm32-wasi '
38
+ if : matrix.env.CARGO_BUILD_TARGET == 'wasm32-wasip1 '
39
39
run : |
40
- rustup target add wasm32-wasi
40
+ rustup target add wasm32-wasip1
41
41
curl -LO https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk_25.0_amd64.deb
42
42
sudo dpkg --install wasi-sdk_25.0_amd64.deb
43
43
curl https://wasmtime.dev/install.sh -sSf | bash
Original file line number Diff line number Diff line change 26
26
- os : macos-latest
27
27
- os : ubuntu-latest
28
28
env :
29
- CARGO_BUILD_TARGET : wasm32-wasi
29
+ CARGO_BUILD_TARGET : wasm32-wasip1
30
30
CARGO_TARGET_WASM32_WASI_RUNNER : /home/runner/.wasmtime/bin/wasmtime --dir=.
31
31
runs-on : ${{ matrix.os }}
32
32
if : github.ref == 'refs/heads/main'
37
37
persist-credentials : false
38
38
39
39
- name : Install Wasm deps
40
- if : matrix.env.CARGO_BUILD_TARGET == 'wasm32-wasi '
40
+ if : matrix.env.CARGO_BUILD_TARGET == 'wasm32-wasip1 '
41
41
run : |
42
- rustup target add wasm32-wasi
42
+ rustup target add wasm32-wasip1
43
43
curl -LO https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk_25.0_amd64.deb
44
44
sudo dpkg --install wasi-sdk_25.0_amd64.deb
45
45
curl https://wasmtime.dev/install.sh -sSf | bash
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ fn main() {
154
154
Ok ( compile_target_feature) if compile_target_feature. contains ( "atomics" ) => {
155
155
"wasm32-wasi-threads"
156
156
}
157
- _ => "wasm32-wasi " ,
157
+ _ => "wasm32-wasip1 " ,
158
158
} ;
159
159
println ! (
160
160
"cargo:rustc-link-search={wasi_sdk}/share/wasi-sysroot/lib/{wasi_sysroot_lib}"
@@ -169,7 +169,7 @@ fn main() {
169
169
// it's also possible to compile it to wasm32-unknown-unknown.
170
170
// This still requires WASI SDK for libc & libc++, but then we need a few hacks / overrides to get a pure Wasm w/o imports instead.
171
171
if compile_target_os == "unknown" {
172
- build. target ( "wasm32-wasi " ) ;
172
+ build. target ( "wasm32-wasip1 " ) ;
173
173
println ! ( "cargo:rustc-link-lib=c" ) ;
174
174
build. file ( "./deps/wasi_to_unknown.cpp" ) ;
175
175
}
You can’t perform that action at this time.
0 commit comments