-
Notifications
You must be signed in to change notification settings - Fork 62
48 lines (40 loc) · 1.15 KB
/
laigter-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
name: Windows
on: push
jobs:
buildWin:
runs-on: windows-latest
steps:
- name: checkout sources
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
aqtversion: '==3.1.*'
version: '6.2.0'
arch: 'win64_mingw81'
extra: '--external 7z'
target: 'desktop'
host: 'windows'
modules: 'qtimageformats'
- name: Build Laigter
shell: cmd
run: |
qmake
make
dir
mkdir \laigter-windows
windeployqt --compiler-runtime --dir .\laigter-windows .\release\laigter.exe
copy /Y .\release\laigter.exe .\laigter-windows\laigter.exe
tar.exe -a -c -f laigter-windows.zip laigter-windows
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: win-artifacts
path: laigter-windows.zip
- name: GitHub Releases
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: laigter-windows.zip
tag: ${{ github.ref }}