Skip to content

Commit 50b9381

Browse files
committedJan 1, 2025··
ci: setup codeql build-mode=manual
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
1 parent 187d9ba commit 50b9381

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed
 

‎.github/workflows/codeql.yaml

+11-7
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
matrix:
4545
include:
4646
- language: c-cpp
47-
build-mode: autobuild
47+
build-mode: manual
4848
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
4949
# Use `c-cpp` to analyze code written in C, C++ or both
5050
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
@@ -60,9 +60,13 @@ jobs:
6060
# Initializes the CodeQL tools for scanning.
6161
- name: Initialize CodeQL
6262
uses: github/codeql-action/init@v3
63+
env:
64+
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: false
6365
with:
6466
languages: ${{ matrix.language }}
6567
build-mode: ${{ matrix.build-mode }}
68+
dependency-caching: true
69+
6670
# If you wish to specify custom queries, you can do so here or in a config file.
6771
# By default, queries listed here will override any specified in a config file.
6872
# Prefix the list here with "+" to use these queries and those in the config file.
@@ -79,12 +83,12 @@ jobs:
7983
- if: matrix.build-mode == 'manual'
8084
shell: bash
8185
run: |
82-
echo 'If you are using a "manual" build mode for one or more of the' \
83-
'languages you are analyzing, replace this with the commands to build' \
84-
'your code, for example:'
85-
echo ' make bootstrap'
86-
echo ' make release'
87-
exit 1
86+
sudo apt-get -qy update || exit 1
87+
DEBIAN_FRONTEND=noninteractive sudo apt-get -qy install autoconf automake bison build-essential check clang flex gettext libtool pkg-config libbsd-dev libbsd0 systemd || exit 1
88+
./autogen.sh || exit 1
89+
./configure --with-check || exit 1
90+
make -j all check_all || exit 1
91+
make check || exit 1
8892
8993
- name: Perform CodeQL Analysis
9094
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)
Please sign in to comment.