-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 979 Bytes
/
ci.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
35
on:
push:
pull_request:
jobs:
rust:
name: Lint Rust code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Cargo test
run: cargo test --workspace
rust-msrv:
name: Build-test MSRV (1.74) with minimal crate dependencies
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-12, macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: dtolnay/rust-toolchain@nightly
- name: Generate minimal-version dependencies
run: cargo -Zminimal-versions generate-lockfile
- uses: dtolnay/rust-toolchain@1.74.0
- name: Cargo check
run: cargo check --workspace --all-targets