Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add script for setting up WASI dependencies (#9078)
Marshall Bowersbe953b78ef40
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 0691cba81df..c053610801a 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -89,6 +89,9 @@ jobs:- name: cargo clippyrun: cargo xtask clippy+ - name: Install WASI dependencies+ run: script/setup-wasm+- name: Run testsuses: ./.github/actions/run_testsdiff --git a/script/setup-wasm b/script/setup-wasmnew file mode 100755index 00000000000..a3674ba8335--- /dev/null+++ b/script/setup-wasm@@ -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