-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (61 loc) · 2.03 KB
/
WindowsRelease.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
name: Windows Release
on:
workflow_dispatch:
branches: [ "main" ]
env:
SOURCE_DIR: ${{ github.workspace }}
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Download JOM
uses: suisei-cn/actions-download-file@master
with:
url: http://download.qt.io/official_releases/jom/jom.zip
target: ${{ runner.temp }}\
- name: Unzip JOM
working-directory: ${{ runner.temp }}
run: |
7z x jom.zip -ojom
- name: Install OpenSSL
run: |
choco install openssl
dir "C:\Program Files\OpenSSL\"
dir "C:\Program Files\OpenSSL\bin"
- name: Install Qt
run: |
choco install qt5-default
dir C:\Qt\5.15.2\mingw81_64\bin
dir C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin
- name: Build DropboxQt
working-directory: ${{ env.SOURCE_DIR }}\dropboxQt\prj
run: |
C:\Qt\5.15.2\mingw81_64\bin\qmake.exe -r dropboxQt.pro
make.exe
dir
- name: Create build directory
run: mkdir ${{ env.SOURCE_DIR }}\build
- name: Build
working-directory: ${{ env.SOURCE_DIR }}\build
run: |
C:\Qt\5.15.2\mingw81_64\bin\qmake.exe ${{ env.SOURCE_DIR }}\WaoStats.pro
make.exe
dir
cd release
C:\Qt\5.15.2\mingw81_64\bin\windeployqt WaoStats.exe
copy C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin\libgomp-1.dll .
copy "C:\Program Files\OpenSSL\bin\libcrypto-1_1-x64.dll" .
copy "C:\Program Files\OpenSSL\bin\libssl-1_1-x64.dll" .
copy C:\Qt\5.15.2\mingw81_64\bin\Qt5OpenGL.dll .
dir
- name: Rename release folder
working-directory: ${{ env.SOURCE_DIR }}\build
run: |
ren release WaoStats
dir
- name: Save build artifact
uses: actions/upload-artifact@master
with:
name: WaoStats
path: ${{ env.SOURCE_DIR }}\build\WaoStats