Skip to content

Commit 9a775f8

Browse files
committed
Add deploy workflow
1 parent 0635c98 commit 9a775f8

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: 'Deploy workflow'
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
env:
9+
QT_MIRROR: https://mirrors.ocf.berkeley.edu/qt/ # https://download.qt.io/static/mirrorlist/
10+
11+
jobs:
12+
Build-Windows:
13+
runs-on: windows-latest
14+
15+
env:
16+
QT_VERSION: 6.6.2
17+
QIF_VERSION: 4.7
18+
BUILD_ARCH: 64
19+
20+
steps:
21+
- name: 'Get sources'
22+
uses: actions/checkout@v4
23+
24+
- name: 'Setup ccache'
25+
uses: hendrikmuhs/[email protected]
26+
27+
- name: 'Install Qt'
28+
uses: jurplel/install-qt-action@v3
29+
with:
30+
version: ${{ env.QT_VERSION }}
31+
host: 'windows'
32+
target: 'desktop'
33+
arch: 'win64_msvc2019_64'
34+
modules: 'qtremoteobjects qt5compat qtshadertools'
35+
dir: ${{ runner.temp }}
36+
setup-python: 'true'
37+
tools: 'tools_ifw'
38+
set-env: 'true'
39+
extra: '--external 7z --base ${{ env.QT_MIRROR }}'
40+
41+
- name: 'Setup mvsc'
42+
uses: ilammy/msvc-dev-cmd@v1
43+
with:
44+
arch: 'x64'
45+
46+
- name: 'Build project'
47+
shell: cmd
48+
run: |
49+
set BUILD_ARCH=${{ env.BUILD_ARCH }}
50+
set QT_BIN_DIR="${{ runner.temp }}\\Qt\\${{ env.QT_VERSION }}\\msvc2019_64\\bin"
51+
set QIF_BIN_DIR="${{ runner.temp }}\\Qt\\Tools\\QtInstallerFramework\\${{ env.QIF_VERSION }}\\bin"
52+
call deploy\\build_windows.bat
53+
54+
- name: 'Upload installer artifact'
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: CTProxyServer_Windows_installer
58+
path: proxyserver_x${{ env.BUILD_ARCH }}.exe
59+
retention-days: 7
60+
61+
- name: 'Upload unpacked artifact'
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: CTProxyServer_Windows_unpacked
65+
path: deploy\\build_${{ env.BUILD_ARCH }}\\release
66+
retention-days: 7

0 commit comments

Comments
 (0)