-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (33 loc) · 1.02 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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