File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -47,17 +47,12 @@ jobs:
4747 - name : Install dependencies
4848 uses : ./.github/actions/install-dependencies
4949
50- - name : Install sonar-scanner and build-wrapper
51- uses : SonarSource/sonarcloud-github-c-cpp@816b1822d71776ee0d32bc012e95024ec52ac1fc # v3.1.0
52-
53- - name : Run build-wrapper
54- run : |
55- cmake -B build
56- build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build
50+ - name : Generate compilation database
51+ run : cmake -B build
5752
5853 - name : Run sonar-scanner
54+ uses : SonarSource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 # v4.2.1
55+ with :
56+ args : --define sonar.cfamily.compile-commands=build/compile_commands.json
5957 env :
60- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6158 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
62- run : |
63- sonar-scanner --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
You can’t perform that action at this time.
0 commit comments