Browse Source

Add Linux ARM64 CI build

chirpmodem-v8.0.0
Benjamin HUMEAU 2 months ago
parent
commit
70bf67057f
No known key found for this signature in database
GPG Key ID: BAD0C96273F21349
  1. 14
      .github/workflows/sdrangel.yml
  2. 9
      debian/rules

14
.github/workflows/sdrangel.yml

@ -139,9 +139,18 @@ jobs: @@ -139,9 +139,18 @@ jobs:
make -j3
build_linux:
runs-on: ubuntu-24.04
name: Linux-${{ matrix.arch }}
runs-on: ${{ matrix.runner }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- arch: x64
runner: ubuntu-24.04
- arch: arm64
runner: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
with:
@ -168,7 +177,8 @@ jobs: @@ -168,7 +177,8 @@ jobs:
libavahi-client-dev libavahi-common-dev libaio-dev \
python3-mako python3-cheetah python3-numpy \
autoconf automake libtool ninja-build
bash cmake/ci/build_sdrplay.sh
- name: Install SDRplay API
run: bash cmake/ci/build_sdrplay.sh
- name: Build SDRangel on Linux
run: |
debuild -i -us -uc -b

9
debian/rules vendored

@ -3,6 +3,13 @@ @@ -3,6 +3,13 @@
# Override with "debuild -eQT_VERSION=6 ..." to build the Qt6 package.
QT_VERSION ?= 5
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
ARCH_OPT := nehalem
ifeq ($(DEB_HOST_ARCH),arm64)
# ARM64 runners cannot compile with the x86-specific nehalem target.
ARCH_OPT := armv8-a
endif
ifeq ($(QT_VERSION),5)
QT_CMAKE_OPTION := -DENABLE_QT6=OFF
QT_RUNTIME_DEPENDS := libqt5multimedia5-plugins, qtspeech5-speechd-plugin, qml-module-qtlocation, qml-module-qtpositioning, qml-module-qtquick-window2, qml-module-qtquick-dialogs, qml-module-qtquick-controls, qml-module-qtquick-controls2, qml-module-qtquick-layouts, qml-module-qtgraphicaleffects
@ -17,7 +24,7 @@ endif @@ -17,7 +24,7 @@ endif
dh $@ --parallel --buildsystem=cmake+ninja
override_dh_auto_configure:
dh_auto_configure -- -DARCH_OPT=nehalem $(QT_CMAKE_OPTION) -DENABLE_EXTERNAL_LIBRARIES=AUTO -DDEBUG_OUTPUT=ON -DBUILD_SERVER=OFF
dh_auto_configure -- -DARCH_OPT=$(ARCH_OPT) $(QT_CMAKE_OPTION) -DENABLE_EXTERNAL_LIBRARIES=AUTO -DDEBUG_OUTPUT=ON -DBUILD_SERVER=OFF
override_dh_gencontrol:
dh_gencontrol -- -Vqt:Depends='$(QT_RUNTIME_DEPENDS)'

Loading…
Cancel
Save