feat: Rust library and binary #123
Workflow file for this run
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: Testing | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
testing: | |
name: Testing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install wasm-pack | |
run: | | |
cargo install wasm-pack | |
- name: Build WASM library | |
run: | | |
wasm-pack build --release --target web -- --no-default-features --features wasm | |
- name: Build Rust binary | |
run: | | |
npm i | |
cargo build --release --no-default-features --feature rust | |
- name: Check coding style | |
run: | | |
cargo fmt --check |