소스 검색

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
         # Initializes the CodeQL tools for scanning.
         uses: github/codeql-action/init@v3
-        if: matrix.os == 'ubuntu-24.04'
+        if: ${{ matrix.os == 'ubuntu-24.04' && matrix.build_type == 'Debug' }}
         with:
           languages: 'cpp'
 
@@ -108,7 +108,7 @@ jobs:
         run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
 
       - 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
 
   build-wayland: