Skip to content

Commit c4642f1

Browse files
committed
fixed #14259 - added steps using minimum required CMake version
1 parent 9c0834b commit c4642f1

2 files changed

Lines changed: 78 additions & 0 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,42 @@ jobs:
407407
run: |
408408
cmake --build cmake.output.boost -- -j$(nproc)
409409
410+
build_cmake_minimum:
411+
412+
runs-on: ubuntu-22.04
413+
414+
env:
415+
CMAKE_VERSION: 3.13
416+
CMAKE_VERSION_FULL: 3.13.5
417+
418+
steps:
419+
- uses: actions/checkout@v4
420+
with:
421+
persist-credentials: false
422+
423+
- name: Install missing software on ubuntu
424+
run: |
425+
sudo apt-get update
426+
sudo apt-get install libxml2-utils
427+
# qt6-tools-dev-tools for lprodump
428+
# qt6-l10n-tools for lupdate
429+
sudo apt-get install qt6-base-dev libqt6charts6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libglx-dev libgl1-mesa-dev
430+
431+
- name: Install CMake
432+
run: |
433+
wget https://cmake.org/files/v${{ env.CMAKE_VERSION }}/cmake-${{ env.CMAKE_VERSION_FULL }}-Linux-x86_64.tar.gz
434+
tar xf cmake-${{ env.CMAKE_VERSION_FULL }}-Linux-x86_64.tar.gz
435+
436+
- name: Run CMake on ubuntu (without GUI)
437+
run: |
438+
export PATH=cmake-${{ env.CMAKE_VERSION_FULL }}-Linux-x86_64/bin:$PATH
439+
cmake -S . -B cmake.output -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTING=On
440+
441+
- name: Run CMake on ubuntu (with GUI)
442+
run: |
443+
export PATH=cmake-${{ env.CMAKE_VERSION_FULL }}-Linux-x86_64/bin:$PATH
444+
cmake -S . -B cmake.output.gui -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTING=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On
445+
410446
build:
411447

412448
strategy:

.github/workflows/CI-windows.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,48 @@ jobs:
9898
run: |
9999
cmake --build build.cxxstd --config Debug || exit /b !errorlevel!
100100
101+
build_cmake_minimum:
102+
103+
runs-on: windows-2022
104+
105+
env:
106+
CMAKE_VERSION: 3.13
107+
CMAKE_VERSION_FULL: 3.13.5
108+
109+
steps:
110+
- uses: actions/checkout@v4
111+
with:
112+
persist-credentials: false
113+
114+
- name: Install CMake
115+
run: |
116+
curl -fsSL https://cmake.org/files/v${{ env.CMAKE_VERSION }}/cmake-${{ env.CMAKE_VERSION_FULL }}-win64-x64.zip -o cmake.zip || exit /b !errorlevel!
117+
7z x cmake.zip || exit /b !errorlevel!
118+
119+
- name: Set up Visual Studio environment
120+
uses: ilammy/msvc-dev-cmd@v1
121+
with:
122+
arch: x64
123+
124+
- name: Install Qt
125+
uses: jurplel/install-qt-action@v4
126+
with:
127+
version: 6.10.0
128+
modules: 'qtcharts'
129+
setup-python: 'false'
130+
cache: true
131+
aqtversion: '==3.1.*' # TODO: remove when aqtinstall 3.2.2 is available
132+
133+
- name: Run CMake on ubuntu (without GUI)
134+
run: |
135+
:: TODO: enable DHAVE_RULES?
136+
cmake-${{ env.CMAKE_VERSION_FULL }}-win64-x64\bin\cmake.exe -S . -B cmake.output -G "Visual Studio 17 2022" -A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On
137+
138+
- name: Run CMake on ubuntu (with GUI)
139+
run: |
140+
:: TODO: enable DHAVE_RULES?
141+
cmake-${{ env.CMAKE_VERSION_FULL }}-win64-x64\bin\cmake.exe -S . -B cmake.output.gui -G "Visual Studio 17 2022" -A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On
142+
101143
build:
102144
strategy:
103145
matrix:

0 commit comments

Comments
 (0)