-
Notifications
You must be signed in to change notification settings - Fork 7
110 lines (87 loc) · 2.69 KB
/
rust-radius.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: RustRadius
###
# cargo-make - Rust compatibility matrix
# 0.20.0 works for 1.46.0 up to 1.55.0
# 0.30.0 works for 1.52 and above
# 0.35.0 works for nightly
###
on:
push:
branches: [ master, development, feature/* ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
CLICOLOR_FORCE: 1
CI: true
jobs:
modern_ci_test_w_cargo_make:
name: Modern w cargo-make Rust CI testing
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
rust: [1.65.0, 1.66.1, 1.67.1, 1.68.2, 1.69.0, 1.70.0, 1.71.0, 1.71.1, 1.72.0, 1.72.1, 1.73.0, 1.74.0, 1.74.1, 1.75.0, 1.76.0, 1.77.0]
os: [ubuntu-20.04]
steps:
- name: MODERN -- Checkout
uses: actions/checkout@v3
- name: MODERN -- Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: MODERN -- Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make --version 0.22.2
- name: MODERN -- Build
run: cargo build --verbose
- name: MODERN -- Start simple RADIUS server
run: cargo run --example sync_radius_server &
- name: MODERN -- Run tests
run: cargo test --verbose
- name: MODERN -- Run CI
uses: actions-rs/cargo@v1
with:
command: make
args: ci-flow
nightly_ci_test:
name: Nightly Rust CI testing
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
steps:
- name: Nightly Rust -- Checkout
uses: actions/checkout@v3
- name: Nightly Rust -- Install rust
uses: dtolnay/rust-toolchain@nightly
# with:
# components: cargo-make, cargo-tarpaulin
- name: Nightly Rust -- Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: Nightly Rust -- Install tarpaulin
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-tarpaulin
- name: Nightly Rust -- Build
run: cargo build --verbose
- name: Nightly Rust -- Start simple RADIUS server
run: cargo run --example sync_radius_server &
- name: Nightly Rust -- Run tests
run: cargo test --verbose
- name: Nightly Rust -- Run CI (Allow Failures)
continue-on-error: true
uses: actions-rs/cargo@v1
with:
command: make
args: ci-flow
- name: Nightly Rust -- Generate code coverage
run: |
cargo tarpaulin --verbose --all-features --ignore-tests --tests --exclude-files benches/* --workspace --timeout 120 --out Json