Restructure types #271
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: Main | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Environment | |
run: | | |
rustup update stable | |
rustup toolchain install nightly | |
rustup target add wasm32-unknown-unknown | |
rustup component add rustfmt --toolchain nightly | |
- name: Build for wasm | |
# Check if the library target compiles. This will still allow for using | |
# non-wasm functionality in tests and benchmarks but guarantees that | |
# consumers of the library can use it to generate wasm bindings. | |
run: cargo check --target wasm32-unknown-unknown --lib | |
- name: Rustfmt | |
run: cargo +nightly fmt --all -- --check | |
- name: Clippy | |
run: cargo clippy -- -D warnings | |
- name: Test | |
run: cargo test |