From dad988645b98bd0150ae0ae8ebb58a7ec15721b6 Mon Sep 17 00:00:00 2001 From: flagarde Date: Wed, 8 May 2024 23:03:05 +0800 Subject: [PATCH] Update sonarcloud.yml --- .github/workflows/sonarcloud.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index fd96538..23f47e4 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -29,9 +29,9 @@ jobs: run: | mkdir build cmake -S . -B build - build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ --config Release - - name: SonarCloud Scan - uses: sonarsource/sonarcloud-github-action@master + build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --build build/ --config Release + - name: Run sonar-scanner env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"