File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -56,22 +56,39 @@ jobs:
56
56
57
57
steps :
58
58
- uses : actions/checkout@v2
59
- - uses : actions/cache@v2
59
+ - name : Cache entire extractor
60
+ id : cache-extractor
61
+ uses : actions/cache@v2
62
+ with :
63
+ path : |
64
+ ql/target/release/ql-autobuilder
65
+ ql/target/release/ql-autobuilder.exe
66
+ ql/target/release/ql-extractor
67
+ ql/target/release/ql-extractor.exe
68
+ key : ${{ runner.os }}-extractor-${{ hashFiles('ql/**/Cargo.lock') }}-${{ hashFiles('ql/**/*.rs') }}
69
+ - name : Cache cargo
70
+ if : steps.cache-extractor.outputs.cache-hit != 'true'
71
+ uses : actions/cache@v2
60
72
with :
61
73
path : |
62
74
~/.cargo/registry
63
75
~/.cargo/git
64
76
ql/target
65
- key : ${{ runner.os }}-rust-cargo-${{ hashFiles('**/Cargo.lock') }}
77
+ key : ${{ runner.os }}-rust-cargo-${{ hashFiles('ql/ **/Cargo.lock') }}
66
78
- name : Check formatting
79
+ if : steps.cache-extractor.outputs.cache-hit != 'true'
67
80
run : cd ql; cargo fmt --all -- --check
68
81
- name : Build
82
+ if : steps.cache-extractor.outputs.cache-hit != 'true'
69
83
run : cd ql; cargo build --verbose
70
84
- name : Run tests
85
+ if : steps.cache-extractor.outputs.cache-hit != 'true'
71
86
run : cd ql; cargo test --verbose
72
87
- name : Release build
88
+ if : steps.cache-extractor.outputs.cache-hit != 'true'
73
89
run : cd ql; cargo build --release
74
90
- name : Generate dbscheme
91
+ if : steps.cache-extractor.outputs.cache-hit != 'true'
75
92
run : ql/target/release/ql-generator --dbscheme ql/ql/src/ql.dbscheme --library ql/ql/src/codeql_ql/ast/internal/TreeSitter.qll
76
93
- uses : actions/upload-artifact@v2
77
94
with :
You can’t perform that action at this time.
0 commit comments