-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (26 loc) · 963 Bytes
/
tests.yml
File metadata and controls
36 lines (26 loc) · 963 Bytes
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
35
36
name: Tests
on:
push:
branches: [master]
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --all -- --check
- name: Clippy (default/CPU path)
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Test (default/CPU path)
run: cargo test --workspace --release
- name: Clippy (GPU feature)
run: cargo clippy --workspace --all-targets --no-default-features --features gpu -- -D warnings
- name: Check (GPU feature)
run: cargo check --workspace --all-targets --no-default-features --features gpu