build(fix the CI with the new build system)
Also added new instructions for running in the README
This commit is contained in:
commit
e46901a52f
3 changed files with 6 additions and 4 deletions
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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 $@
|
||||
Loading…
Add table
Reference in a new issue