From 47430f610b8c594cfc3ad9c54ddd234321ad8ed6 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sat, 17 Sep 2022 16:04:47 +0200 Subject: [PATCH] ci: convert coverage to cmake (#532) --- .github/workflows/coverage.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 47618d576..9c52276eb 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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/pr-dependency-action@v0.5 with: @@ -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: |