mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-23 02:22:13 +00:00
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
|
||||
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
|
||||
|
|
|
@ -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 = || {
|
||||
|
|
|
@ -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++"
|
||||
|
|
Loading…
Reference in a new issue