Skip to content

Commit

Permalink
CI: Build Windows Arm64 CrossCompiled
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Jan 8, 2025
1 parent 4a1adfa commit 448f023
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 42 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/android-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ jobs:

- uses: seanmiddleditch/gha-setup-ninja@v5
- uses: lukka/get-cmake@latest

# - name: Set Up sccache
# uses: mozilla-actions/[email protected]
- uses: mozilla-actions/[email protected]

- name: Install Qt for Android
uses: ./.github/actions/qt-android
Expand Down
38 changes: 5 additions & 33 deletions .github/workflows/custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
BuildType: [Release]
Arch: [x64] # Arm64
Arch: [x64]

defaults:
run:
Expand Down Expand Up @@ -74,8 +74,8 @@ jobs:
# - name: Install Gstreamer
# run: choco install --no-progress gstreamer gstreamer-devel --version=${{ env.GST_VERSION }}

# - name: Set Up sccache
# uses: mozilla-actions/[email protected].5
- name: Set Up sccache
uses: mozilla-actions/[email protected].7

- name: Set Up Cache
uses: hendrikmuhs/ccache-action@main
Expand All @@ -99,20 +99,6 @@ jobs:
modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors
cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}

- name: Install Qt for Windows (Arm64)
if: matrix.Arch == 'Arm64'
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.QT_VERSION }}
aqtversion: ==3.1.*
host: windows
target: desktop
arch: win64_msvc2022_arm64 # _cross_compiled
dir: ${{ runner.temp }}
extra: --autodesktop
modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors
cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}

- name: Set up Visual Studio shell
uses: ilammy/msvc-dev-cmd@v1
with:
Expand All @@ -122,24 +108,10 @@ jobs:

- name: Configure
working-directory: ${{ runner.temp }}\shadow_build_dir
run: ${{ env.QT_ROOT_DIR }}/bin/qt-cmake -S ${{ github.workspace }} -B . -G Ninja ^
-DCMAKE_BUILD_TYPE=${{ matrix.BuildType }} ^
run: ${{ env.QT_ROOT_DIR }}/bin/qt-cmake -S ${{ github.workspace }} -B . -G Ninja
-DCMAKE_BUILD_TYPE=${{ matrix.BuildType }}
-DQGC_STABLE_BUILD=${{ github.ref_type == 'tag' || contains(github.ref, 'Stable') && 'ON' || 'OFF' }}

- name: Build
working-directory: ${{ runner.temp }}\shadow_build_dir
run: cmake --build . --target all --config ${{ matrix.BuildType }}

# - name: Install
# working-directory: ${{ runner.temp }}\shadow_build_dir
# run: cmake --install . --config ${{ matrix.BuildType }}

# - name: Upload Build File
# if: matrix.BuildType == 'Release'
# uses: ./.github/actions/upload
# with:
# artifact_name: ${{ env.ARTIFACT }}
# aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# source: ''
# github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
evict-old-files: 'job'

- name: Install Qt for Linux
- name: Install Qt for Linux (x64)
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.QT_VERSION }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
BuildType: [Release]
Arch: [x64] # Arm64
Arch: [x64, Arm64]

defaults:
run:
Expand Down Expand Up @@ -97,10 +97,10 @@ jobs:
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.QT_VERSION }}
aqtversion: ==3.1.*
aqtversion: ==3.1.19
host: windows
target: desktop
arch: win64_msvc2022_arm64 # _cross_compiled
arch: win64_msvc2022_arm64_cross_compiled
dir: ${{ runner.temp }}
extra: --autodesktop
modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors
Expand All @@ -115,8 +115,9 @@ jobs:

- name: Configure
working-directory: ${{ runner.temp }}\shadow_build_dir
run: ${{ env.QT_ROOT_DIR }}/bin/qt-cmake -S ${{ github.workspace }} -B . -G Ninja ^
-DCMAKE_BUILD_TYPE=${{ matrix.BuildType }} ^
run: ${{ env.QT_ROOT_DIR }}/bin/qt-cmake -S ${{ github.workspace }} -B . -G Ninja
-DCMAKE_BUILD_TYPE=${{ matrix.BuildType }}
-DQT_HOST_PATH="${{ env.QT_ROOT_DIR }}/../msvc2022_64"
-DQGC_STABLE_BUILD=${{ github.ref_type == 'tag' || contains(github.ref, 'Stable') && 'ON' || 'OFF' }}

- name: Build
Expand Down

0 comments on commit 448f023

Please sign in to comment.