Skip to content

Commit 213f2c7

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 213f2c7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 4 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
@@ -22,8 +22,9 @@ jobs:
2222
fetch-depth: 0
2323
- name: Install Tools
2424
run: |
25-
sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED
26-
sudo apt-get install lcov
25+
# lcov is available via homebrew
26+
brew install lcov
27+
# To convert gcov data to cobertura/xml format for SonarCloud
2728
pip install gcovr
2829
2930
- name: Check Tools
@@ -45,7 +46,7 @@ jobs:
4546
- name: Run build-wrapper
4647
run: |
4748
export VCPKG_ROOT=/usr/local/share/vcpkg
48-
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make build
49+
build-wrapper-macosx-x86 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make build
4950
# yamllint enable rule:line-length
5051

5152
- name: Run tests to generate coverage statistics

0 commit comments

Comments
 (0)