Skip to content

Commit 41ac62c

Browse files
committed
Adjust CI to test for CMake versions
1 parent db1221f commit 41ac62c

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.github/workflows/cmake.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,18 @@ defaults:
3333
jobs:
3434

3535
build-all:
36+
name: >
37+
CMake ${{ matrix.cmake }}
3638
runs-on: ubuntu-latest
37-
39+
strategy:
40+
matrix:
41+
# CMake versions to test:
42+
# - minimum and maximum in the `cmake_minimum_required`
43+
# (if needed expand this to add all intermediate values
44+
# for *temporary* CI testing)
45+
# - latest version
46+
cmake: ["3.9", "4.0", latest]
47+
fail-fast: false
3848
steps:
3949

4050
- name: Checkout ScaLAPACK
@@ -51,7 +61,12 @@ jobs:
5161
5262
- name: Install BLAS and LAPACK
5363
run: sudo apt -y install libblas-dev liblapack-dev
54-
64+
65+
- name: Setup CMake
66+
uses: jwlawson/actions-setup-cmake@v2
67+
with:
68+
cmake-version: ${{ matrix.cmake }}
69+
5570
- name: CMake configuration
5671
run: >
5772
cmake -B build

BLACS/INSTALL/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8)
1+
cmake_minimum_required(VERSION 2.8...4.0)
22
project(INSTALL C Fortran)
33

44
add_executable(xintface Fintface.f Cintface.c)

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.9)
1+
cmake_minimum_required(VERSION 3.9...4.0)
22

33
project(SCALAPACK VERSION 2.2.2 LANGUAGES C Fortran)
44

0 commit comments

Comments
 (0)