From 95c268be4c53ab6ad152b0894875cb938d29e2fc Mon Sep 17 00:00:00 2001 From: SChernykh Date: Thu, 20 Jan 2022 13:36:15 +0100 Subject: [PATCH] Update msvc-analysis.yml --- .github/workflows/msvc-analysis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/msvc-analysis.yml b/.github/workflows/msvc-analysis.yml index ad857df..d2c7812 100644 --- a/.github/workflows/msvc-analysis.yml +++ b/.github/workflows/msvc-analysis.yml @@ -19,6 +19,7 @@ on: env: # Path to the CMake build directory. build: '${{ github.workspace }}/build' + config: 'Release' jobs: analyze: @@ -32,18 +33,19 @@ jobs: submodules: true - name: Configure CMake - run: cmake -B ${{ env.build }} + run: cmake -B ${{ env.build }} -DCMAKE_BUILD_TYPE=${{ env.config }} # Build is not required unless generated source files are used # - name: Build CMake # run: cmake --build ${{ env.build }} - name: Initialize MSVC Code Analysis - uses: microsoft/msvc-code-analysis-action@04825f6d9e00f87422d6bf04e1a38b1f3ed60d99 + uses: microsoft/msvc-code-analysis-action@47ecec99bf7ce0399ed85cbb5012b6f24eab5959 # Provide a unique ID to access the sarif output path id: run-analysis with: cmakeBuildDirectory: ${{ env.build }} + buildConfiguration: ${{ env.config }} # Ruleset file that will determine what checks will be run ruleset: NativeRecommendedRules.ruleset