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 7975e3e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,22 @@ on:
workflow_dispatch:

jobs:
build-windows:
name: Build (Windows, ${{ matrix.config.vsver }}) # runner.os can't be used here
build-windows-qt:
name: Build QT Version (Windows, ${{ matrix.config.vsver }}) # runner.os can't be used here
runs-on: ${{ matrix.config.runs-on }}
env:
POWERSHELL_TELEMETRY_OPTOUT: 1
strategy:
fail-fast: false
matrix:
config:
- {vsver: VS2019, runs-on: windows-2019}
- {vsver: VS2022, runs-on: windows-latest}
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 @@ -74,8 +76,13 @@ jobs:

- 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
mkdir artifacts\xenia_qt\platforms
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\ artifacts\xenia_qt Qt6Core.dll /r:0 /w:0
robocopy third_party\qt_binary\6.5.2\msvc2019_64\bin\ artifacts\xenia_qt Qt6Gui.dll /r:0 /w:0
robocopy third_party\qt_binary\6.5.2\msvc2019_64\bin\ artifacts\xenia_qt Qt6Widgets.dll /r:0 /w:0
robocopy third_party\qt_binary\6.5.2\msvc2019_64\plugins\platforms\ artifacts\xenia_qt\platforms qwindows.dll /r:0 /w:0
If ($LastExitCode -le 7) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 }
Expand All @@ -87,9 +94,6 @@ jobs:
if-no-files-found: error

- name: Create release
if: |
github.repository == 'Gliniak/xenia' &&
contains(github.ref, 'refs/heads/qt_new')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
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 7975e3e

Please sign in to comment.