build(fix the CI with the new build system)

Also added new instructions for running in the README
This commit is contained in:
Brooks Rady 2021-02-23 17:07:22 +00:00 committed by GitHub
commit e46901a52f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -19,7 +19,7 @@ jobs:
- name: Add WASM target
run: rustup target add wasm32-wasi
- name: Build
run: cargo build --verbose
run: ./build-all.sh --verbose
- name: Run tests
run: cargo test -j 1 --verbose
fmt:
@ -50,6 +50,8 @@ jobs:
components: clippy
- name: Add WASM target
run: rustup target add wasm32-wasi
- name: Build
run: ./build-all.sh --verbose
- uses: actions-rs/cargo@v1
with:
command: clippy

View file

@ -30,7 +30,7 @@ Zellij was initially called "Mosaic".
## How to use it?
* Clone the project
* In the project folder, run: `cargo run`
* In the project folder, run: `./build-all.sh && cargo run`
(note that right now Zellij only supports linux and mac)

View file

@ -13,7 +13,7 @@ cd ../strider
cargo build --release
echo "Optimising WASM executables (4/5)..."
cd ../..
wasm-opt -O target/wasm32-wasi/release/status-bar.wasm -o target/status-bar.wasm
wasm-opt -O target/wasm32-wasi/release/strider.wasm -o target/strider.wasm
wasm-opt -O target/wasm32-wasi/release/status-bar.wasm -o target/status-bar.wasm || cp target/wasm32-wasi/release/status-bar.wasm target/status-bar.wasm
wasm-opt -O target/wasm32-wasi/release/strider.wasm -o target/strider.wasm || cp target/wasm32-wasi/release/strider.wasm target/strider.wasm
echo "Building zellij (5/5)..."
cargo build $@