From b4618df18bc5c8d59635f90f1a3ae8a16179d650 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Sep 2025 07:13:28 +0530 Subject: [PATCH] Run CodeQL analysis for different languages in parallel --- .github/workflows/codeql.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8d5c2e0cd4..f969b88ffe 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,4 +1,4 @@ -name: "CodeQL Advanced" +name: "CodeQL" on: push: @@ -19,7 +19,16 @@ jobs: contents: read # to fetch code (actions/checkout) security-events: write # to upload SARIF results (github/codeql-action/analyze) - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - language: python + os: ubuntu-latest + - language: c + os: ubuntu-latest + + runs-on: ${{ matrix.os }} steps: @@ -34,13 +43,15 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: - languages: python, c + languages: ${{ matrix.language }} - name: Install calibre dependencies + if: matrix.language == 'c' run: python setup/unix-ci.py install - name: Bootstrap calibre + if: matrix.language == 'c' run: python setup/unix-ci.py bootstrap