-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for setting up WASI dependencies (#9078)
This PR adds a script for setting up the WASI dependencies needed for extensions. These already get downloaded when needed when using Zed, but in the tests the HTTP client is faked out, so if you don't already have them installed the `test_extension_store_with_gleam_extension` test will fail. Release Notes: - N/A
- Loading branch information
1 parent
51ebe0e
commit be953b7
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
WASI_ADAPTER_URL="https://github.com/bytecodealliance/wasmtime/releases/download/v18.0.2/wasi_snapshot_preview1.reactor.wasm" | ||
WASI_SDK_URL="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-21/wasi-sdk-21.0-macos.tar.gz" | ||
|
||
echo "Downloading WASI adapter: $WASI_ADAPTER_URL" | ||
curl -L $WASI_ADAPTER_URL -o target/wasi_snapshot_preview1.reactor.wasm | ||
|
||
echo "Downloading WASI SDK: $WASI_SDK_URL" | ||
mkdir -p target/wasi-sdk.archive | ||
curl -L $WASI_SDK_URL | tar -xz - -C target/wasi-sdk.archive | ||
rm -rf target/wasi-sdk/ | ||
mv -f target/wasi-sdk.archive/wasi-sdk-21.0/ target/wasi-sdk |