Skip to content

Commit c32ec0d

Browse files
committed
Add codecov step
1 parent 6415219 commit c32ec0d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jobs:
1919
build:
2020
runs-on: ${{ matrix.os }}
2121
strategy:
22+
fail-fast: false
2223
matrix:
2324
os: [ubuntu-22.04, ubuntu-24.04, macos-latest]
2425
compiler: [gcc, clang]
26+
generator: [Ninja, Unix Makefiles]
2527
exclude:
2628
- os: macos-latest
2729
compiler: gcc
@@ -34,7 +36,7 @@ jobs:
3436
if: runner.os == 'Linux'
3537
run: |
3638
sudo apt-get update
37-
sudo apt-get install -y cmake lcov gfortran
39+
sudo apt-get install -y cmake lcov gfortran ${{ matrix.compiler }}
3840
3941
- name: Install CMake, lcov on macOS
4042
if: runner.os == 'macOS'
@@ -45,13 +47,13 @@ jobs:
4547
- name: Configure and build
4648
run: |
4749
mkdir build && cd build
48-
cmake .. -DENABLE_COVERAGE=On
50+
cmake .. -G ${{ matrix.generator }} -DENABLE_COVERAGE=On
4951
make
5052
make gcov lcov test
5153
52-
- name: lcov report
53-
uses: actions/upload-artifact@v4
54-
with:
55-
name: code-coverage-report
56-
path: ./build/lcov
57-
54+
# - name: Codecov upload
55+
# uses: codecov/codecov-action@v5
56+
# with:
57+
# name: codecov-coverage
58+
# token: ${{ secrets.CODECOV_TOKEN }}
59+
# fail_ci_if_error: true

0 commit comments

Comments
 (0)