Skip to content

Commit

Permalink
CI: Add support for building Windows ARM64 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyvct committed Feb 27, 2023
1 parent bbd723f commit 8cbb6fd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
17 changes: 16 additions & 1 deletion .github/actions/build-windows-qt/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,22 @@ runs:
shell: pwsh
run: ./Build-Dependencies.ps1 -Dependencies "Qt${{ inputs.qtVersion }}" -SkipBuild -SkipUnpack -Target ${{ inputs.target }} -Configuration ${{ inputs.config }} -Shared

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.4.1'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
modules: 'qtimageformats qtmultimedia qtshadertools'
archives: 'qtsvg qtbase'
cache: true

- name: Build and Install Windows Qt
if: ${{ steps.deps-cache.outputs.cache-hit != 'true' && inputs.qtVersion > '5'}}
shell: pwsh
run: ./Build-Dependencies.ps1 -Dependencies "Qt${{ inputs.qtVersion }}" -Target ${{ inputs.target }} -Configuration ${{ inputs.config }} -Shared -QtHostPath $Env:Qt6_DIR
- name: Build and Install Windows Qt
if: ${{ steps.deps-cache.outputs.cache-hit != 'true' }}
if: ${{ steps.deps-cache.outputs.cache-hit != 'true' && inputs.qtVersion == '5'}}
shell: pwsh
run: ./Build-Dependencies.ps1 -Dependencies "Qt${{ inputs.qtVersion }}" -Target ${{ inputs.target }} -Configuration ${{ inputs.config }} -Shared
22 changes: 18 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [macos-arm64, macos-x86_64, linux-x86_64, windows-x64, windows-x86]
target: [macos-arm64, macos-x86_64, linux-x86_64, windows-x64, windows-x86, windows-arm64]
include:
- target: macos-arm64
os: 'macos-12'
Expand All @@ -46,6 +46,11 @@ jobs:
config: 'Release'
type: 'static'
revision: 8
- target: windows-arm64
os: 'ubuntu-20.04'
config: 'Release'
type: 'static'
revision: 8
env:
CACHE_REVISION: ${{ matrix.revision }}
defaults:
Expand Down Expand Up @@ -455,14 +460,17 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [x64, x86]
target: [x64, x86, arm64]
include:
- target: x64
config: 'Release'
type: 'static'
- target: x86
config: 'Release'
type: 'static'
- target: arm64
config: 'Release'
type: 'static'
env:
CACHE_REVISION: '3'
defaults:
Expand Down Expand Up @@ -536,8 +544,11 @@ jobs:
fail-fast: true
matrix:
qtVersion: [5, 6]
target: [x64, x86]
target: [x64, x86, arm64]
config: ['RelWithDebInfo', 'Debug']
exclude:
- qtVersion: 5
target: arm64
env:
CACHE_REVISION: '02'
steps:
Expand Down Expand Up @@ -594,7 +605,10 @@ jobs:
fail-fast: true
matrix:
qtVersion: [5, 6]
target: [x64, x86]
target: [x64, x86, arm64]
exclude:
- qtVersion: 5
target: arm64
needs: [windows-qt-build]
steps:
- name: Checkout
Expand Down

0 comments on commit 8cbb6fd

Please sign in to comment.