Skip to content

Commit 4e3c06b

Browse files
committed
[ci] Add workflow to configure with CMake 3.15
Ensure that oldest supportest version of CMake can configure project Copy quick_cmake from CLIUtils/CLI11
1 parent ee3db10 commit 4e3c06b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Quick CMake config
2+
description: "Runs CMake 3.14+ (if already setup)"
3+
inputs:
4+
args:
5+
description: "Other arguments"
6+
required: false
7+
default: ""
8+
cmake-version:
9+
description: "The CMake version to run"
10+
required: true
11+
12+
runs:
13+
using: composite
14+
steps:
15+
- name: CMake ${{ inputs.cmake-version }}
16+
uses: jwlawson/actions-setup-cmake@v2.2
17+
with:
18+
cmake-version: "${{ inputs.cmake-version }}"
19+
- run: |
20+
mkdir -p build-tmp
21+
touch build-tmp/tmp
22+
rm -r build-tmp/*
23+
(cd build-tmp && cmake .. ${{ inputs.args }})
24+
rm -r build-tmp
25+
shell: bash

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@ jobs:
104104
--config ${{ env.CMAKE_BUILD_TYPE }} \
105105
--verbose
106106
107+
cmake-config-oldest-cmake:
108+
name: CMake 3.15 config check (Ubuntu 26.04)
109+
runs-on: ubuntu-26.04
110+
steps:
111+
- uses: actions/checkout@v6
112+
113+
- name: Check CMake 3.15
114+
uses: ./.github/actions/quick_cmake
115+
with:
116+
cmake-version: "3.15"
117+
if: success() || failure()
118+
107119
bazel-build:
108120
strategy:
109121
matrix:

0 commit comments

Comments
 (0)