Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Dec 15, 2024
1 parent bba3b06 commit 35320cf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ jobs:
fail-fast: false
matrix:
include:
- runner: 'macos-latest'
qtVersion: '6.7.3'
- runner: 'windows-latest'
buildArch: 'Arm64'
qtVersion: '6.8.1'
qtArch: 'win64_msvc2022_arm64_cross_compiled'
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
Expand All @@ -17,9 +19,15 @@ jobs:
uses: jdpurcell/install-qt-action@v4
with:
version: ${{ matrix.qtVersion }}
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_arm64'
arch: ${{ matrix.qtArch }}
cache: false
- name: Build
shell: pwsh
run: ci/build.ps1
env:
buildArch: ${{ matrix.buildArch }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: QtHelloWorld-${{ runner.os }}-${{ matrix.buildArch }}-${{ matrix.qtVersion }}
path: build
9 changes: 2 additions & 7 deletions ci/build.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
$qtVersion = [version](qmake -query QT_VERSION)
Write-Host "Detected Qt version $qtVersion"
return

if ($IsWindows) {
if ($env:buildArch -eq 'Arm64') {
$env:QT_HOST_PATH = (qmake -query QT_HOST_PREFIX)
}

$argArch =
$env:buildArch -eq 'X64' ? 'x64' :
$env:buildArch -eq 'Arm64' ? 'x64_arm64' :
Expand Down Expand Up @@ -45,11 +40,11 @@ $appName = "QtHelloWorld"
if ($IsWindows) {
if ($env:buildArch -eq 'Arm64') {
$winDeployQt = "$env:QT_HOST_PATH\bin\windeployqt"
$argQmake = "--qmake=$env:QT_ROOT_DIR\bin\qmake.bat"
$argQtPaths = "--qtpaths=$env:QT_ROOT_DIR\bin\qtpaths.bat"
} else {
$winDeployQt = "windeployqt"
}
& $winDeployQt $argQmake --no-compiler-runtime --no-translations --no-system-d3d-compiler --no-system-dxc-compiler --no-opengl-sw "$appName.exe"
& $winDeployQt $argQtPaths --no-compiler-runtime --no-translations --no-system-d3d-compiler --no-system-dxc-compiler --no-opengl-sw "$appName.exe"
} elseif ($IsMacOS) {
macdeployqt "$appName.app"

Expand Down

0 comments on commit 35320cf

Please sign in to comment.