Преглед изворни кода

chore: ensure codeql analysis only happens on debug versions

Almamu пре 1 година
родитељ
комит
7028a8abf5
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      .github/workflows/cmake.yml

+ 2 - 2
.github/workflows/cmake.yml

@@ -86,7 +86,7 @@ jobs:
       - name: Initialize CodeQL
       - name: Initialize CodeQL
         # Initializes the CodeQL tools for scanning.
         # Initializes the CodeQL tools for scanning.
         uses: github/codeql-action/init@v3
         uses: github/codeql-action/init@v3
-        if: matrix.os == 'ubuntu-24.04'
+        if: ${{ matrix.os == 'ubuntu-24.04' && matrix.build_type == 'Debug' }}
         with:
         with:
           languages: 'cpp'
           languages: 'cpp'
 
 
@@ -108,7 +108,7 @@ jobs:
         run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
         run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
 
 
       - name: Perform CodeQL Analysis
       - name: Perform CodeQL Analysis
-        if: matrix.os == 'ubuntu-24.04'
+        if: ${{ matrix.os == 'ubuntu-24.04' && matrix.build_type == 'Debug' }}
         uses: github/codeql-action/analyze@v3
         uses: github/codeql-action/analyze@v3
 
 
   build-wayland:
   build-wayland: