Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Enable arm64 Linux builds
  • Loading branch information
adazem009 committed Jan 23, 2025
commit e237813ee4086c2b4120bffc2ac5cca6d3e88de0
37 changes: 14 additions & 23 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
qt-version: ['6.8']
qt-target: ['desktop']
qt-modules: ['']
arch: ['amd64']
ubuntu-version: ['20.04']
include:
- qt-host: 'linux_arm64'
qt-version: '6.8'
qt-target: 'desktop'
qt-modules: ''
qt-arch: 'linux_gcc_arm64'
arch: 'amd64'
- qt-version: '6.8'
qt-target: 'desktop'
qt-modules: ''
qt-arch: 'linux_gcc_64'
arch: 'aarch64'
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -47,26 +54,10 @@ jobs:
uses: jurplel/install-qt-action@v4
with:
version: ${{ matrix.qt-version }}
host: 'linux'
arch: 'linux_gcc_64'
host: ${{ matrix.qt-host}}
arch: ${{ matrix.qt-arch }}
target: ${{ matrix.qt-target }}
modules: ${{ matrix.qt-modules }}
- if: "!contains(matrix.arch, 'amd64')"
name: Restore cross-compiled Qt from cache
id: cache-qt-cross
uses: actions/cache@v3
with:
path: |
./qt-host/
./qt-cross/
./sysroot/
key: qt-cross-${{ runner.os }}-${{ matrix.qt-version }}-${{ matrix.qt-target }}-${{ matrix.qt-modules }}-${{ matrix.arch }}
restore-keys:
qt-cross-${{ runner.os }}-${{ matrix.qt-version }}-${{ matrix.qt-target }}-${{ matrix.qt-modules }}-${{ matrix.arch }}
- if: "!contains(matrix.arch, 'amd64') && steps.cache-qt-cross.outputs.cache-hit != 'true'"
name: Cross-compile Qt
shell: bash
run: .ci/build_qt6.sh "${{ matrix.qt-version }}" "${{ matrix.qt-modules }}" "${{ matrix.arch }}"
## Build
- if: "!contains(matrix.arch, 'amd64')"
name: Prepare cross-compilation environment
Expand Down