From 48ae57ad2def9df05e5c89ffad27d8c4bb658410 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 26 Apr 2021 17:41:03 +0200 Subject: [PATCH] Added CI for debian sid --- .github/workflows/build_all.yml | 22 ++++++++++++++++++++++ docker_builds/debian_sid/Dockerfile | 4 ++++ docker_builds/debian_sid/do_build.sh | 18 ++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 docker_builds/debian_sid/Dockerfile create mode 100644 docker_builds/debian_sid/do_build.sh diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 0f5c12ba..0aea9199 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -96,6 +96,28 @@ jobs: name: sdrpp_debian_bullseye_amd64 path: ${{runner.workspace}}/sdrpp_debian_amd64.deb + build_debian_sid: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Docker Image + run: cd $GITHUB_WORKSPACE/docker_builds/debian_sid && docker build . --tag sdrpp_build + + - name: Run Container + run: docker run --name build sdrpp_build /root/do_build.sh + + - name: Recover Deb Archive + working-directory: ${{runner.workspace}} + run: docker cp build:/root/SDRPlusPlus/sdrpp_debian_amd64.deb ./ + + - name: Save Deb Archive + uses: actions/upload-artifact@v2 + with: + name: sdrpp_debian_sid_amd64 + path: ${{runner.workspace}}/sdrpp_debian_amd64.deb + build_ubuntu_focal: runs-on: ubuntu-latest diff --git a/docker_builds/debian_sid/Dockerfile b/docker_builds/debian_sid/Dockerfile new file mode 100644 index 00000000..6b1dd42f --- /dev/null +++ b/docker_builds/debian_sid/Dockerfile @@ -0,0 +1,4 @@ +FROM debian:sid +ENV DEBIAN_FRONTEND=noninteractive +COPY do_build.sh /root +RUN chmod +x /root/do_build.sh \ No newline at end of file diff --git a/docker_builds/debian_sid/do_build.sh b/docker_builds/debian_sid/do_build.sh new file mode 100644 index 00000000..4bbd19d5 --- /dev/null +++ b/docker_builds/debian_sid/do_build.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e +cd /root + + +apt update +apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libglew-dev libvolk2-dev libsoapysdr-dev libairspyhf-dev libairspy-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev + +git clone https://github.com/AlexandreRouma/SDRPlusPlus + +cd SDRPlusPlus +mkdir build +cd build +cmake .. +make -j2 + +cd .. +sh make_debian_package.sh ./build \ No newline at end of file