From a7f9c1f5ddbd62ee85484c0ed65d68125f413f1a Mon Sep 17 00:00:00 2001 From: Jeremie Vandenplas Date: Fri, 17 Oct 2025 16:39:04 +0200 Subject: [PATCH 1/6] Addition of CMake 3.10 in Github Actions --- .github/workflows/CI.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6784b8dd0..4f450e39f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,6 +35,9 @@ jobs: - os: ubuntu-latest build: cmake-inline toolchain: {compiler: gcc, version: 10} + - os: ubuntu-latest + build: cmake-3.10 + toolchain: {compiler: gcc, version: 10} exclude: - os: macos-14 toolchain: {compiler: intel, version: '2024.1'} @@ -55,6 +58,10 @@ jobs: - name: Install fypp run: pip install --upgrade fypp ninja + - name: Install cmake-3.10 + if: ${{ matrix.build == 'cmake-3.10' }} + run: pip install --upgrade cmake==3.10 + - name: Setup Fortran compiler uses: fortran-lang/setup-fortran@v1.6.2 id: setup-fortran From 48592ed78480361088bb45c58f8b6f8ff164972f Mon Sep 17 00:00:00 2001 From: Jeremie Vandenplas Date: Fri, 17 Oct 2025 16:43:21 +0200 Subject: [PATCH 2/6] Fix version cmake --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4f450e39f..24fb86887 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -60,7 +60,7 @@ jobs: - name: Install cmake-3.10 if: ${{ matrix.build == 'cmake-3.10' }} - run: pip install --upgrade cmake==3.10 + run: pip install cmake==3.10.3 - name: Setup Fortran compiler uses: fortran-lang/setup-fortran@v1.6.2 From 9e21efbdef3b021a18e995a60f210cd4db421d9d Mon Sep 17 00:00:00 2001 From: Jeremie Vandenplas Date: Fri, 17 Oct 2025 16:48:31 +0200 Subject: [PATCH 3/6] Switch from ubuntu to macOS for cmake-3.10 --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 24fb86887..cb5e3278d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,9 +35,9 @@ jobs: - os: ubuntu-latest build: cmake-inline toolchain: {compiler: gcc, version: 10} - - os: ubuntu-latest + - os: macos-14 build: cmake-3.10 - toolchain: {compiler: gcc, version: 10} + toolchain: {compiler: gcc, version: 13} exclude: - os: macos-14 toolchain: {compiler: intel, version: '2024.1'} From 18e209e092985f99249ab98f7f43941ff4feb67b Mon Sep 17 00:00:00 2001 From: Jeremie Vandenplas Date: Fri, 17 Oct 2025 16:56:09 +0200 Subject: [PATCH 4/6] Use ubuntu 22 for cmake-3.10 --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cb5e3278d..6fbd8d9f6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,9 +35,9 @@ jobs: - os: ubuntu-latest build: cmake-inline toolchain: {compiler: gcc, version: 10} - - os: macos-14 + - os: ubuntu-22.04 build: cmake-3.10 - toolchain: {compiler: gcc, version: 13} + toolchain: {compiler: gcc, version: 10} exclude: - os: macos-14 toolchain: {compiler: intel, version: '2024.1'} From e56c6286f668a28d68b247b01ec671824eb9f460 Mon Sep 17 00:00:00 2001 From: Jeremie Vandenplas Date: Fri, 17 Oct 2025 18:24:47 +0200 Subject: [PATCH 5/6] Fix version cmake to 3.14.3 --- .github/workflows/CI.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6fbd8d9f6..97f9a22df 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,8 +35,8 @@ jobs: - os: ubuntu-latest build: cmake-inline toolchain: {compiler: gcc, version: 10} - - os: ubuntu-22.04 - build: cmake-3.10 + - os: ubuntu-latest + build: cmake-3.14 toolchain: {compiler: gcc, version: 10} exclude: - os: macos-14 @@ -58,9 +58,9 @@ jobs: - name: Install fypp run: pip install --upgrade fypp ninja - - name: Install cmake-3.10 - if: ${{ matrix.build == 'cmake-3.10' }} - run: pip install cmake==3.10.3 + - name: Install cmake-3.14 + if: ${{ matrix.build == 'cmake-3.14' }} + run: pip install cmake==3.14.3 - name: Setup Fortran compiler uses: fortran-lang/setup-fortran@v1.6.2 From a1a8d2e96c0800f06e8f503eab584b85b107fa73 Mon Sep 17 00:00:00 2001 From: Jeremie Vandenplas Date: Fri, 17 Oct 2025 18:33:22 +0200 Subject: [PATCH 6/6] Fix CI with cmake 3.14 (does not support Ninja) --- .github/workflows/CI.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 97f9a22df..bfbba0559 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -71,7 +71,7 @@ jobs: # Build and test with built-in BLAS and LAPACK - name: Configure with CMake - if: ${{ contains(matrix.build, 'cmake') }} + if: ${{ contains(matrix.build, 'cmake') && matrix.build != 'cmake-3.14' }} run: >- cmake -Wdev -G Ninja -DCMAKE_BUILD_TYPE=Release @@ -80,6 +80,16 @@ jobs: -DFIND_BLAS:STRING=FALSE -S . -B ${{ env.BUILD_DIR }} + - name: Configure with CMake 3.14 + if: ${{ matrix.build == 'cmake-3.14' }} + run: >- + cmake -Wdev + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_MAXIMUM_RANK:String=4 + -DCMAKE_INSTALL_PREFIX=$PWD/_dist + -DFIND_BLAS:STRING=FALSE + -S . -B ${{ env.BUILD_DIR }} + - name: Build and compile if: ${{ contains(matrix.build, 'cmake') }} run: cmake --build ${{ env.BUILD_DIR }} --parallel