Skip to content

Commit b9758a6

Browse files
Add ubuntu mantic CI build
1 parent fe9a6a7 commit b9758a6

File tree

3 files changed

+63
-1
lines changed

3 files changed

+63
-1
lines changed

.github/workflows/build_all.yml

+24-1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,28 @@ jobs:
269269
with:
270270
name: sdrpp_ubuntu_jammy_amd64
271271
path: ${{runner.workspace}}/sdrpp_debian_amd64.deb
272+
273+
build_ubuntu_mantic:
274+
runs-on: ubuntu-latest
275+
276+
steps:
277+
- uses: actions/checkout@v3
278+
279+
- name: Create Docker Image
280+
run: cd $GITHUB_WORKSPACE/docker_builds/ubuntu_mantic && docker build . --tag sdrpp_build
281+
282+
- name: Run Container
283+
run: docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" sdrpp_build /root/do_build.sh
284+
285+
- name: Recover Deb Archive
286+
working-directory: ${{runner.workspace}}
287+
run: docker cp build:/root/SDRPlusPlus/sdrpp_debian_amd64.deb ./
288+
289+
- name: Save Deb Archive
290+
uses: actions/upload-artifact@v3
291+
with:
292+
name: sdrpp_ubuntu_mantic_amd64
293+
path: ${{runner.workspace}}/sdrpp_debian_amd64.deb
272294

273295
build_raspios_bullseye_armhf:
274296
runs-on: ARM
@@ -325,7 +347,7 @@ jobs:
325347
path: ${{runner.workspace}}/sdrpp.apk
326348

327349
create_full_archive:
328-
needs: ['build_windows', 'build_macos', 'build_debian_buster', 'build_debian_bullseye', 'build_debian_bookworm', 'build_debian_sid', 'build_ubuntu_focal', 'build_ubuntu_jammy', 'build_raspios_bullseye_armhf', 'build_android']
350+
needs: ['build_windows', 'build_macos', 'build_debian_buster', 'build_debian_bullseye', 'build_debian_bookworm', 'build_debian_sid', 'build_ubuntu_focal', 'build_ubuntu_jammy', 'build_ubuntu_mantic', 'build_raspios_bullseye_armhf', 'build_android']
329351
runs-on: ubuntu-latest
330352

331353
steps:
@@ -343,6 +365,7 @@ jobs:
343365
mv sdrpp_debian_sid_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_debian_sid_amd64.deb &&
344366
mv sdrpp_ubuntu_focal_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_ubuntu_focal_amd64.deb &&
345367
mv sdrpp_ubuntu_jammy_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_ubuntu_jammy_amd64.deb &&
368+
mv sdrpp_ubuntu_mantic_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_ubuntu_mantic_amd64.deb &&
346369
mv sdrpp_raspios_bullseye_armhf/sdrpp_debian_armhf.deb sdrpp_all/sdrpp_raspios_bullseye_armhf.deb &&
347370
mv sdrpp_android/sdrpp.apk sdrpp_all/sdrpp.apk
348371
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM ubuntu:mantic
2+
ENV DEBIAN_FRONTEND=noninteractive
3+
COPY do_build.sh /root
4+
RUN chmod +x /root/do_build.sh
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
set -e
3+
cd /root
4+
5+
# Install dependencies and tools
6+
apt update
7+
apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk-dev libzstd-dev libsoapysdr-dev libairspyhf-dev libairspy-dev \
8+
libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev libbladerf-dev liblimesuite-dev p7zip-full wget portaudio19-dev \
9+
libcodec2-dev autoconf libtool xxd
10+
11+
# Install SDRPlay libraries
12+
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.07.1.run
13+
7z x ./SDRplay_RSP_API-Linux-3.07.1.run
14+
7z x ./SDRplay_RSP_API-Linux-3.07.1
15+
cp x86_64/libsdrplay_api.so.3.07 /usr/lib/libsdrplay_api.so
16+
cp inc/* /usr/include/
17+
18+
# Install libperseus
19+
git clone https://github.com/Microtelecom/libperseus-sdr
20+
cd libperseus-sdr
21+
autoreconf -i
22+
./configure
23+
make
24+
make install
25+
ldconfig
26+
cd ..
27+
28+
cd SDRPlusPlus
29+
mkdir build
30+
cd build
31+
cmake .. -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON -DOPT_BUILD_M17_DECODER=ON -DOPT_BUILD_PERSEUS_SOURCE=ON
32+
make VERBOSE=1 -j2
33+
34+
cd ..
35+
sh make_debian_package.sh ./build 'libfftw3-dev, libglfw3-dev, libvolk-dev, librtaudio-dev, libzstd-dev'

0 commit comments

Comments
 (0)