Add wasm32-wasi to CI workflow
This commit is contained in:
parent
38f8191ce8
commit
41918101ed
3 changed files with 16 additions and 1 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -31,6 +31,13 @@ jobs:
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
profile: minimal
|
profile: minimal
|
||||||
|
|
||||||
|
- name: Install Rust wasm32-wasi target
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
target: wasm32-wasi
|
||||||
|
profile: minimal
|
||||||
|
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
|
@ -71,6 +78,13 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
profile: minimal
|
profile: minimal
|
||||||
|
|
||||||
|
- name: Install Rust wasm32-wasi target
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
target: wasm32-wasi
|
||||||
|
profile: minimal
|
||||||
|
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
|
|
|
@ -28,7 +28,7 @@ fn main() {
|
||||||
let binaries = std::fs::read_dir(base.join("target/wasm32-wasi/release"))
|
let binaries = std::fs::read_dir(base.join("target/wasm32-wasi/release"))
|
||||||
.expect("Could not find compiled plugins in target");
|
.expect("Could not find compiled plugins in target");
|
||||||
|
|
||||||
let engine = create_engine();
|
let engine = create_default_engine();
|
||||||
|
|
||||||
for file in binaries {
|
for file in binaries {
|
||||||
let is_wasm = || {
|
let is_wasm = || {
|
||||||
|
|
|
@ -6,6 +6,7 @@ export ZED_BUNDLE=true
|
||||||
|
|
||||||
echo "Installing cargo bundle"
|
echo "Installing cargo bundle"
|
||||||
cargo install cargo-bundle --version 0.5.0
|
cargo install cargo-bundle --version 0.5.0
|
||||||
|
rustup target add wasm32-wasi
|
||||||
|
|
||||||
# Deal with versions of macOS that don't include libstdc++ headers
|
# Deal with versions of macOS that don't include libstdc++ headers
|
||||||
export CXXFLAGS="-stdlib=libc++"
|
export CXXFLAGS="-stdlib=libc++"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue