Skip to content

Commit 39fc469

Browse files
committed
debug ld-wasi-sdk
1 parent 8d1bf5a commit 39fc469

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/rust-host.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
echo "WASI_OS=linux" >> $GITHUB_ENV
1919
fi
2020
echo "WASI_VERSION_FULL=25.0" >> $GITHUB_ENV
21+
echo "WASI_VERSION=25" >> $GITHUB_ENV
2122
- uses: actions/checkout@v4
2223
- uses: actions-rs/toolchain@v1
2324
with:
@@ -28,6 +29,10 @@ jobs:
2829
- uses: extractions/setup-just@v3
2930
- name: Install cargo-component
3031
run: cargo binstall cargo-component@0.21.1
32+
- name: Install wasm-tools
33+
run: cargo binstall wasm-tools@1.235.0
34+
- name: Install wit-bindgen
35+
run: cargo install wit-bindgen-cli@0.43.0
3136
- name: Install wasi-sdk
3237
run: |
3338
mkdir c_deps

.github/workflows/web-host.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
echo "WASI_OS=linux" >> $GITHUB_ENV
1919
fi
2020
echo "WASI_VERSION_FULL=25.0" >> $GITHUB_ENV
21+
echo "WASI_VERSION=25" >> $GITHUB_ENV
2122
- uses: actions/checkout@v4
2223
- uses: actions-rs/toolchain@v1
2324
with:

justfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ dl-wasi-sdk:
1616
#!/usr/bin/env bash
1717
mkdir -p c_deps
1818
FILENAME=wasi-sdk-${WASI_VERSION_FULL}-${WASI_ARCH}-${WASI_OS}.tar.gz
19-
curl -L -o c_deps/${FILENAME} https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_VERSION}/${FILENAME}
19+
curl --verbose -L -o c_deps/${FILENAME} https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_VERSION}/${FILENAME}
20+
ls -la c_deps
2021
tar -C c_deps -xvf c_deps/${FILENAME}
22+
ls -la c_deps
2123
mv c_deps/wasi-sdk-${WASI_VERSION_FULL}-${WASI_ARCH}-${WASI_OS} c_deps/wasi-sdk
24+
ls -la c_deps
2225

2326
# Generate the C bindings for the plugin
2427
c-wit-bindgen-plugin plugin:

0 commit comments

Comments
 (0)