Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit 1c23db3

Browse files
committed
fix test
1 parent c59da34 commit 1c23db3

2 files changed

Lines changed: 20 additions & 11 deletions

File tree

.github/workflows/windows.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,21 @@ jobs:
3232
repository: lutraconsulting/geodiff
3333
path: geodiff
3434

35+
36+
- name: Cache Qt from qt.io
37+
id: cache-qt
38+
uses: actions/cache@v1
39+
with:
40+
path: ../Qt
41+
key: Windows-QtCache
42+
3543
- name: Install Qt
3644
uses: jurplel/install-qt-action@v2
37-
38-
- name: Set compiler environment
39-
shell: cmd
40-
run: |
41-
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x86
45+
with:
46+
cached: ${{ steps.cache-qt.outputs.cache-hit }}
47+
modules: 'qtnetwork'
48+
arch: win64_msvc2019_64
49+
version: 5.14.2
4250

4351
- name: Setup cmake
4452
uses: jwlawson/actions-setup-cmake@v1.8
@@ -49,8 +57,9 @@ jobs:
4957
if(-Not (Test-Path -Path build-geodiff)) { mkdir build-geodiff }
5058
cd build-geodiff
5159
52-
cmake -DBUILD_STATIC=TRUE -DENABLE_TESTS=FALSE ..\geodiff\geodiff
53-
cmake --build . --config Release
60+
C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat
61+
exec { cmake -DBUILD_STATIC=TRUE -DENABLE_TESTS=FALSE ..\geodiff\geodiff }
62+
exec { cmake --build . --config Release }
5463
5564
- name: build mergin-cpp-client
5665
shell: pwsh
@@ -59,6 +68,6 @@ jobs:
5968
if(-Not (Test-Path -Path build-mergin-cpp-client)) { mkdir build-mergin-cpp-client }
6069
cd build-mergin-cpp-client
6170
62-
qmake ..\mergin-cpp-client\src\client.pro CONFIG+=release CONFIG+=static
63-
nmake release
64-
dir
71+
C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat
72+
exec { qmake ..\mergin-cpp-client\src\client.pro CONFIG+=release CONFIG+=static }
73+
exec { nmake release }

scripts/ci/config.pri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ win32 {
44
GEODIFF_LIB_DIR = $$PWD/../build-geodiff
55
}
66

7-
lnx {
7+
unix {
88
INPUT_DIR = $$PWD/../../input
99
GEODIFF_INCLUDE_DIR = /usr/include
1010
GEODIFF_LIB_DIR = /usr/lib

0 commit comments

Comments
 (0)