File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,17 @@ jobs:
2727 - os : macos-latest
2828 - os : ubuntu-latest
2929 env :
30- CARGO_BUILD_TARGET : wasm32-wasi
30+ CARGO_BUILD_TARGET : wasm32-wasip1
3131 CARGO_TARGET_WASM32_WASI_RUNNER : /home/runner/.wasmtime/bin/wasmtime --dir=.
3232 runs-on : ${{ matrix.os }}
3333 env : ${{ matrix.env || fromJSON('{}') }}
3434 steps :
3535 - uses : actions/checkout@v3
3636
3737 - name : Install Wasm deps
38- if : matrix.env.CARGO_BUILD_TARGET == 'wasm32-wasi '
38+ if : matrix.env.CARGO_BUILD_TARGET == 'wasm32-wasip1 '
3939 run : |
40- rustup target add wasm32-wasi
40+ rustup target add wasm32-wasip1
4141 curl -LO https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk_25.0_amd64.deb
4242 sudo dpkg --install wasi-sdk_25.0_amd64.deb
4343 curl https://wasmtime.dev/install.sh -sSf | bash
Original file line number Diff line number Diff line change 2626 - os : macos-latest
2727 - os : ubuntu-latest
2828 env :
29- CARGO_BUILD_TARGET : wasm32-wasi
29+ CARGO_BUILD_TARGET : wasm32-wasip1
3030 CARGO_TARGET_WASM32_WASI_RUNNER : /home/runner/.wasmtime/bin/wasmtime --dir=.
3131 runs-on : ${{ matrix.os }}
3232 if : github.ref == 'refs/heads/main'
3737 persist-credentials : false
3838
3939 - name : Install Wasm deps
40- if : matrix.env.CARGO_BUILD_TARGET == 'wasm32-wasi '
40+ if : matrix.env.CARGO_BUILD_TARGET == 'wasm32-wasip1 '
4141 run : |
42- rustup target add wasm32-wasi
42+ rustup target add wasm32-wasip1
4343 curl -LO https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk_25.0_amd64.deb
4444 sudo dpkg --install wasi-sdk_25.0_amd64.deb
4545 curl https://wasmtime.dev/install.sh -sSf | bash
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ fn main() {
154154 Ok ( compile_target_feature) if compile_target_feature. contains ( "atomics" ) => {
155155 "wasm32-wasi-threads"
156156 }
157- _ => "wasm32-wasi " ,
157+ _ => "wasm32-wasip1 " ,
158158 } ;
159159 println ! (
160160 "cargo:rustc-link-search={wasi_sdk}/share/wasi-sysroot/lib/{wasi_sysroot_lib}"
@@ -169,7 +169,7 @@ fn main() {
169169 // it's also possible to compile it to wasm32-unknown-unknown.
170170 // 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.
171171 if compile_target_os == "unknown" {
172- build. target ( "wasm32-wasi " ) ;
172+ build. target ( "wasm32-wasip1 " ) ;
173173 println ! ( "cargo:rustc-link-lib=c" ) ;
174174 build. file ( "./deps/wasi_to_unknown.cpp" ) ;
175175 }
You can’t perform that action at this time.
0 commit comments