Skip to content

Commit

Permalink
Update sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
wichtounet committed Jul 5, 2024
1 parent a6e028e commit 9dd7bdd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: Analyze code on SonarCloud
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
steps:
Expand All @@ -19,12 +19,12 @@ jobs:
fetch-depth: 0
submodules: recursive
- name: Install GCC compiler
run: sudo apt install g++-13
run: sudo apt install g++-14 uuid-dev uuid-runtim
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2
- name: Run build-wrapper
env:
CXX: g++-13
CXX: g++-14
run: |
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make -j5 debug debug_test
- name: Run the tests
Expand All @@ -34,13 +34,13 @@ jobs:
mkdir gcov-reports
pushd gcov-reports
for f in $(find ../debug -iname '*.o'); do
gcov-13 --preserve-paths -o $f x
gcov-14 --preserve-paths -o $f x
done
popd
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
CXX: g++-13
CXX: g++-14
run: |
sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"

0 comments on commit 9dd7bdd

Please sign in to comment.