-
Notifications
You must be signed in to change notification settings - Fork 78
64 lines (54 loc) · 1.83 KB
/
windows.yaml
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
57
58
59
60
61
62
63
64
name: CI - Windows
on:
push:
branches:
- 'master'
tags:
- '*'
pull_request:
jobs:
ci:
name: Build
runs-on: windows-2022
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: "6.7.1"
archives: qtbase qtsvg qttools
tools: tools_opensslv3_x64
cache: true
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=RELEASE -DTEST=ON
- name: Build PokeFinder
run: cmake --build ${{github.workspace}}/build --config RELEASE
- name: Test PokeFinder
run: ctest --test-dir ${{github.workspace}}/build -C RELEASE -V
- name: Package PokeFinder
run: |
mkdir upload
mkdir PokeFinder
mkdir PokeFinder/platforms
mkdir PokeFinder/styles
mv build/Source/Release/PokeFinder.exe PokeFinder
windeployqt --no-translations --no-plugins --no-opengl-sw --no-system-d3d-compiler PokeFinder/PokeFinder.exe
rm PokeFinder/vc_redist*.exe
cp "${{ env.QT_ROOT_DIR }}/plugins/platforms/qwindows.dll" PokeFinder/platforms/
cp "${{ env.QT_ROOT_DIR }}/plugins/styles/qmodernwindowsstyle.dll" PokeFinder/styles/
cp "${{ env.QT_ROOT_DIR }}/../../Tools/OpenSSLv3/Win_x64/bin/lib*.dll" PokeFinder
7z a PokeFinder-win.zip PokeFinder
mv PokeFinder upload
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: PokeFinder-windows
path: upload
- name: Publish Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: PokeFinder-win.zip