Skip to content

Commit 61e2c84

Browse files
author
Vandenplas, Jeremie
committed
Add cmake in CI
1 parent b171ad6 commit 61e2c84

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
build: [fpm, meson]
10+
build: [cmake, fpm, meson]
1111
os: [ubuntu-latest, macos-latest, windows-latest]
1212
gcc: [10] # Version of GFortran we want to use.
1313
build-type: [debug]
@@ -71,6 +71,16 @@ jobs:
7171
extra-specs: |
7272
${{ matrix.build-type == 'coverage' && 'gcovr' || '' }}
7373
74+
- name: Compile (cmake)
75+
if: ${{ matrix.build == 'cmake' }}
76+
run: |
77+
cmake -B build
78+
cmake --build build
79+
80+
- name: Run test (cmake)
81+
if: ${{ matrix.build == 'cmake' }}
82+
run: cmake --build build --target test
83+
7484
- name: Compile (fpm)
7585
if: ${{ matrix.build == 'fpm' }}
7686
run: fpm build --profile release

0 commit comments

Comments
 (0)