-
Notifications
You must be signed in to change notification settings - Fork 10
86 lines (73 loc) · 3.25 KB
/
windows-latest.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Windows Build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
# env:
# # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# BUILD_TYPE: Release
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
qt-version: [ '5.15.2', '6.5.3' ]
steps:
- uses: actions/checkout@v4
- name: "Install Qt 5.15.2"
if: matrix.qt-version == '5.15.2'
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
host: 'windows'
dir: '${{ github.workspace }}'
# modules: 'qtsvg'
arch: 'win64_msvc2019_64'
set-env: 'true'
setup-python: 'true'
- name: "Install Qt 6.5.3"
if: matrix.qt-version == '6.5.3'
uses: jurplel/install-qt-action@v3
with:
version: '6.5.3'
host: 'windows'
dir: '${{ github.workspace }}'
modules: 'qtmultimedia'
arch: 'win64_msvc2019_64'
set-env: 'true'
setup-python: 'true'
- name: "Create build directory and run CMake Qt 6.5.3"
if: matrix.qt-version == '6.5.3'
run: "mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .."
- name: "Create build directory and run CMake Qt 5.15.2"
if: matrix.qt-version == '5.15.2'
run: "mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_QT6='NO' .."
- name: "Build"
run: "cd build && cmake --build . --config Release"
- name: Prepare build artifacts
run: |
Set-Location ./build
${{ github.workspace }}/Qt/${{ matrix.qt-version}}/msvc2019_64/bin/windeployqt.exe --no-translations ./Release
Copy-Item ../README.md ./Release
Copy-Item ../LICENSE ./Release
New-Item -ItemType Directory ./Release/minefield_extra_themes
Copy-Item ../share/minefield_themes/alternative_dark ./Release/minefield_extra_themes -Recurse
Copy-Item ../share/minefield_themes/alternative_light ./Release/minefield_extra_themes -Recurse
Copy-Item ../share/minefield_themes/flowerfield ./Release/minefield_extra_themes -Recurse
Copy-Item ../share/minefield_themes/twemoji ./Release/minefield_extra_themes -Recurse
New-Item -ItemType Directory ./Release/facesreaction_extra_themes
Copy-Item ../share/faces_reaction/open-emoji-black ./Release/facesreaction_extra_themes -Recurse
Copy-Item ../share/faces_reaction/open-emoji-white ./Release/facesreaction_extra_themes -Recurse
Copy-Item ../share/faces_reaction/twemoji-color ./Release/facesreaction_extra_themes -Recurse
Copy-Item ../share/faces_reaction/SecularSteve_custom ./Release/facesreaction_extra_themes -Recurse
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: libremines-build-windows-qt-${{ matrix.qt-version }}
path: build/Release