-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (48 loc) · 1.29 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
# https://github.com/rust-lang/cargo/issues/11014
CARGO_NET_GIT_FETCH_WITH_CLI=true
jobs:
rustfmt:
runs-on: ubuntu-24.04
steps:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt
- uses: actions/checkout@v4
- run: cargo fmt -- --check
clippy:
runs-on: ubuntu-24.04
steps:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy
- uses: actions/checkout@v4
- run: cargo +nightly clippy -- --deny warnings
ci:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- toolchain: stable
- toolchain: beta
- toolchain: nightly
- toolchain: 1.57.0 # MSRV
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test
- run: cargo test --no-default-features
- run: cargo test --no-default-features --features=aead
- run: cargo test --no-default-features --features=ecdsa
- run: cargo test --no-default-features --features=rsa_sig