-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.63 KB
/
ci_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
name: CI - Windows
on: [pull_request, push]
permissions:
actions: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.head_ref != '' }}
jobs:
ci:
name: Build
runs-on: windows-2019
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
submodules: recursive
- name: Setup devcmd
uses: ilammy/msvc-dev-cmd@v1
- name: Install build tools
run: |
"C:\Program Files (x86)\WiX Toolset v3.14\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: "6.7.*"
archives: qtbase qtsvg qttools qttranslations
modules: qtimageformats qtmultimedia
- name: Build application
run: |
cmake `
-B build `
-G Ninja `
-D CMAKE_BUILD_TYPE=Release
cmake --build build --target update_translations
cmake --build build
- name: Prepare build artifacts
run: |
cmake --build build --target win_installer
mkdir upload
move build\dist\msi\digital_clock_5-x64.msi upload
move build\installer_files DigitalClock5
New-Item -ItemType File -Path DigitalClock5 -Name portable.txt
attrib +h DigitalClock5\portable.txt
7z a upload\digital_clock_5-win64.zip DigitalClock5
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: DigitalClock5 Windows Nightly
path: upload