-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 916 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
on:
push:
pull_request:
jobs:
rust:
name: Lint Rust code
runs-on: windows-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
# TODO(YIGIT): We currently do not have tests
# - name: Cargo test
# run: cargo test --workspace
rust-msrv:
name: Build-test MSRV (1.74) with minimal crate dependencies
runs-on: windows-latest
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