-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (33 loc) · 1.08 KB
/
Copy pathci.yml
File metadata and controls
45 lines (33 loc) · 1.08 KB
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
37
38
39
40
41
42
43
44
45
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: CI (${{ matrix.workspace }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
workspace: [w8, wdt]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Enable Rust Cache
uses: Swatinem/rust-cache@v2
- name: Check workspace
run: cargo check --manifest-path ${{ matrix.workspace }}/Cargo.toml
- name: Check formatting
run: cargo fmt --all --check --manifest-path ${{ matrix.workspace }}/Cargo.toml
- name: Build workspace
run: cargo build --release --manifest-path ${{ matrix.workspace }}/Cargo.toml
- name: Test
run: cargo test --workspace --release --manifest-path ${{ matrix.workspace }}/Cargo.toml
- name: Check idiomatic Rust
run: cargo clippy --all-targets --all-features --manifest-path ${{ matrix.workspace }}/Cargo.toml -- -D warnings