Skip to content

Commit 8b428d1

Browse files
committed
feat: install qt, GUI action
fingers crossed. stole this from musen
1 parent 3c47722 commit 8b428d1

1 file changed

Lines changed: 31 additions & 3 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
permissions:
2222
contents: read
2323

24+
env:
25+
QT_VS_ADDIN_URL: https://ftp.fau.de/qtproject/archive/vsaddin/3.3.1/qt-vsaddin-msvc2022-x64-3.3.1.vsix
26+
2427
jobs:
2528
build-lin:
2629
name: Linux Build
@@ -54,14 +57,39 @@ jobs:
5457
with: { fetch-depth: 0 }
5558
- name: Setup MSBuild
5659
uses: microsoft/setup-msbuild@v2
57-
# - name: Build GUI
58-
# run: msbuild -m -p:"Configuration=DebugGUI;Platform=x86" GhostServer.sln
60+
61+
- name: Install Qt
62+
uses: jurplel/install-qt-action@v4
63+
with:
64+
version: '5.15.2'
65+
host: 'windows'
66+
target: 'win32_msvc2019_64'
67+
dir: ${{ runner.temp }}/qt
68+
- name: Cache QtMsBuild tools
69+
uses: actions/cache@v4
70+
with:
71+
path: ${{ runner.temp }}/qt/5.15.2/msvc2019_64/bin
72+
key: ${{ runner.os }}-qt-msbuild-cache
73+
- name: Get QtMsBuild tools
74+
if: steps.cache-qtmsbuild-tools.outputs.cache-hit != 'true'
75+
run: |
76+
Invoke-WebRequest -Uri ${{env.QT_VS_ADDIN_URL}} -MaximumRetryCount 10 -RetryIntervalSec 30 -OutFile vspackage.vsix
77+
Expand-Archive vspackage.vsix -DestinationPath ${{ runner.temp }}/qtmsbuild
78+
79+
- name: Build GUI
80+
env:
81+
QtToolsPath: ${{ runner.temp }}/qt/5.15.2/msvc2019_64/bin
82+
QtMsBuildPath: ${{ runner.temp }}/qtmsbuild
83+
run: msbuild -m -p:"Configuration=DebugGUI;Platform=x86" GhostServer.sln
84+
5985
- name: Build CLI
6086
run: msbuild -m -p:"Configuration=DebugCLI;Platform=x86" GhostServer.sln
87+
6188
- name: Upload Artifact
6289
uses: actions/upload-artifact@v4
6390
with:
64-
name: GhostServer-win # ./GhostServer.exe
91+
name: GhostServer-win
6592
path: |
93+
./GhostServer.exe
6694
./GhostServer_CLI.exe
6795
if-no-files-found: error

0 commit comments

Comments
 (0)