Skip to content

Commit 9b9b85d

Browse files
committed
fixed codeql
1 parent 2e99e5c commit 9b9b85d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/codeql.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,24 @@ jobs:
8686
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
8787
# queries: security-extended,security-and-quality
8888

89+
90+
- name: Cache LLVM
91+
id: cache-llvm
92+
uses: actions/cache@v4
93+
with:
94+
path: ${{ github.workspace }}/llvm_build/
95+
key: ${{ runner.os }}-llvm-build-${{ hashFiles('**/Makefile', '**/cmd/Makefile') }}
96+
restore-keys: |
97+
${{ runner.os }}-llvm-build-
98+
99+
- name: Setup LLVM
100+
if: steps.cache-llvm.outputs.cache-hit != 'true'
101+
run: |
102+
curl -L -o ./llvm_build.tar.gz https://github.com/DDP-Projekt/Kompilierer/releases/download/llvm-binaries/llvm_build-${{ runner.os == 'Windows' && 'mingw-12.2.0-x86_64-ucrt-posix-seh' || 'linux-11.4.0-x86_64' }}.tar.gz
103+
mkdir -p ./llvm_build/
104+
tar -xzf ./llvm_build.tar.gz -C ./ --force-local
105+
rm ./llvm_build.tar.gz
106+
89107
# If the analyze step fails for one of the languages you are analyzing with
90108
# "We were unable to automatically build your code", modify the matrix above
91109
# to set the build mode to "manual" for that language. Then modify this step
@@ -94,7 +112,6 @@ jobs:
94112
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
95113
- if: matrix.build-mode == 'manual'
96114
run: |
97-
sudo apt install llvm-12
98115
sudo locale-gen de_DE.UTF-8
99116
make -j$(nproc)
100117

0 commit comments

Comments
 (0)