@@ -11,7 +11,7 @@ on: # yamllint disable-line rule:truthy
1111jobs :
1212 build :
1313 name : SonarCloud build and run sonar-scanner
14- runs-on : ubuntu-24.04
14+ runs-on : macos-15-intel
1515 env :
1616 # Directory where build-wrapper output will be placed
1717 BUILD_WRAPPER_OUT_DIR : build
@@ -20,23 +20,22 @@ jobs:
2020 with :
2121 # Shallow clones should be disabled for a better relevancy of analysis
2222 fetch-depth : 0
23- - name : Setup Cpp
24- uses : aminya/setup-cpp@v1
25- with :
26- compiler : llvm-17
2723 - name : Install Tools
2824 run : |
29- sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED
25+ export VCPKG_VERSION=2025.02.14
26+ git clone \
27+ --depth 1 \
28+ --branch $VCPKG_VERSION \
29+ https://github.com/microsoft/vcpkg.git \
30+ --single-branch \
31+ "$HOME/vcpkg"
32+ export VCPKG_ROOT="$HOME/vcpkg"
33+ echo "$VCPKG_ROOT" >> $GITHUB_PATH
34+ sh $VCPKG_ROOT/bootstrap-vcpkg.sh
35+ echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
36+ # lcov is available via homebrew
37+ brew install lcov
3038 pip install gcovr
31- #
32- # Install lcov dependencies
33- sudo apt-get install libcapture-tiny-perl libdatetime-perl
34- # Install lcov from source
35- git clone https://github.com/linux-test-project/lcov.git
36- cd lcov
37- git checkout v2.3.2
38- sudo make install
39- cd ..
4039
4140 - name : Check Tools
4241 run : |
6463 - name : Run build-wrapper
6564 run : |
6665 export VCPKG_ROOT=/usr/local/share/vcpkg
67- build-wrapper-linux -x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make build
66+ build-wrapper-macosx -x86 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make build
6867 # yamllint enable rule:line-length
6968 - name : Run tests to generate coverage statistics
7069 run : |
0 commit comments