Skip to content

Commit 910092d

Browse files
committed
Autobuild: Add Linux .deb aarch64 (Raspberry) 64bit builds
1 parent cebb156 commit 910092d

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/autobuild/linux_deb.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ case "${TARGET_ARCH}" in
1414
armhf)
1515
ABI_NAME="arm-linux-gnueabihf"
1616
;;
17+
arm64)
18+
ABI_NAME="aarch64-linux-gnu"
19+
;;
1720
*)
1821
echo "Unsupported TARGET_ARCH ${TARGET_ARCH}"
1922
exit 1
@@ -50,10 +53,10 @@ setup_cross_compiler() {
5053
sudo update-alternatives --install "/usr/bin/${ABI_NAME}-g++" g++ "/usr/bin/${ABI_NAME}-g++-${GCC_VERSION}" 10
5154
sudo update-alternatives --install "/usr/bin/${ABI_NAME}-gcc" gcc "/usr/bin/${ABI_NAME}-gcc-${GCC_VERSION}" 10
5255

53-
if [[ "${TARGET_ARCH}" == armhf ]]; then
54-
# Ubuntu's Qt version only ships a profile for gnueabi, but not for gnueabihf. Therefore, build a custom one:
56+
# Ubuntu's Qt version only ships a profile for gnueabi, but not for gnueabihf or aarch64. Therefore, build a custom one:
57+
if [[ $ABI_NAME ]]; then
5558
sudo cp -R "/usr/lib/${ABI_NAME}/qt5/mkspecs/linux-arm-gnueabi-g++/" "/usr/lib/${ABI_NAME}/qt5/mkspecs/${ABI_NAME}-g++/"
56-
sudo sed -re 's/-gnueabi/-gnueabihf/' -i "/usr/lib/${ABI_NAME}/qt5/mkspecs/${ABI_NAME}-g++/qmake.conf"
59+
sudo sed -re "s/arm-linux-gnueabi/${ABI_NAME}/" -i "/usr/lib/${ABI_NAME}/qt5/mkspecs/${ABI_NAME}-g++/qmake.conf"
5760
fi
5861
}
5962

.github/workflows/autobuild.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ jobs:
209209
base_command: TARGET_ARCH=armhf ./.github/autobuild/linux_deb.sh
210210
run_codeql: false
211211

212+
- config_name: Linux .deb arm64 (artifacts)
213+
target_os: linux
214+
building_on_os: ubuntu-22.04
215+
building_container: ubuntu:18.04
216+
base_command: TARGET_ARCH=arm64 ./.github/autobuild/linux_deb.sh
217+
run_codeql: false
218+
212219
- config_name: MacOS (artifacts)
213220
target_os: macos
214221
building_on_os: macos-12

0 commit comments

Comments
 (0)