build page #27
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: test suite | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: build check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Cache rust build artifacts | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml') }} | |
restore-keys: | | |
${{ runner.os }}-cargo- | |
- name: Add wasm target | |
run: rustup target add wasm32-unknown-unknown | |
- name: cargo test | |
run: cargo test --release --all-features | |
- name: check all targets (e.g. bench) | |
run: cargo check --all-targets | |
- name: wasm build | |
run: cargo build -p geomedea-wasm --target wasm32-unknown-unknown | |
- name: Clippy check | |
run: cargo clippy --all-targets | |
- name: Format check | |
run: cargo fmt --check |