Skip to content

Commit 58a61c7

Browse files
authored
CI: Only run CodeQL for Debug matrix configuration (microsoft#179)
The new "Debug" build now compiles all code. So there's no use in running static analysis on Release.
1 parent 784f155 commit 58a61c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Initialize CodeQL for C++
3838
uses: github/codeql-action/init@v1
39-
if: ${{ matrix.os == 'windows-2019' }}
39+
if: ${{ matrix.os == 'windows-2019' && matrix.conf == 'Debug' }}
4040
with:
4141
languages: cpp
4242
config-file: ./.github/codeql/codeql-config.yml
@@ -66,4 +66,4 @@ jobs:
6666
6767
- name: Perform CodeQL Analysis
6868
uses: github/codeql-action/analyze@v1
69-
if: ${{ matrix.os == 'windows-2019' }}
69+
if: ${{ matrix.os == 'windows-2019' && matrix.conf == 'Debug' }}

0 commit comments

Comments
 (0)