44
44
matrix :
45
45
include :
46
46
- language : c-cpp
47
- build-mode : autobuild
47
+ build-mode : manual
48
48
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
49
49
# Use `c-cpp` to analyze code written in C, C++ or both
50
50
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
60
60
# Initializes the CodeQL tools for scanning.
61
61
- name : Initialize CodeQL
62
62
uses : github/codeql-action/init@v3
63
+ env :
64
+ CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES : false
63
65
with :
64
66
languages : ${{ matrix.language }}
65
67
build-mode : ${{ matrix.build-mode }}
68
+ dependency-caching : true
69
+
66
70
# If you wish to specify custom queries, you can do so here or in a config file.
67
71
# By default, queries listed here will override any specified in a config file.
68
72
# Prefix the list here with "+" to use these queries and those in the config file.
@@ -79,12 +83,12 @@ jobs:
79
83
- if : matrix.build-mode == 'manual'
80
84
shell : bash
81
85
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
88
92
89
93
- name : Perform CodeQL Analysis
90
94
uses : github/codeql-action/analyze@v3
0 commit comments