-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pierre
committed
Jul 5, 2022
1 parent
105c245
commit a40061a
Showing
46 changed files
with
1,690 additions
and
3,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,12 @@ jobs: | |
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
- name: Install trunk | ||
uses: baptiste0928/cargo-install@v1 | ||
with: | ||
crate: trunk | ||
- name: Build for web | ||
run: cargo build --release --lib --target wasm32-unknown-unknown | ||
run: trunk build --release | ||
|
||
test: | ||
name: test | ||
|
@@ -76,24 +80,22 @@ jobs: | |
- name: Build deps | ||
run: sudo apt-get update && sudo apt-get install -y libatk1.0-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Install wasm bindgen | ||
uses: baptiste0928/cargo-install@v1 | ||
with: | ||
crate: wasm-bindgen-cli | ||
- name: Install toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
- name: Install trunk | ||
uses: baptiste0928/cargo-install@v1 | ||
with: | ||
crate: trunk | ||
- name: Build for web | ||
run: cargo build --release --lib --target wasm32-unknown-unknown | ||
- name: Wasm bindgen | ||
run: wasm-bindgen --out-dir ./docs/ --no-modules --no-typescript ./target/wasm32-unknown-unknown/release/mpc_valet.wasm | ||
run: trunk build --release | ||
- name: Deploy to github pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: docs | ||
folder: dist | ||
|
||
release_crate: | ||
name: release crate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/target | ||
/dist | ||
docs/mpc_valet_bg.wasm | ||
docs/mpc_valet.js |
Empty file.
Oops, something went wrong.