From e05799cd846aa7c27fe865e144cb30cbeae0e49b Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Sun, 7 Sep 2025 21:34:27 -0300 Subject: [PATCH] [CONFIG] [Github Actions] trying to collect better coverage to sonarcloud using newer lcov tool available on homebrew instead of available in ubuntu-24. --- .github/workflows/sonarcloud.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index e126f4b..8877956 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -11,7 +11,7 @@ on: # yamllint disable-line rule:truthy jobs: build: name: SonarCloud build and run sonar-scanner - runs-on: ubuntu-24.04 + runs-on: macos-15 env: # Directory where build-wrapper output will be placed BUILD_WRAPPER_OUT_DIR: build @@ -22,8 +22,9 @@ jobs: fetch-depth: 0 - name: Install Tools run: | - sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED - sudo apt-get install lcov + # lcov is available via homebrew + brew install lcov + # To convert gcov data to cobertura/xml format for SonarCloud pip install gcovr - name: Check Tools @@ -45,7 +46,7 @@ jobs: - name: Run build-wrapper run: | export VCPKG_ROOT=/usr/local/share/vcpkg - build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make build + build-wrapper-macosx-x86 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make build # yamllint enable rule:line-length - name: Run tests to generate coverage statistics