Skip to content

Commit

Permalink
Ruby: cache the entire extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-krogh committed Nov 21, 2022
1 parent e28f1ff commit 9c79290
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ruby/actions/create-extractor-pack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@ description: Builds the Ruby CodeQL pack
runs:
using: composite
steps:
- uses: actions/cache@v3
- name: Cache entire extractor
id: cache-extractor
uses: actions/cache@v3
with:
path: ruby/extractor-pack
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') }}
- name: Cache cargo
uses: actions/cache@v3
if: steps.cache-extractor.outputs.cache-hit != 'true'
with:
path: |
~/.cargo/registry
~/.cargo/git
ruby/target
key: ${{ runner.os }}-ruby-qltest-cargo-${{ hashFiles('ruby/rust-toolchain.toml', 'ruby/**/Cargo.lock') }}
- name: Build Extractor
if: steps.cache-extractor.outputs.cache-hit != 'true'
shell: bash
run: scripts/create-extractor-pack.sh
working-directory: ruby

0 comments on commit 9c79290

Please sign in to comment.