Skip to content

Commit 075e7a8

Browse files
committed
That ******* cmake...
1 parent 0c03a55 commit 075e7a8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/push-master.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: HyperHDR CI Build
22

33
on:
44
push:
5-
pull_request:
65

76
env:
87
USE_CACHE: ${{ vars.USE_CACHE && vars.USE_CACHE || true }}
@@ -245,11 +244,9 @@ jobs:
245244
windows:
246245
name: Windows
247246
runs-on: windows-2022
248-
if: false
249247
env:
250-
VCINSTALLDIR: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC'
248+
MSVC: 2022
251249
QT_VERSION: 6.8.3
252-
MSVC: msvc2022
253250
steps:
254251
- name: Checkout
255252
uses: actions/[email protected]
@@ -263,6 +260,11 @@ jobs:
263260
path: ${{ runner.workspace }}/Qt
264261
key: ${{ runner.os }}-Qt.${{ env.QT_VERSION }}
265262

263+
- name: Setup CMake
264+
uses: lukka/get-cmake@latest
265+
with:
266+
cmakeVersion: 3.27.9
267+
266268
# temporary workaround for aqt: Python 3.13 instead of preinstalled default older version
267269
- name: Python 3.13 for aqtinstall
268270
uses: actions/setup-python@v5
@@ -273,7 +275,7 @@ jobs:
273275
if: steps.cache-qt-windows.outputs.cache-hit != 'true'
274276
run: |
275277
pip install aqtinstall
276-
aqt install-qt -O ${{ runner.workspace }}/Qt windows desktop ${{ env.QT_VERSION }} win64_${{ env.MSVC }}_64 -m qtserialport
278+
aqt install-qt -O ${{ runner.workspace }}/Qt windows desktop ${{ env.QT_VERSION }} win64_msvc${{ env.MSVC }}_64 -m qtserialport
277279
278280
# Generate cache id
279281
- name: Prepare ccache timestamp
@@ -318,13 +320,13 @@ jobs:
318320
319321
- name: Set up x64 build architecture environment
320322
shell: cmd
321-
run: call "${{env.VCINSTALLDIR}}\Auxiliary\Build\vcvars64.bat"
323+
run: call "C:\Program Files\Microsoft Visual Studio\${{env.MSVC}}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
322324

323325
# Build packages
324326
- name: Build packages
325327
env:
326328
PLATFORM: windows
327-
CMAKE_PREFIX_PATH: "${{ runner.workspace }}/Qt/${{ env.QT_VERSION }}/${{ env.MSVC }}_64/lib/cmake/"
329+
CMAKE_PREFIX_PATH: "${{ runner.workspace }}/Qt/${{ env.QT_VERSION }}/msvc${{ env.MSVC }}_64/lib/cmake/"
328330
USE_CCACHE: ${{ env.USE_CACHE }}
329331
shell: bash
330332
run: |

0 commit comments

Comments
 (0)