-
Notifications
You must be signed in to change notification settings - Fork 11
29 lines (27 loc) · 1.1 KB
/
tests.yaml
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
name: "Tests"
on:
workflow_call: {}
jobs:
ci:
runs-on: ${{ matrix.type.os }}
name: ${{ matrix.type.target }} (${{ matrix.type.os }})
strategy:
matrix:
type:
- { os: windows-latest, target: x86_64-pc-windows-gnu }
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
target: ${{ matrix.type.target }}
# By default, setup-rust-toolchain sets "-D warnings". As a side effect, the settings in
# .cargo/config.toml are ignored:
# https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags
# "There are four mutually exclusive sources of extra flags"
rustflags: ""
- run: cargo fmt -- --check
- run: cargo test --all-targets --target ${{ matrix.type.target }} -- --skip test_scheduler
- run: cargo clippy --all-targets --target ${{ matrix.type.target }} -- --deny warnings
- run: cargo build --target ${{ matrix.type.target }}