Skip to content

Commit acc06ab

Browse files
committed
Windows, still path problems. macOS, was missing DEBUG build type.
1 parent d72bc96 commit acc06ab

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ jobs:
8282

8383
- name: Generate Coverage Report
8484
run: |
85-
$opencppcoverage = "C:\Program Files (x86)\OpenCppCoverage\OpenCppCoverage.exe"
86-
& $opencppcoverage --sources "${{ github.workspace }}" --cover_children --export_type=html:build/coverage_report --export_type=cobertura:build/cobertura.xml -- ctest --test-dir build -C Debug --output-on-failure
85+
$env:PATH = "C:\Program Files (x86)\OpenCppCoverage;$env:PATH"
86+
OpenCppCoverage --sources "${{ github.workspace }}" --cover_children --export_type=html:build/coverage_report --export_type=cobertura:build/cobertura.xml -- ctest --test-dir build -C Debug --output-on-failure
8787
shell: pwsh
8888

8989
- name: Generate Coverage Badge
@@ -151,7 +151,11 @@ jobs:
151151
run: brew install lcov
152152

153153
- name: Configure
154-
run: cmake -S . -B build -DENABLE_COVERAGE=ON -DCMAKE_OSX_ARCHITECTURES=${{ matrix.cmake_arch }}
154+
run: |
155+
cmake -S . -B build \
156+
-DENABLE_COVERAGE=ON \
157+
-DCMAKE_BUILD_TYPE=Debug \
158+
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.cmake_arch }}
155159
156160
- name: Build
157161
run: cmake --build build

0 commit comments

Comments
 (0)