Skip to content

Commit 41941ca

Browse files
committed
include caching for bundle creation
1 parent 75e258c commit 41941ca

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/code-scanning-pack-gen.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ env:
2020
XARGS_MAX_PROCS: 4
2121

2222
jobs:
23-
2423
prepare-code-scanning-pack-matrix:
2524
name: Prepare CodeQL Code Scanning pack matrix
2625
runs-on: ubuntu-22.04
@@ -139,20 +138,21 @@ jobs:
139138
- name: Create qlpack bundles
140139
env:
141140
CODEQL_HOME: ${{ github.workspace }}/codeql_home
141+
CODEQL_CACHE: ${{ github.workspace }}/codeql_cache
142142
run: |
143143
PATH=$PATH:$CODEQL_HOME/codeql
144144
145-
codeql pack bundle --output=common-cpp-coding-standards.tgz cpp/common/src
146-
codeql pack bundle --output=common-c-coding-standards.tgz c/common/src
147-
codeql pack bundle --output=misra-c-coding-standards.tgz c/misra/src
148-
codeql pack bundle --output=cert-c-coding-standards.tgz c/cert/src
149-
codeql pack bundle --output=cert-cpp-coding-standards.tgz cpp/cert/src
150-
codeql pack bundle --output=autosar-cpp-coding-standards.tgz cpp/autosar/src
151-
codeql pack bundle --output=misra-cpp-coding-standards.tgz cpp/misra/src
152-
codeql pack bundle --output=report-coding-standards.tgz cpp/report/src
145+
codeql pack bundle --common-caches="$CODEQL_CACHE" --output=common-cpp-coding-standards.tgz cpp/common/src
146+
codeql pack bundle --common-caches="$CODEQL_CACHE" --output=common-c-coding-standards.tgz c/common/src
147+
codeql pack bundle --common-caches="$CODEQL_CACHE" --output=misra-c-coding-standards.tgz c/misra/src
148+
codeql pack bundle --common-caches="$CODEQL_CACHE" --output=cert-c-coding-standards.tgz c/cert/src
149+
codeql pack bundle --common-caches="$CODEQL_CACHE" --output=cert-cpp-coding-standards.tgz cpp/cert/src
150+
codeql pack bundle --common-caches="$CODEQL_CACHE" --output=autosar-cpp-coding-standards.tgz cpp/autosar/src
151+
codeql pack bundle --common-caches="$CODEQL_CACHE" --output=misra-cpp-coding-standards.tgz cpp/misra/src
152+
codeql pack bundle --common-caches="$CODEQL_CACHE" --output=report-coding-standards.tgz cpp/report/src
153153
154154
- name: Upload qlpack bundles
155155
uses: actions/upload-artifact@v7
156156
with:
157157
name: coding-standards-codeql-packs
158-
path: '*-coding-standards.tgz'
158+
path: "*-coding-standards.tgz"

.github/workflows/codeql_unit_tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ on:
1717
- "rc/**"
1818

1919
jobs:
20-
2120
prepare-unit-test-matrix:
2221
name: Prepare CodeQL unit test matrix
2322
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)