From 408db54614faf6c5d0bfdfec1bb93ad4754b2bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= Date: Sun, 21 Jul 2024 13:55:39 +0200 Subject: [PATCH] ci: macos: only run coverage when we can run test on the host --- .github/workflows/build_and_test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 2445f45a77..1001042209 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -365,12 +365,14 @@ jobs: run: cd build_examples/tutorials_bin && ./Tutorial-HelloWorld - name: Create Cobertura Report + if: ${{ matrix.host-arch == matrix.arch }} run: | python3 -m pip install gcovr gcovr -v -r . $GCOVR_FLAGS -o coverage.xml - name: Upload Coverage Results uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 + if: ${{ matrix.host-arch == matrix.arch }} with: files: ./coverage.xml flags: ${{ matrix.os-version }},unittest