git: Fix codeql building
This commit is contained in:
parent
785140d439
commit
b4f0af4c77
31
.github/workflows/codeql-analysis.yml
vendored
31
.github/workflows/codeql-analysis.yml
vendored
@ -47,21 +47,22 @@ jobs:
|
|||||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
|
|
||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
- name: Install dependencies
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
run: |
|
||||||
- name: Autobuild
|
sudo apt update
|
||||||
uses: github/codeql-action/autobuild@v1
|
sudo bash dist/get_deps_debian.sh
|
||||||
|
- name: Build
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
run: |
|
||||||
# 📚 https://git.io/JvXDl
|
# Get path to magic db
|
||||||
|
MAGICDB_PATH=$(file --version | grep -oP "(?<=magic file from ).+")
|
||||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
mkdir build
|
||||||
# and modify them (or add more) to build your code if your project
|
cd build
|
||||||
# uses a compiled language
|
CC=gcc-10 CXX=g++-10 cmake \
|
||||||
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
||||||
#- run: |
|
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
||||||
# make bootstrap
|
-DEXTRA_MAGICDBS="$MAGICDB_PATH" \
|
||||||
# make release
|
..
|
||||||
|
make -j 4 install
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user