aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Steffen Gaßmann <[email protected]>2025-02-18 22:27:43 +0100
committerHenrik Gaßmann <[email protected]>2025-03-02 23:39:20 +0100
commit9edb473fa81c422acc2cb611f55c4df52d1cdbbb (patch)
tree1d1f576f933f6a85271ea0fda48165279e59fca9
parent4b9d0977e5f357568b63380455993aaedb402790 (diff)
ci(cmake): test the minimum required version
We only test on Ubuntu due to the fact that CMake 3.9.6 does not recognize modern MSVC versions and the main use case for these ancient CMake versions are extremely conservative Linux distributions. Note that CMake 3.9.6 does not support the modern convenience commandline interface.
-rw-r--r--.github/workflows/ci.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e0dcd33..110b888 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -324,7 +324,7 @@ jobs:
~/.cargo/bin/cargo test --features prefer_intrinsics
# CMake build test (Library only), current macOS/Linux only.
- cmake_build:
+ cmake_current_build:
name: CMake ${{ matrix.os }} ${{ matrix.compiler }}
runs-on: ${{ matrix.os }}
strategy:
@@ -345,6 +345,22 @@ jobs:
run: cmake -S c -B c/build -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/target
- name: CMake build / install
run: cmake --build c/build --target install
+ cmake_3-9_build:
+ name: CMake 3.9.6 ubuntu-latest
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: lukka/get-cmake@5f6e04f5267c8133f1273bf2103583fc72c46b17
+ with:
+ cmakeVersion: 3.9.6
+ - name: Create build directory
+ run: mkdir c/build
+ - name: CMake generation
+ run: cmake .. -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/target
+ working-directory: c/build
+ - name: CMake build / install
+ run: make install
+ working-directory: c/build
miri_smoketest:
name: Miri smoketest