-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 867 Bytes
/
check.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
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# We assume the runner is on x86.
jobs:
check_stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup --quiet toolchain stable --profile=minimal --component=clippy,rustfmt
- run: rustup --quiet default stable
- run: cargo fmt --check
- run: cargo fetch --quiet --locked
- run: cargo clippy --quiet --frozen --workspace --all-targets -- -D warnings
- run: cargo xtask
check_msrv:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: rustup --quiet toolchain 1.71 --profile=minimal --component=clippy,rustfmt
- run: rustup --quiet default 1.71
- run: cargo fetch --quiet --locked
- run: cargo clippy --quiet --frozen --workspace --all-targets -- -D warnings
- run: cargo xtask