67
67
rust :
68
68
toolchain : nightly
69
69
target : x86_64-apple-darwin
70
- components : rust-src
70
+ components : clippy, rust-src
71
71
args : -Zbuild-std -Zdoctest-xcompile
72
72
# 32-bit support was removed in 10.15, so we can't test the
73
73
# binary, only build it
@@ -114,7 +114,7 @@ jobs:
114
114
rust :
115
115
toolchain : nightly
116
116
target : x86_64-apple-darwin
117
- components : rust-src
117
+ components : clippy, rust-src
118
118
args : -Zbuild-std -Zdoctest-xcompile
119
119
test-args : --no-run
120
120
- name : Build iOS ARMv7s
@@ -123,7 +123,7 @@ jobs:
123
123
rust :
124
124
toolchain : nightly
125
125
target : x86_64-apple-darwin
126
- components : rust-src
126
+ components : clippy, rust-src
127
127
args : -Zbuild-std -Zdoctest-xcompile
128
128
test-args : --no-run
129
129
- name : Build iOS 32bit x86
@@ -132,7 +132,7 @@ jobs:
132
132
rust :
133
133
toolchain : nightly
134
134
target : x86_64-apple-darwin
135
- components : rust-src
135
+ components : clippy, rust-src
136
136
args : -Zbuild-std -Zdoctest-xcompile
137
137
test-args : --no-run
138
138
- name : Test Compiler-RT
@@ -302,7 +302,7 @@ jobs:
302
302
toolchain : ${{ matrix.rust.toolchain || 'stable' }}
303
303
profile : minimal
304
304
override : true
305
- components : ${{ matrix.rust.components }}
305
+ components : ${{ matrix.rust.components || 'clippy' }}
306
306
# Allows installing for a different base target
307
307
target : ${{ matrix.rust.target || matrix.target }}
308
308
@@ -312,6 +312,13 @@ jobs:
312
312
# cargo install cargo-dinghy --version=^0.4 --root=$HOME/extern --target=x86_64-apple-darwin
313
313
run : cargo install --git https://github.com/madsmtm/dinghy.git --branch update-cargo --bin cargo-dinghy --root=$HOME/extern --target=x86_64-apple-darwin
314
314
315
+ - name : Lint
316
+ uses : actions-rs/cargo@v1
317
+ with :
318
+ command : clippy
319
+ # Temporarily allow `clippy::let_unit_value`
320
+ args : ${{ env.ARGS }} --all-targets -- --deny warnings --allow clippy::let_unit_value
321
+
315
322
- name : Build
316
323
if : ${{ !matrix.dinghy }}
317
324
uses : actions-rs/cargo@v1
0 commit comments