Skip to content

Commit

Permalink
[CI] WIP xenia-project#3 - Workflow for QT: Windows & Linux Jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gliniak committed Aug 15, 2023
1 parent 6445294 commit 0d5d242
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ jobs:
config:
- {vsver: VS2019, runs-on: windows-2019}
steps:
- uses: actions/checkout@v3
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get QT binaries
shell: cmd
run: |
Expand All @@ -70,12 +72,16 @@ jobs:
run: .\xb setup

- name: Build GUI Test App
run: .\xb build --config=Release --target=src\xenia-ui-qt-demoapp
run: .\xb build --config=Release --target=src/xenia-ui-qt-demoapp

- name: Prepare artifacts
run: |
robocopy . build\bin\${{ runner.os }}\Release LICENSE /r:0 /w:0
robocopy build\bin\${{ runner.os }}\Release artifacts\xenia_qt xenia-ui-qt-demoapp.exe LICENSE /r:0 /w:0
robocopy . build/bin/${{ runner.os }}/Release LICENSE /r:0 /w:0
robocopy build/bin/${{ runner.os }}/Release artifacts/xenia_qt xenia-ui-qt-demoapp.exe LICENSE /r:0 /w:0
robocopy third_party/qt_binary/6.5.2/msvc2019_64/bin/Qt6Core.dll Qt6Core.dll /r:0 /w:0
robocopy third_party/qt_binary/6.5.2/msvc2019_64/bin/Qt6Gui.dll Qt6Gui.dll /r:0 /w:0
robocopy third_party/qt_binary/6.5.2/msvc2019_64/bin/Qt6Widgets.dll Qt6Widgets.dll /r:0 /w:0
robocopy third_party/qt_binary/6.5.2/msvc2019_64/plugins/platforms/qwindows.dll platforms/qwindows.dll /r:0 /w:0
If ($LastExitCode -le 7) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 }
Expand Down
14 changes: 12 additions & 2 deletions src/xenia/ui/qt/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ project("xenia-ui-qt")

-- Setup Qt libraries
qt.enable()
qtpath "../../../../third_party/qt_binary/6.5.2/msvc2019_64"
filter("platforms:Linux")
qtpath "../../../../third_party/qt_binary/6.5.2/gcc_64"

filter("platforms:Windows")
qtpath "../../../../third_party/qt_binary/6.5.2/msvc2019_64"

qtmodules{"core", "gui", "widgets"}
qtprefix "Qt6"

Expand Down Expand Up @@ -44,7 +49,12 @@ project("xenia-ui-qt-demoapp")

-- Setup Qt libraries
qt.enable()
qtpath "../../../../third_party/qt_binary/6.5.2/msvc2019_64"
filter("platforms:Linux")
qtpath "../../../../third_party/qt_binary/6.5.2/gcc_64"

filter("platforms:Windows")
qtpath "../../../../third_party/qt_binary/6.5.2/msvc2019_64"

qtmodules{"core", "gui", "widgets"}
qtprefix "Qt6"

Expand Down

0 comments on commit 0d5d242

Please # to comment.