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
|
- name: Add WASM target
|
||||||
run: rustup target add wasm32-wasi
|
run: rustup target add wasm32-wasi
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: ./build-all.sh --verbose
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test -j 1 --verbose
|
run: cargo test -j 1 --verbose
|
||||||
fmt:
|
fmt:
|
||||||
|
|
@ -50,6 +50,8 @@ jobs:
|
||||||
components: clippy
|
components: clippy
|
||||||
- name: Add WASM target
|
- name: Add WASM target
|
||||||
run: rustup target add wasm32-wasi
|
run: rustup target add wasm32-wasi
|
||||||
|
- name: Build
|
||||||
|
run: ./build-all.sh --verbose
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: clippy
|
command: clippy
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ Zellij was initially called "Mosaic".
|
||||||
|
|
||||||
## How to use it?
|
## How to use it?
|
||||||
* Clone the project
|
* 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)
|
(note that right now Zellij only supports linux and mac)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ cd ../strider
|
||||||
cargo build --release
|
cargo build --release
|
||||||
echo "Optimising WASM executables (4/5)..."
|
echo "Optimising WASM executables (4/5)..."
|
||||||
cd ../..
|
cd ../..
|
||||||
wasm-opt -O target/wasm32-wasi/release/status-bar.wasm -o target/status-bar.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
|
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)..."
|
echo "Building zellij (5/5)..."
|
||||||
cargo build $@
|
cargo build $@
|
||||||
Loading…
Add table
Reference in a new issue