From 41918101ed695a2f690d2d20ab4cb199d699ef7b Mon Sep 17 00:00:00 2001 From: Isaac Clayton Date: Mon, 11 Jul 2022 18:29:27 +0200 Subject: [PATCH] Add wasm32-wasi to CI workflow --- .github/workflows/ci.yml | 14 ++++++++++++++ crates/plugin_runtime/build.rs | 2 +- script/bundle | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc0b687170..000b9034ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,13 @@ jobs: target: x86_64-apple-darwin profile: minimal + - name: Install Rust wasm32-wasi target + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: wasm32-wasi + profile: minimal + - name: Install Node uses: actions/setup-node@v2 with: @@ -71,6 +78,13 @@ jobs: toolchain: stable target: aarch64-apple-darwin profile: minimal + + - name: Install Rust wasm32-wasi target + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: wasm32-wasi + profile: minimal - name: Install Node uses: actions/setup-node@v2 diff --git a/crates/plugin_runtime/build.rs b/crates/plugin_runtime/build.rs index 3eac41e0e7..f164f317ca 100644 --- a/crates/plugin_runtime/build.rs +++ b/crates/plugin_runtime/build.rs @@ -28,7 +28,7 @@ fn main() { let binaries = std::fs::read_dir(base.join("target/wasm32-wasi/release")) .expect("Could not find compiled plugins in target"); - let engine = create_engine(); + let engine = create_default_engine(); for file in binaries { let is_wasm = || { diff --git a/script/bundle b/script/bundle index fc6bab355f..42ed7d9244 100755 --- a/script/bundle +++ b/script/bundle @@ -6,6 +6,7 @@ export ZED_BUNDLE=true echo "Installing cargo bundle" cargo install cargo-bundle --version 0.5.0 +rustup target add wasm32-wasi # Deal with versions of macOS that don't include libstdc++ headers export CXXFLAGS="-stdlib=libc++"