Skip to content

Commit

Permalink
Add Ms build step
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-vinot-sonarsource committed Mar 18, 2024
1 parent 527d0cd commit 177a45c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ jobs:
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Set up msbuild
uses: microsoft/[email protected]
- name: Install sonar-scanner and build-wrapper
uses: claire-villard-sonarsource/sonarqube-github-c-cpp@8caf0e2c4fea34d6d241b86e73a520f4bb06624b
env:
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: Run build-wrapper
run: build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} msbuild sonar_scanner_example.vcxproj
run: build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} msbuild sonar_scanner_example.vcxproj /t:rebuild /nodeReuse:false
#here goes your compilation wrapped with build-wrapper; See https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/languages/c-family/#using-build-wrapper for more information
# build-preparation steps
- name: Run sonar-scanner
Expand Down

0 comments on commit 177a45c

Please sign in to comment.