Skip to content

No need to depend on forked geozero now that the requisite changes have been merged upstream #77

No need to depend on forked geozero now that the requisite changes have been merged upstream

No need to depend on forked geozero now that the requisite changes have been merged upstream #77

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 cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/index
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Cache cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('geomedea/geomedea-wasm/src/**/*.rs') }}
restore-keys: |
${{ runner.os }}-cargo-build-${{ runner.os }}-
- 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