Skip to content

Commit b74ed2c

Browse files
authored
Update to wasi-sdk-27 (#1349)
* Update to wasi-sdk-27 This enables the ability to compile for wasm32-wasip2 and generate components using async features. * Make objects resilient to wasm feature changes over time
1 parent ae8ae27 commit b74ed2c

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

.github/actions/install-wasi-sdk/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ runs:
55
using: composite
66
steps:
77
- run: |
8-
curl https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz -L | tar xzvf -
9-
echo "WASI_SDK_PATH=`pwd`/wasi-sdk-25.0-x86_64-linux" >> $GITHUB_ENV
8+
curl https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-27/wasi-sdk-27.0-x86_64-linux.tar.gz -L | tar xzvf -
9+
echo "WASI_SDK_PATH=`pwd`/wasi-sdk-27.0-x86_64-linux" >> $GITHUB_ENV
1010
if: runner.os == 'Linux'
1111
shell: bash
1212
- run: |
13-
curl https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-macos.tar.gz -L | tar xzvf -
14-
echo "WASI_SDK_PATH=`pwd`/wasi-sdk-25.0-x86_64-macos" >> $GITHUB_ENV
13+
curl https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-27/wasi-sdk-27.0-x86_64-macos.tar.gz -L | tar xzvf -
14+
echo "WASI_SDK_PATH=`pwd`/wasi-sdk-27.0-x86_64-macos" >> $GITHUB_ENV
1515
if: runner.os == 'macOS'
1616
shell: bash
1717
- run: |
18-
curl https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-windows.tar.gz -L | tar xzvf -
19-
echo "WASI_SDK_PATH=`pwd`/wasi-sdk-25.0-x86_64-windows" >> $GITHUB_ENV
18+
curl https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-27/wasi-sdk-27.0-x86_64-windows.tar.gz -L | tar xzvf -
19+
echo "WASI_SDK_PATH=`pwd`/wasi-sdk-27.0-x86_64-windows" >> $GITHUB_ENV
2020
if: runner.os == 'Windows'
2121
shell: bash
2222
- name: Setup `wasm-tools`

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ jobs:
136136
--artifacts target/artifacts \
137137
--rust-wit-bindgen-path ./crates/guest-rust \
138138
--rust-target wasm32-wasip1 \
139-
--c-target wasm32-wasip1 \
140139
--runner "$WASMTIME -W component-model-async -Sp3"
141140
142141
test_unit:

ci/rebuild-libwit-bindgen-cabi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ EOF
9191
build() {
9292
file=$1
9393
$WASI_SDK_PATH/bin/clang crates/guest-rust/rt/src/$1.c \
94-
-O -c -o crates/guest-rust/rt/src/$1.o
94+
-O -c -o crates/guest-rust/rt/src/$1.o -mcpu=mvp
9595
# Remove the `producers` section. This appears to differ whether the host for
9696
# clang is either macOS or Linux. Not needed here anyway, so discard it to help
9797
# either host produce the same object.
-154 Bytes
Binary file not shown.
-79 Bytes
Binary file not shown.
-75 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)