-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (31 loc) · 818 Bytes
/
main.yml
File metadata and controls
35 lines (31 loc) · 818 Bytes
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]
name: Continuous integration
# Make sure CI fails on all warnings, including Clippy lints
env:
RUSTFLAGS: "-Dwarnings"
jobs:
test:
name: Test Suite
strategy:
matrix:
rust:
- stable
- 1.75.0 # MSRV for linux distributions (>= Debian 12)
- nightly
platform: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test
lint:
name: Clippy Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: "clippy"
- run: cargo clippy