9
9
env :
10
10
CARGO_TERM_COLOR : always
11
11
RUSTFLAGS : " -Ctarget-feature=+aes,+ssse3"
12
- RUST_LOG : " shadowsocks= trace"
12
+ RUST_LOG : " trace"
13
13
14
14
jobs :
15
- build-linux :
16
- runs-on : ubuntu-latest
15
+ buid-test-check :
16
+ strategy :
17
+ matrix :
18
+ platform :
19
+ - ubuntu-latest
20
+ - windows-latest
21
+ - macos-latest
22
+ runs-on : ${{ matrix.platform }}
17
23
18
24
steps :
19
25
- uses : actions/checkout@v2
@@ -28,60 +34,19 @@ jobs:
28
34
uses : actions-rs/toolchain@v1
29
35
with :
30
36
profile : minimal
37
+ components : clippy
31
38
- name : Build & Test (Default)
32
39
run : cargo test --verbose --no-fail-fast
33
40
- name : Build & Test (--no-default-features)
34
41
run : cargo test --verbose --no-default-features --no-fail-fast
35
42
- name : Build with All Features Enabled
36
43
run : cargo build --verbose --features "local-redir local-dns dns-over-tls dns-over-https stream-cipher"
37
-
38
- build-windows :
39
- runs-on : windows-latest
40
-
41
- steps :
42
- - uses : actions/checkout@v2
43
- - uses : actions/cache@v2
44
- with :
45
- path : |
46
- ~/.cargo/registry
47
- ~/.cargo/git
48
- target
49
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
50
- - name : Install Rust nightly
51
- uses : actions-rs/toolchain@v1
52
- with :
53
- profile : minimal
54
- - name : Build & Test (Default)
55
- run : cargo test --verbose --no-fail-fast
56
- - name : Build & Test (--no-default-features)
57
- run : cargo test --verbose --no-default-features --no-fail-fast
58
- - name : Build with All Features Enabled
59
- run : cargo build --verbose --features "local-dns dns-over-tls dns-over-https stream-cipher"
60
-
61
- build-macos :
62
- runs-on : macos-latest
63
-
64
- steps :
65
- - uses : actions/checkout@v2
66
- - name : Install GNU tar
67
- run : |
68
- brew install gnu-tar
69
- # echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
70
- echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
71
- - uses : actions/cache@v2
72
- with :
73
- path : |
74
- ~/.cargo/registry
75
- ~/.cargo/git
76
- target
77
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
78
- - name : Install Rust nightly
79
- uses : actions-rs/toolchain@v1
44
+ - name : Clippy Check
45
+ uses : actions-rs/clippy-check@v1
80
46
with :
81
- profile : minimal
82
- - name : Build & Test (Default)
83
- run : cargo test --verbose --no-fail-fast
84
- - name : Build & Test (--no-default-features)
85
- run : cargo test --verbose --no-default-features --no-fail-fast
86
- - name : Build with All Features Enabled
87
- run : cargo build --verbose --features "local-redir local-dns dns-over-tls dns-over-https stream-cipher"
47
+ name : clippy-${{ matrix.platform }}
48
+ token : ${{ secrets.GITHUB_TOKEN }}
49
+ args : |
50
+ --all-features --verbose -- -Z macro-backtrace
51
+ -W clippy::absurd_extreme_comparisons
52
+ -W clippy::erasing_op
0 commit comments