-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (31 loc) · 920 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
name: cder
on:
pull_request:
push:
branches:
- main
env:
RUSTFLAGS: -Dwarnings
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [1.68.0, stable]
name: Test with Rust ${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.version }}
components: rustfmt, clippy
# tokio 1.39+ requires rust <= 1.70.0
# https://github.com/tokio-rs/tokio?tab=readme-ov-file#supported-rust-versions
- run: cargo update -p tokio --precise 1.38.1
if: matrix.version == '1.68.0'
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets --all-features
- run: cargo test