]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
.gitlab: CodeQL runner runs a bootstrap.sh
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 14 Mar 2025 03:45:18 +0000 (16:45 +1300)
committerRalph Boehme <slow@samba.org>
Sat, 29 Mar 2025 11:34:41 +0000 (11:34 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Martin Schwenke <martin@meltin.net>
.github/workflows/codeql.yml

index ccb6883cc16968acf3720c396a4ea9a21a0bddde..24ed4aa5bd881857885ef6eaac20737626f274f1 100644 (file)
@@ -27,7 +27,7 @@ jobs:
     #   - https://gh.io/supported-runners-and-hardware-resources
     #   - https://gh.io/using-larger-runners (GitHub.com only)
     # Consider using larger runners or machines with greater resources for possible analysis time improvements.
-    runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
+    runs-on: ubuntu-22.04
     permissions:
       # required for all workflows
       security-events: write
@@ -44,7 +44,7 @@ jobs:
       matrix:
         include:
         - language: c-cpp
-          build-mode: autobuild
+          build-mode: manual
         - language: python
           build-mode: none
         # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
@@ -87,12 +87,9 @@ jobs:
     - if: matrix.build-mode == 'manual'
       shell: bash
       run: |
-        echo 'If you are using a "manual" build mode for one or more of the' \
-          'languages you are analyzing, replace this with the commands to build' \
-          'your code, for example:'
-        echo '  make bootstrap'
-        echo '  make release'
-        exit 1
+        bash bootstrap/generated-dists/ubuntu2204/bootstrap.sh
+        ./configure
+        make -j4
 
     - name: Perform CodeQL Analysis
       uses: github/codeql-action/analyze@v3