This repository has been archived by the owner on Nov 18, 2023. It is now read-only.
Build(deps): Bump wasm-bindgen from 0.2.87 to 0.2.88 #21
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: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name : install rust nightly | |
run : | | |
rustup toolchain install nightly-x86_64-unknown-linux-gnu | |
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu | |
- name: install wasm-pack | |
run: cargo install wasm-pack --force | |
- name: Build | |
run: wasm-pack build --release --target web --out-dir www/pkg/ --verbose | |