This repository has been archived by the owner on Nov 18, 2023. It is now read-only.
fix(ci) #17
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 | |
- 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 | |
- name: Build | |
run: ./build.sh #wasm-pack build --release --target web --out-dir www/pkg/ | |