From b439db273dff4711a9887715d0f46dd05206a16c Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Tue, 15 Jun 2021 21:12:09 -0700 Subject: [PATCH] Remove CodeQL runs from debug and experimental runs (#7663) * Attempting to only run this on 3 builds * Trying this syntax --- .github/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a4d21cd40ca072..b65cc2483cf11c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -51,6 +51,7 @@ jobs: with: submodules: true - name: Initialize CodeQL + if: ${{ github.event_name == 'push' && (matrix.type == 'gcc_release' || matrix.type == 'clang' || matrix.type == 'mbedtls') }} uses: github/codeql-action/init@v1 with: languages: "cpp" @@ -98,7 +99,7 @@ jobs: # - name: Remove nrfxlib binaries for CodeQL Analysis # run: find . -type d -name "nrfxlib" -exec rm -rf {} + - name: Perform CodeQL Analysis - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' && (matrix.type == 'gcc_release' || matrix.type == 'clang' || matrix.type == 'mbedtls') }} uses: github/codeql-action/analyze@v1 build_darwin: name: Build on Darwin