-
-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (47 loc) · 1.8 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
version: ['6.6.1']
steps:
- uses: actions/checkout@v1
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.version }}
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
modules: 'qtwebengine qtwebchannel qtpositioning'
tools: 'tools_opensslv3_x64,qt.tools.opensslv3.win_x64'
- name: Download exiv2
if: startsWith(matrix.os, 'windows')
run: |
curl -L https://github.com/Exiv2/exiv2/releases/download/v0.27.5/exiv2-0.27.5-2019msvc64.zip --output exiv2-0.27.5-2019msvc64.zip
7z x exiv2-0.27.5-2019msvc64.zip -oc:/
shell: cmd
- name: Build
if: startsWith(matrix.os, 'windows')
run: |
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH="C:\Qt\6.6.1\msvc2019_64" -Dexiv2_DIR="C:\exiv2-0.27.5-2019msvc64\lib\cmake\exiv2" -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE=RELEASE -DDEPLOY_QT_LIBRARIES=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ..
if %errorlevel% neq 0 exit /b %errorlevel%
cmake --build . --config Release
if %errorlevel% neq 0 exit /b %errorlevel%
ctest -C Release .
if %errorlevel% neq 0 exit /b %errorlevel%
cp *.qm ./Release
for /R C:\exiv2-0.27.5-2019msvc64 %%f in (*.dll) do copy %%f "%CD%\Release"
for /R c:\Qt\Tools\OpenSSL %%f in (*.dll) do copy %%f "%CD%\Release"
shell: cmd
- name: Archive build results
uses: actions/upload-artifact@v2
with:
name: com.github.jmlich.geotagging
path: ./build/Release/*