Skip to content

Commit d3cd1f9

Browse files
committed
ci: cover C++20 and gcc import in the module install tests
The clang module job now includes C++20, the floor this branch restores. The gcc job now builds the module itself (CLI11_MODULES=ON) in addition to the include-based test, at C++20 and C++23. Assisted-by: ClaudeCode:claude-fable-5
1 parent 9bbaf1c commit d3cd1f9

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/install-tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,23 @@ jobs:
140140
working-directory: build
141141

142142
install-module:
143-
name: install module include tests
143+
name: install module include tests (gcc, C++${{ matrix.std }})
144144
runs-on: ubuntu-latest
145145
container: gcc:15
146+
strategy:
147+
fail-fast: false
148+
matrix:
149+
std: ["20", "23"]
146150
steps:
147151
- uses: actions/checkout@v4
148152
with:
149153
submodules: true
150154
- uses: ./.github/actions/quick_cmake
151155
with:
152-
cmake-version: "4.2"
156+
cmake-version: "4.4"
153157
- uses: seanmiddleditch/gha-setup-ninja@master
154158
- name: Configure
155-
run: cmake -S . -B build -G Ninja -DCLI11_INSTALL_PACKAGE_TESTS=ON -DCLI11_BUILD_EXAMPLES=OFF -DCLI11_MODULE_TESTS=ON -DCMAKE_CXX_STANDARD=23 -DCMAKE_INSTALL_PREFIX=/home/runner/work/install
159+
run: cmake -S . -B build -G Ninja -DCLI11_INSTALL_PACKAGE_TESTS=ON -DCLI11_BUILD_EXAMPLES=OFF -DCLI11_MODULE_TESTS=ON -DCLI11_MODULES=ON -DCMAKE_CXX_STANDARD=${{ matrix.std }} -DCMAKE_INSTALL_PREFIX=/home/runner/work/install
156160
- name: Build
157161
run: cmake --build build -j4
158162
- name: install
@@ -167,7 +171,7 @@ jobs:
167171
strategy:
168172
fail-fast: false
169173
matrix:
170-
std: ["23", "26"]
174+
std: ["20", "23", "26"]
171175
steps:
172176
- name: Set up Clang
173177
uses: egor-tensin/setup-clang@v2

0 commit comments

Comments
 (0)