forked from mullvad/udp-over-tcp
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.27 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
name: Build and test
on:
- push
# Build if requested manually from the Actions tab
- workflow_dispatch
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: --deny warnings
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt -- --check
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo clippy -- -D warnings
permissions:
checks: write
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo install cargo-audit
- name: Audit
run: cargo audit --deny warnings
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable, beta]
include:
- os: ubuntu-latest
rust: nightly
- os: ubuntu-latest
# MSRV. Not considered breaking when this has to be bumped.
# But update `rust-version` in `Cargo.toml`
rust: 1.80.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: cargo install cargo-all-features
- name: Build
run: cargo build-all-features
- name: Test
run: cargo test-all-features