Skip to content

Commit bd4ac88

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] trying to collect better coverage to sonarcloud using newer lcov tool available on homebrew instead of available in ubuntu-24.
1 parent ef87594 commit bd4ac88

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on: # yamllint disable-line rule:truthy
1111
jobs:
1212
build:
1313
name: SonarCloud build and run sonar-scanner
14-
runs-on: ubuntu-24.04
14+
runs-on: macos-14
1515
env:
1616
# Directory where build-wrapper output will be placed
1717
BUILD_WRAPPER_OUT_DIR: build
@@ -23,7 +23,9 @@ jobs:
2323
- name: Install Tools
2424
run: |
2525
sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED
26-
sudo apt-get install lcov
26+
# lcov is available via homebrew
27+
brew install lcov
28+
# To convert gcov data to cobertura/xml format for SonarCloud
2729
pip install gcovr
2830
2931
- name: Check Tools
@@ -45,7 +47,7 @@ jobs:
4547
- name: Run build-wrapper
4648
run: |
4749
export VCPKG_ROOT=/usr/local/share/vcpkg
48-
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make build
50+
build-wrapper-macosx-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make build
4951
# yamllint enable rule:line-length
5052

5153
- name: Run tests to generate coverage statistics

0 commit comments

Comments
 (0)