Skip to content

Commit 9c79290

Browse files
committed
Ruby: cache the entire extractor
1 parent e28f1ff commit 9c79290

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ruby/actions/create-extractor-pack/action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,23 @@ description: Builds the Ruby CodeQL pack
33
runs:
44
using: composite
55
steps:
6-
- uses: actions/cache@v3
6+
- name: Cache entire extractor
7+
id: cache-extractor
8+
uses: actions/cache@v3
9+
with:
10+
path: ruby/extractor-pack
11+
key: ${{ runner.os }}-extractor-${{ hashFiles('ruby/rust-toolchain.toml', 'ruby/**/Cargo.lock') }}-${{ hashFiles('ruby/**/*.rs') }}-${{ hashFiles('ruby/codeql-extractor.yml', 'ruby/downgrades', 'ruby/tools', 'ruby/ql/lib/ruby.dbscheme', 'ruby/ql/lib/ruby.dbscheme.stats') }}
12+
- name: Cache cargo
13+
uses: actions/cache@v3
14+
if: steps.cache-extractor.outputs.cache-hit != 'true'
715
with:
816
path: |
917
~/.cargo/registry
1018
~/.cargo/git
1119
ruby/target
1220
key: ${{ runner.os }}-ruby-qltest-cargo-${{ hashFiles('ruby/rust-toolchain.toml', 'ruby/**/Cargo.lock') }}
1321
- name: Build Extractor
22+
if: steps.cache-extractor.outputs.cache-hit != 'true'
1423
shell: bash
1524
run: scripts/create-extractor-pack.sh
1625
working-directory: ruby

0 commit comments

Comments
 (0)