Skip to content

Commit

Permalink
fix issue with analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
WinteryFox committed Nov 9, 2023
1 parent 5a2c3f1 commit 09b3fee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest --build-config ${{ matrix.build_type }}

analyze:
runs-on: [ self-hosted ]
needs: [ build ]

steps:
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2

Expand All @@ -60,4 +65,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner --define sonar.cfamily.compile-commands="${{ steps.strings.outputs.build-output-dir }}/compile_commands.json"
sonar-scanner --define sonar.cfamily.compile-commands="${{ github.workspace }}/build/compile_commands.json"

0 comments on commit 09b3fee

Please sign in to comment.