Skip to content

Commit 9e4c230

Browse files
authored
Addition of Cmake 3.14 in Github CI (#1043)
* Addition of CMake 3.14 in Github Actions
1 parent d883f88 commit 9e4c230

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- os: ubuntu-latest
3636
build: cmake-inline
3737
toolchain: {compiler: gcc, version: 10}
38+
- os: ubuntu-latest
39+
build: cmake-3.14
40+
toolchain: {compiler: gcc, version: 10}
3841
exclude:
3942
- os: macos-14
4043
toolchain: {compiler: intel, version: '2024.1'}
@@ -55,6 +58,10 @@ jobs:
5558
- name: Install fypp
5659
run: pip install --upgrade fypp ninja
5760

61+
- name: Install cmake-3.14
62+
if: ${{ matrix.build == 'cmake-3.14' }}
63+
run: pip install cmake==3.14.3
64+
5865
- name: Setup Fortran compiler
5966
uses: fortran-lang/[email protected]
6067
id: setup-fortran
@@ -64,7 +71,7 @@ jobs:
6471

6572
# Build and test with built-in BLAS and LAPACK
6673
- name: Configure with CMake
67-
if: ${{ contains(matrix.build, 'cmake') }}
74+
if: ${{ contains(matrix.build, 'cmake') && matrix.build != 'cmake-3.14' }}
6875
run: >-
6976
cmake -Wdev -G Ninja
7077
-DCMAKE_BUILD_TYPE=Release
@@ -73,6 +80,16 @@ jobs:
7380
-DFIND_BLAS:STRING=FALSE
7481
-S . -B ${{ env.BUILD_DIR }}
7582
83+
- name: Configure with CMake 3.14
84+
if: ${{ matrix.build == 'cmake-3.14' }}
85+
run: >-
86+
cmake -Wdev
87+
-DCMAKE_BUILD_TYPE=Release
88+
-DCMAKE_MAXIMUM_RANK:String=4
89+
-DCMAKE_INSTALL_PREFIX=$PWD/_dist
90+
-DFIND_BLAS:STRING=FALSE
91+
-S . -B ${{ env.BUILD_DIR }}
92+
7693
- name: Build and compile
7794
if: ${{ contains(matrix.build, 'cmake') }}
7895
run: cmake --build ${{ env.BUILD_DIR }} --parallel

0 commit comments

Comments
 (0)