Skip to content

use shuttle.rs

use shuttle.rs #50

Workflow file for this run

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