Skip to content

build page

build page #27

Workflow file for this run

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