3333 - build : aarch64-linux
3434 os : ubuntu-latest
3535 target : aarch64-unknown-linux-gnu
36- - build : wasm32-wasi
36+ - build : wasm32-wasip1
3737 os : ubuntu-latest
38- target : wasm32-wasi
38+ target : wasm32-wasip1
3939 steps :
4040 - uses : actions/checkout@v4
4141 with :
4444 - uses : bytecodealliance/wasmtime/.github/actions/binary-compatible-builds@v20.0.0
4545 with :
4646 name : ${{ matrix.build }}
47- if : matrix.build != 'wasm32-wasi '
47+ if : matrix.build != 'wasm32-wasip1 '
4848 - run : |
4949 echo CARGO_BUILD_TARGET=${{ matrix.target }} >> $GITHUB_ENV
5050 rustup target add ${{ matrix.target }}
@@ -132,11 +132,12 @@ jobs:
132132 submodules : true
133133 - uses : bytecodealliance/wasmtime/.github/actions/install-rust@v20.0.0
134134 with :
135- toolchain : 1.77.0
135+ toolchain : 1.79.0
136+ - run : rustup target add wasm32-wasip1
136137 - run : |
137- curl -LO https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-21 /wasi-sdk-21 .0-linux.tar.gz
138- tar xf wasi-sdk-21 .0-linux.tar.gz
139- export WASI_SDK_PATH=$(pwd)/wasi-sdk-21 .0
138+ curl -LO https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22 /wasi-sdk-22 .0-linux.tar.gz
139+ tar xf wasi-sdk-22 .0-linux.tar.gz
140+ export WASI_SDK_PATH=$(pwd)/wasi-sdk-22 .0
140141 cd crates/wit-component/dl && bash check.sh
141142
142143 wasm :
@@ -147,13 +148,14 @@ jobs:
147148 with :
148149 submodules : true
149150 - uses : bytecodealliance/wasmtime/.github/actions/install-rust@v20.0.0
151+ - run : rustup target add wasm32-wasip1
150152 - run : |
151153 tag=v10.0.1
152154 curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/${tag}/wasmtime-${tag}-x86_64-linux.tar.xz
153155 tar xf wasmtime-${tag}-x86_64-linux.tar.xz
154156 echo `pwd`/wasmtime-${tag}-x86_64-linux >> $GITHUB_PATH
155- echo CARGO_TARGET_WASM32_WASI_RUNNER ='wasmtime run --dir . --' >> $GITHUB_ENV
156- echo CARGO_BUILD_TARGET='wasm32-wasi ' >> $GITHUB_ENV
157+ echo CARGO_TARGET_WASM32_WASIP1_RUNNER ='wasmtime run --dir . --' >> $GITHUB_ENV
158+ echo CARGO_BUILD_TARGET='wasm32-wasip1 ' >> $GITHUB_ENV
157159 - run : |
158160 cargo --locked test --workspace \
159161 --exclude fuzz-stats \
@@ -168,6 +170,7 @@ jobs:
168170 - uses : actions/checkout@v4
169171 - uses : bytecodealliance/wasmtime/.github/actions/install-rust@v20.0.0
170172 - run : rustup component add rustfmt
173+ - run : printf "\n" > playground/component/src/bindings.rs
171174 # Note that this doesn't use `cargo fmt` because that doesn't format
172175 # modules-defined-in-macros which is in use in `wast` for example. This is
173176 # the best alternative I can come up with at this time
0 commit comments