Add wasm32-wasi to CI workflow

This commit is contained in:
Isaac Clayton
2022-07-11 18:29:27 +02:00
parent 38f8191ce8
commit 41918101ed
3 changed files with 16 additions and 1 deletions
+14
View File
@@ -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
+1 -1
View File
@@ -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 = || {
+1
View File
@@ -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++"