Skip to content

Commit

Permalink
ci: convert coverage to cmake (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored Sep 17, 2022
1 parent 1a3aa77 commit 47430f6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: make
run: |
make EXTRA_CFLAGS="--coverage" CCACHE=
cmake -B build -DCMAKE_C_FLAGS="--coverage" && cmake --build build -j
- uses: sreimers/[email protected]
with:
Expand All @@ -36,16 +36,14 @@ jobs:
- name: retest
run: |
cd ..
rm re/libre.so || true
rm re/libre.dylib || true
make -C rem librem.a
cmake -S rem -B rem/build && cmake --build rem/build
cd retest; cmake -B build -DCMAKE_EXE_LINKER_FLAGS="--coverage" && \
cmake --build build -j && ./build/retest -v -a
- name: gcov
run: |
cd ../re
gcov build-x86_64/**/*.o
gcov build/**/*.o
- name: install gcovr
run: |
Expand Down

0 comments on commit 47430f6

Please sign in to comment.