Skip to content

Commit 562ad63

Browse files
committed
Update CI workflow to conditionally run CMake steps
Adds conditional execution for environment setup and CMake configuration steps based on the presence of matrix.cc.
1 parent 77c30bc commit 562ad63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/.github/workflows/ci.yml.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
env:
4242
CC: ${{ matrix.cc }}
4343
CXX: ${{ matrix.cxx }}
44+
if: ${{ matrix.cc }}
45+
46+
- name: Configure CMake
47+
run: cmake --preset=test
48+
if: ${{ !matrix.cc }}
4449

4550
- name: Build
4651
run: cmake --build --preset=test

0 commit comments

Comments
 (0)