use shuttle.rs #50
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUST_BACKTRACE: short | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- uses: Swatinem/rust-cache@v1 | |
- run: rustup target add wasm32-unknown-unknown | |
- run: cargo install wasm-bindgen-cli --version 0.2.69 | |
- name: Build wasm | |
run: RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --target wasm32-unknown-unknown --release --features web | |
- name: wasm-bindgen | |
run: wasm-bindgen --out-dir .public --target web target/wasm32-unknown-unknown/release/hug.wasm | |
- run: cp -r assets .public/ | |
- uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: .public |