16
16
CARGO_TERM_COLOR : always
17
17
CARGO_INCREMENTAL : ' 0'
18
18
CARGO_PROFILE_DEV_DEBUG : ' 0'
19
- RUST_TOOLCHAIN_VERSION : " 1.65.0 "
19
+ RUST_TOOLCHAIN_VERSION : " 1.68.2 "
20
20
RUSTFLAGS : " -D warnings"
21
21
RUSTDOCFLAGS : " -D warnings"
22
22
RUST_LOG : " info"
@@ -30,22 +30,14 @@ jobs:
30
30
RUSTC_BOOTSTRAP : 1
31
31
steps :
32
32
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
33
- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
33
+ - uses : dtolnay/rust- toolchain@master
34
34
with :
35
- profile : minimal
36
35
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
37
- override : true
38
36
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
39
37
with :
40
38
key : udeps
41
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
42
- with :
43
- command : install
44
- args : cargo-udeps --locked
45
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
46
- with :
47
- command : udeps
48
- args : --all-targets
39
+ - run : cargo install --locked cargo-udeps@0.1.39
40
+ - run : cargo udeps --all-targets
49
41
50
42
run_cargodeny :
51
43
name : Run Cargo Deny
@@ -70,63 +62,61 @@ jobs:
70
62
runs-on : ubuntu-latest
71
63
steps :
72
64
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
73
- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
65
+ - uses : dtolnay/rust- toolchain@master
74
66
with :
75
- profile : minimal
76
67
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
77
68
components : rustfmt
78
- override : true
79
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
69
+ - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
80
70
with :
81
- command : fmt
82
- args : --all -- --check
71
+ key : fmt
72
+ - run : cargo fmt --all -- --check
83
73
84
74
run_clippy :
85
75
name : Run Clippy
86
76
runs-on : ubuntu-latest
87
77
steps :
78
+ - name : Install host dependencies
79
+ run : |
80
+ sudo apt-get update
81
+ sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
88
82
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
89
- - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
90
83
with :
91
- profile : minimal
84
+ submodules : recursive
85
+ - uses : dtolnay/rust-toolchain@master
86
+ with :
92
87
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
93
88
components : clippy
94
- override : true
95
89
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
96
90
with :
97
91
key : clippy
98
92
- name : Run clippy action to produce annotations
93
+ uses : giraffate/clippy-action@13b9d32482f25d29ead141b79e7e04e7900281e0 # v1.0.1
99
94
env :
100
95
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101
- uses : actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d # renovate: tag=v1.0.7
102
96
if : env.GITHUB_TOKEN != null
103
97
with :
104
- args : --all-targets -- -D warnings
105
- token : ${{ secrets.GITHUB_TOKEN }}
98
+ clippy_flags : --all-targets -- -D warnings
99
+ reporter : ' github-pr-review'
100
+ github_token : ${{ secrets.GITHUB_TOKEN }}
106
101
- name : Run clippy manually without annotations
107
102
env :
108
103
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
109
104
if : env.GITHUB_TOKEN == null
110
- run : cargo clippy --all-targets -- -D warnings
105
+ run : cargo clippy --color never -q -- all-targets -- -D warnings
111
106
112
107
run_rustdoc :
113
108
name : Run RustDoc
114
109
runs-on : ubuntu-latest
115
110
steps :
116
111
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
117
- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
112
+ - uses : dtolnay/rust- toolchain@master
118
113
with :
119
- profile : minimal
120
114
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
121
115
components : rustfmt
122
- override : true
123
116
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
124
117
with :
125
118
key : doc
126
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
127
- with :
128
- command : doc
129
- args : --document-private-items
119
+ - run : cargo doc --document-private-items
130
120
131
121
run_tests :
132
122
name : Run Cargo Tests
@@ -138,17 +128,13 @@ jobs:
138
128
runs-on : ubuntu-latest
139
129
steps :
140
130
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
141
- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
131
+ - uses : dtolnay/rust- toolchain@master
142
132
with :
143
- profile : minimal
144
133
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
145
- override : true
146
134
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
147
135
with :
148
136
key : test
149
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
150
- with :
151
- command : test
137
+ - run : cargo test
152
138
153
139
tests_passed :
154
140
name : All tests passed
0 commit comments