Move create-extractor-pack Action

This commit is contained in:
Arthur Baars
2021-10-14 13:17:32 +02:00
parent c815178f31
commit 393800e4b9
4 changed files with 7 additions and 5 deletions

View File

@@ -9,5 +9,6 @@ runs:
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | grep -v beta | sort --version-sort | tail -1)
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
unzip -q codeql-linux64.zip
echo "${{ github.workspace }}/codeql" >> $GITHUB_PATH
env:
GITHUB_TOKEN: ${{ github.token }}

View File

@@ -29,7 +29,7 @@ jobs:
- uses: ./.github/actions/fetch-codeql
- uses: ./.github/actions/create-extractor-pack
- uses: ./ruby/actions/create-extractor-pack
- name: Checkout ${{ matrix.repo }}
uses: actions/checkout@v2

View File

@@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/fetch-codeql
- uses: ./.github/actions/create-extractor-pack
- uses: ./ruby/actions/create-extractor-pack
- name: Run QL tests
run: |
codeql/codeql pack install ql/test

View File

@@ -8,8 +8,9 @@ runs:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('**/Cargo.lock') }}
ruby/target
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('ruby/**/Cargo.lock') }}
- name: Build Extractor
shell: bash
run: env "PATH=$PATH:${{ github.workspace }}/codeql" scripts/create-extractor-pack.sh
run: scripts/create-extractor-pack.sh
working-directory: ruby