-
Notifications
You must be signed in to change notification settings - Fork 51
89 lines (86 loc) · 2.76 KB
/
rust.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
name: tests
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Run Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust:
- stable
- beta
os:
- ubuntu-latest
- windows-latest
toolchain:
- stable
- 1.67.1
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --all-targets
- run: cargo build --all-targets --no-default-features
- run: cargo build --all-targets --all-features
- run: cargo test
- run: cargo test --no-default-features
- run: cargo test --features=colored
- run: cargo test --features=syslog-3
- run: cargo test --features=syslog-4
- run: cargo test --features=syslog-6
- run: cargo test --features=syslog-7
- run: cargo test --features=reopen-03
- run: cargo test --features=reopen-1
- run: cargo test --features=meta-logging-in-format
- run: cargo test --all-features
- run: cargo run --example cmd-program
- run: cargo run --example cmd-program -- --verbose
- run: cargo run --example colored --features colored
- run: cargo run --example pretty-colored --features colored
- run: cargo run --example date-based-file-log --features date-based
# we don't exactly have a good test suite for DateBased right now, so let's at least do this:
- run: cargo run --example date-based-file-log --features date-based,meta-logging-in-format
- run: cargo doc --all-features
env:
RUSTDOCFLAGS: -D warnings
linux:
name: Linux Examples
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
toolchain:
- stable
- 1.67.1
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo run --example syslog3 --features syslog-3
- run: cargo run --example syslog4 --features syslog-4
- run: cargo run --example syslog --features syslog-6
- run: cargo run --example syslog7 --features syslog-7
msrv:
name: MSRV Compat
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- run: rustup update 1.60.0 && rustup default 1.60.0
- run: cargo build
optional_lints:
name: Optional Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo fmt --check
- run: cargo clippy --all-features --all-targets -- -D warnings