remove lifetime arg #86
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 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 |