File tree 3 files changed +13
-4
lines changed
clippy_lints/src/utils/internal_lints
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,19 @@ jobs:
39
39
if : github.ref == 'refs/heads/beta'
40
40
run : echo "BETA=true" >> $GITHUB_ENV
41
41
42
- - name : Use scripts and templates from master branch
42
+ - name : Use deploy script from master branch
43
43
run : |
44
44
git fetch --no-tags --prune --depth=1 origin master
45
- git checkout origin/master -- .github/deploy.sh util/gh-pages/ util/*.py
45
+ git checkout origin/master -- .github/deploy.sh
46
+
47
+ - name : cargo update
48
+ run : cargo update
49
+
50
+ - name : Cache
51
+ uses : Swatinem/rust-cache@v1
52
+
53
+ - name : cargo collect-metadata
54
+ run : cargo collect-metadata
46
55
47
56
- name : Deploy
48
57
run : |
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ use clippy_utils::{
32
32
} ;
33
33
34
34
/// This is the output file of the lint collector.
35
- const OUTPUT_FILE : & str = "../util/gh-pages/metadata_collection .json" ;
35
+ const OUTPUT_FILE : & str = "../util/gh-pages/lints .json" ;
36
36
/// These lints are excluded from the export.
37
37
const BLACK_LISTED_LINTS : [ & str ; 3 ] = [ "lint_author" , "deep_code_inspection" , "internal_metadata_collector" ] ;
38
38
/// These groups will be ignored by the lint group matcher. This is useful for collections like
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ fn run_metadata_collection_lint() {
183
183
use std:: time:: SystemTime ;
184
184
185
185
// Setup for validation
186
- let metadata_output_path = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) ) . join ( "util/gh-pages/metadata_collection .json" ) ;
186
+ let metadata_output_path = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) ) . join ( "util/gh-pages/lints .json" ) ;
187
187
let start_time = SystemTime :: now ( ) ;
188
188
189
189
// Run collection as is
You can’t perform that action at this time.
0 commit comments