2021-04-24 21:32:55 +02:00
name : Build Binaries
2020-12-23 19:36:12 +01:00
2022-11-22 13:27:56 +01:00
on :
push :
branches-ignore :
- nightly
pull_request :
branches-ignore :
- nightly
2020-12-23 19:36:12 +01:00
env :
2021-04-24 21:16:06 +02:00
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE : Release
2022-11-22 08:39:46 +01:00
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2020-12-23 19:36:12 +01:00
jobs :
2021-04-24 21:21:10 +02:00
build_windows :
runs-on : windows-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2021-04-24 21:21:10 +02:00
2021-04-24 21:32:55 +02:00
- name : Create Build Environment
run : cmake -E make_directory ${{runner.workspace}}/build
2021-04-24 22:01:28 +02:00
- name : Download PothosSDR
2021-05-18 20:05:24 +02:00
run : Invoke-WebRequest -Uri "https://downloads.myriadrf.org/builds/PothosSDR/PothosSDR-2020.01.26-vc14-x64.exe" -OutFile ${{runner.workspace}}/pothos.exe
2021-04-24 22:01:28 +02:00
- name : Install PothosSDR
run : mkdir "C:/Program Files/PothosSDR" ; 7z x ${{runner.workspace}}/pothos.exe -o"C:/Program Files/PothosSDR/"
2021-04-30 16:34:42 +02:00
- name : Download libusb
run : Invoke-WebRequest -Uri "https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.7z" -OutFile ${{runner.workspace}}/libusb.7z
- name : Patch Pothos with earlier libusb version
working-directory : ${{runner.workspace}}
2024-01-17 06:28:16 +01:00
run : 7z x libusb.7z -olibusb_old ; rm "C:/Program Files/PothosSDR/bin/libusb-1.0.dll" ; cp "libusb_old/MS64/dll/libusb-1.0.dll" "C:/Program Files/PothosSDR/bin/" ; rm "C:/Program Files/PothosSDR/lib/libusb-1.0.lib" ; cp "libusb_old/MS64/dll/libusb-1.0.lib" "C:/Program Files/PothosSDR/lib/"
2021-04-30 16:34:42 +02:00
2024-06-26 17:11:23 +02:00
- name : Download librtlsdr
run : Invoke-WebRequest -Uri "https://ftp.osmocom.org/binaries/windows/rtl-sdr/rtl-sdr-64bit-20240623.zip" -OutFile ${{runner.workspace}}/rtl-sdr.zip
- name : Patch Pothos with newer librtlsdr version
working-directory : ${{runner.workspace}}
2024-06-26 17:19:06 +02:00
run : 7z x rtl-sdr.zip ; rm "C:/Program Files/PothosSDR/bin/rtlsdr.dll" ; cp "rtl-sdr-64bit-20240623/librtlsdr.dll" "C:/Program Files/PothosSDR/bin/rtlsdr.dll"
2024-06-26 17:11:23 +02:00
2021-04-25 01:21:48 +02:00
- name : Download SDRPlay API
2024-02-12 23:24:00 +01:00
run : Invoke-WebRequest -Uri "https://www.sdrpp.org/SDRplay.zip" -OutFile ${{runner.workspace}}/SDRplay.zip
2021-04-25 01:21:48 +02:00
- name : Install SDRPlay API
2024-02-12 23:24:00 +01:00
run : 7z x ${{runner.workspace}}/SDRplay.zip -o"C:/Program Files/"
2021-04-25 01:21:48 +02:00
2021-10-02 19:58:30 +02:00
- name : Download codec2
2021-11-09 13:55:52 +01:00
run : git clone https://github.com/AlexandreRouma/codec2
2021-10-02 19:58:30 +02:00
2021-10-02 20:04:14 +02:00
- name : Prepare MinGW
run : C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64 -c "pacman --noconfirm -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja"
2021-10-02 19:58:30 +02:00
- name : Prepare build for codec2
run : cd codec2 ; mkdir build ; cd build ; C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64 -c "cmake .. -DCMAKE_GNUtoMS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-static-libgcc"
- name : Build codec2
run : cd codec2/build ; C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64 -c "ninja"
2021-10-02 20:33:22 +02:00
- name : Install codec2
run : mkdir "C:/Program Files/codec2" ; mkdir "C:/Program Files/codec2/include" ; mkdir "C:/Program Files/codec2/include/codec2" ; mkdir "C:/Program Files/codec2/lib" ; cd "codec2" ; xcopy "src" "C:/Program Files/codec2/include" ; cd "build" ; xcopy "src" "C:/Program Files/codec2/lib" ; xcopy "codec2" "C:/Program Files/codec2/include/codec2"
2021-04-24 21:32:55 +02:00
- name : Install vcpkg dependencies
2024-07-15 20:36:08 +02:00
run : vcpkg install fftw3:x64-windows glfw3:x64-windows portaudio:x64-windows zstd:x64-windows libusb:x64-windows spdlog:x64-windows
2021-04-24 21:32:55 +02:00
- name : Install rtaudio
2021-10-03 18:49:56 +02:00
run : git clone https://github.com/thestk/rtaudio ; cd rtaudio ; git checkout 2f2fca4502d506abc50f6d4473b2836d24cfb1e3 ; mkdir build ; cd build ; cmake .. ; cmake --build . --config Release ; cmake --install .
2021-04-24 22:50:38 +02:00
2023-06-10 19:24:40 +02:00
- name : Install libperseus-sdr
2024-09-14 02:06:34 +02:00
run : git clone https://github.com/AlexandreRouma/libperseus-sdr ; cd libperseus-sdr ; mkdir build ; cd build ; cmake -DCMAKE_BUILD_TYPE=Release "-DLIBUSB_LIBRARIES=C:/Program Files/PothosSDR/lib/libusb-1.0.lib" "-DLIBUSB_INCLUDE_DIRS=C:/Program Files/PothosSDR/include/libusb-1.0" .. "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" ; cmake --build . --config Release ; mkdir "C:/Program Files/PothosSDR/include/perseus-sdr" ; cp Release/perseus-sdr.dll "C:/Program Files/PothosSDR/bin" ; cp Release/perseus-sdr.lib "C:/Program Files/PothosSDR/bin" ; cd .. ; xcopy "src" "C:/Program Files/PothosSDR/include/perseus-sdr"
2023-06-10 19:24:40 +02:00
2024-07-15 20:25:53 +02:00
- name : Install librfnm
2024-09-14 02:06:34 +02:00
run : git clone https://github.com/AlexandreRouma/librfnm ; cd librfnm ; mkdir build ; cd build ; cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" ; cmake --build . --config Release ; cmake --install .
- name : Install libfobos
run : git clone https://github.com/AlexandreRouma/libfobos ; cd libfobos ; mkdir build ; cd build ; cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" ; cmake --build . --config Release ; cmake --install .
2024-07-15 20:25:53 +02:00
2021-04-24 22:50:38 +02:00
- name : Prepare CMake
working-directory : ${{runner.workspace}}/build
2024-09-14 15:05:12 +02:00
run : cmake -DCOPY_MSVC_REDISTRIBUTABLES=ON "$Env:GITHUB_WORKSPACE" "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_PERSEUS_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON -DOPT_BUILD_M17_DECODER=ON -DOPT_BUILD_RFNM_SOURCE=ON -DOPT_BUILD_FOBOSSDR_SOURCE=ON
2021-04-24 22:20:33 +02:00
- name : Build
working-directory : ${{runner.workspace}}/build
2021-10-04 03:31:13 +02:00
run : cmake --build . --config Release --verbose
2021-04-24 23:25:44 +02:00
- name : Create Archive
2021-04-25 00:44:30 +02:00
working-directory : ${{runner.workspace}}
run : '&($Env:GITHUB_WORKSPACE + "/make_windows_package.ps1") ./build ($Env:GITHUB_WORKSPACE + "/root")'
2021-04-24 23:25:44 +02:00
- name : Save Archive
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2021-04-24 23:25:44 +02:00
with :
name : sdrpp_windows_x64
2021-04-26 04:59:37 +02:00
path : ${{runner.workspace}}/sdrpp_windows_x64.zip
2021-04-29 15:32:59 +02:00
2024-02-11 19:36:26 +01:00
build_macos_intel :
runs-on : macos-12
2021-04-29 15:32:59 +02:00
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2021-04-29 15:32:59 +02:00
- name : Create Build Environment
run : cmake -E make_directory ${{runner.workspace}}/build
2024-03-22 18:48:27 +01:00
2021-04-29 15:32:59 +02:00
- name : Install dependencies
2024-07-16 20:53:32 +02:00
run : brew install pkg-config libusb fftw glfw airspy airspyhf portaudio hackrf libbladerf codec2 zstd autoconf automake libtool spdlog && pip3 install mako
2021-11-16 19:55:03 +01:00
- name : Install volk
2024-01-17 07:07:24 +01:00
run : git clone --recursive https://github.com/gnuradio/volk && cd volk && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
2021-04-29 15:32:59 +02:00
2021-11-17 19:27:11 +01:00
- name : Install SDRplay API
2024-05-26 22:57:47 +02:00
run : wget https://www.sdrplay.com/software/SDRplayAPI-macos-installer-universal-3.15.0.pkg && sudo installer -pkg SDRplayAPI-macos-installer-universal-3.15.0.pkg -target /
2021-11-17 19:27:11 +01:00
2022-07-27 21:35:36 +02:00
- name : Install libiio
2024-01-17 07:07:24 +01:00
run : wget https://github.com/analogdevicesinc/libiio/archive/refs/tags/v0.25.zip && 7z x v0.25.zip && cd libiio-0.25 && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
2021-11-18 08:37:55 +01:00
2022-07-27 21:35:36 +02:00
- name : Install libad9361
2024-01-17 07:07:24 +01:00
run : git clone https://github.com/analogdevicesinc/libad9361-iio && cd libad9361-iio && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
2021-11-18 08:37:55 +01:00
2021-11-18 10:03:45 +01:00
- name : Install LimeSuite
2024-01-17 07:07:24 +01:00
run : git clone https://github.com/myriadrf/LimeSuite && cd LimeSuite && mkdir builddir && cd builddir && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
2021-11-18 10:03:45 +01:00
2023-05-24 02:32:27 +02:00
- name : Install libperseus
2024-07-16 20:59:32 +02:00
run : git clone https://github.com/Microtelecom/libperseus-sdr && cd libperseus-sdr && autoreconf -i && ./configure --prefix=/usr/local && make && sudo make install && cd ..
2023-05-24 02:32:27 +02:00
2024-07-16 20:43:53 +02:00
- name : Install librfnm
2024-07-16 20:59:32 +02:00
run : git clone https://github.com/AlexandreRouma/librfnm && cd librfnm && mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && sudo make install && cd ..
2024-07-16 20:43:53 +02:00
2024-09-14 02:06:34 +02:00
- name : Install libfobos
run : git clone https://github.com/AlexandreRouma/libfobos && cd libfobos && mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && sudo make install && cd ..
2024-09-13 23:02:30 +02:00
2023-09-06 04:12:04 +02:00
- name : Install more recent librtlsdr
2024-01-17 07:07:24 +01:00
run : git clone https://github.com/osmocom/rtl-sdr && cd rtl-sdr && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 LIBRARY_PATH=$(pkg-config --libs-only-L libusb-1.0 | sed 's/\-L//') && sudo make install && cd ../../
2023-09-06 04:12:04 +02:00
2021-04-29 15:32:59 +02:00
- name : Prepare CMake
2021-04-29 15:51:32 +02:00
working-directory : ${{runner.workspace}}/build
2024-11-07 15:02:16 +01:00
run : cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 $GITHUB_WORKSPACE -DOPT_BUILD_PLUTOSDR_SOURCE=ON -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_AUDIO_SINK=OFF -DOPT_BUILD_PORTAUDIO_SINK=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON -DOPT_BUILD_M17_DECODER=OFF -DOPT_BUILD_PERSEUS_SOURCE=ON -DOPT_BUILD_AUDIO_SOURCE=OFF -DOPT_BUILD_RFNM_SOURCE=ON -DOPT_BUILD_FOBOSSDR_SOURCE=ON -DUSE_BUNDLE_DEFAULTS=ON -DCMAKE_BUILD_TYPE=Release
2021-04-29 15:32:59 +02:00
- name : Build
working-directory : ${{runner.workspace}}/build
2021-10-03 02:04:02 +02:00
run : make VERBOSE=1 -j3
2021-04-30 20:33:51 +02:00
- name : Create Archive
working-directory : ${{runner.workspace}}
2021-11-17 22:37:21 +01:00
run : cd $GITHUB_WORKSPACE && sh make_macos_bundle.sh ${{runner.workspace}}/build ./SDR++.app && zip -r ${{runner.workspace}}/sdrpp_macos_intel.zip SDR++.app
2021-04-30 20:33:51 +02:00
- name : Save Archive
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2021-04-30 20:33:51 +02:00
with :
2021-11-16 03:33:09 +01:00
name : sdrpp_macos_intel
path : ${{runner.workspace}}/sdrpp_macos_intel.zip
2023-10-02 23:57:06 +02:00
2024-02-11 19:36:26 +01:00
build_macos_arm :
runs-on : macos-14
steps :
- uses : actions/checkout@v4
- name : Create Build Environment
run : cmake -E make_directory ${{runner.workspace}}/build
2024-03-22 18:48:27 +01:00
2024-02-11 19:36:26 +01:00
- name : Install dependencies
2024-07-16 20:53:32 +02:00
run : brew install pkg-config libusb fftw glfw airspy airspyhf portaudio hackrf libbladerf codec2 zstd autoconf automake libtool spdlog && pip3 install mako --break-system-packages
2024-02-11 19:36:26 +01:00
- name : Install volk
run : git clone --recursive https://github.com/gnuradio/volk && cd volk && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
- name : Install SDRplay API
2024-05-26 22:57:47 +02:00
run : wget https://www.sdrplay.com/software/SDRplayAPI-macos-installer-universal-3.15.0.pkg && sudo installer -pkg SDRplayAPI-macos-installer-universal-3.15.0.pkg -target /
2024-02-11 19:36:26 +01:00
- name : Install libiio
run : wget https://github.com/analogdevicesinc/libiio/archive/refs/tags/v0.25.zip && 7z x v0.25.zip && cd libiio-0.25 && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
- name : Install libad9361
run : git clone https://github.com/analogdevicesinc/libad9361-iio && cd libad9361-iio && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
- name : Install LimeSuite
run : git clone https://github.com/myriadrf/LimeSuite && cd LimeSuite && mkdir builddir && cd builddir && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
2024-02-11 19:41:49 +01:00
# - name: Install libperseus
# run: git clone https://github.com/Microtelecom/libperseus-sdr && cd libperseus-sdr && autoreconf -i && ./configure --prefix=/usr/local && make && make install && cd ..
2024-02-11 19:36:26 +01:00
2024-07-16 20:45:27 +02:00
- name : Install librfnm
2024-07-16 20:59:32 +02:00
run : git clone https://github.com/AlexandreRouma/librfnm && cd librfnm && mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && sudo make install && cd ..
2024-07-16 20:45:27 +02:00
2024-09-14 02:06:34 +02:00
- name : Install libfobos
run : git clone https://github.com/AlexandreRouma/libfobos && cd libfobos && mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && sudo make install && cd ..
2024-09-13 23:02:30 +02:00
2024-02-11 19:36:26 +01:00
- name : Install more recent librtlsdr
run : git clone https://github.com/osmocom/rtl-sdr && cd rtl-sdr && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 LIBRARY_PATH=$(pkg-config --libs-only-L libusb-1.0 | sed 's/\-L//') && sudo make install && cd ../../
- name : Prepare CMake
working-directory : ${{runner.workspace}}/build
2024-11-07 14:53:27 +01:00
run : cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 $GITHUB_WORKSPACE -DOPT_BUILD_PLUTOSDR_SOURCE=ON -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_AUDIO_SINK=OFF -DOPT_BUILD_PORTAUDIO_SINK=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON -DOPT_BUILD_M17_DECODER=ON -DOPT_BUILD_PERSEUS_SOURCE=OFF -DOPT_BUILD_AUDIO_SOURCE=OFF -DOPT_BUILD_RFNM_SOURCE=ON -DOPT_BUILD_FOBOSSDR_SOURCE=ON -DUSE_BUNDLE_DEFAULTS=ON -DCMAKE_BUILD_TYPE=Release
2024-02-11 19:36:26 +01:00
- name : Build
working-directory : ${{runner.workspace}}/build
run : make VERBOSE=1 -j3
- name : Create Archive
working-directory : ${{runner.workspace}}
run : cd $GITHUB_WORKSPACE && sh make_macos_bundle.sh ${{runner.workspace}}/build ./SDR++.app && zip -r ${{runner.workspace}}/sdrpp_macos_arm.zip SDR++.app
- name : Save Archive
uses : actions/upload-artifact@v4
2024-07-16 20:55:19 +02:00
with :
2024-02-11 19:36:26 +01:00
name : sdrpp_macos_arm
path : ${{runner.workspace}}/sdrpp_macos_arm.zip
2023-10-10 15:21:55 +02:00
build_debian_buster :
runs-on : ubuntu-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2023-10-10 15:21:55 +02:00
- name : Create Docker Image
run : cd $GITHUB_WORKSPACE/docker_builds/debian_buster && docker build . --tag sdrpp_build
- name : Run Container
run : docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" 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
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2023-10-10 15:21:55 +02:00
with :
name : sdrpp_debian_buster_amd64
path : ${{runner.workspace}}/sdrpp_debian_amd64.deb
2021-04-26 05:04:20 +02:00
build_debian_bullseye :
2021-04-26 04:59:37 +02:00
runs-on : ubuntu-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2021-04-26 04:59:37 +02:00
- name : Create Docker Image
2021-04-26 05:04:20 +02:00
run : cd $GITHUB_WORKSPACE/docker_builds/debian_bullseye && docker build . --tag sdrpp_build
2021-04-26 04:59:37 +02:00
- name : Run Container
2021-07-03 13:44:56 +02:00
run : docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" sdrpp_build /root/do_build.sh
2021-04-26 04:59:37 +02:00
- name : Recover Deb Archive
2021-04-26 05:23:41 +02:00
working-directory : ${{runner.workspace}}
2021-04-26 04:59:37 +02:00
run : docker cp build:/root/SDRPlusPlus/sdrpp_debian_amd64.deb ./
- name : Save Deb Archive
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2021-04-26 04:59:37 +02:00
with :
2021-04-26 05:04:20 +02:00
name : sdrpp_debian_bullseye_amd64
2021-04-26 05:43:40 +02:00
path : ${{runner.workspace}}/sdrpp_debian_amd64.deb
2023-07-24 00:05:25 +02:00
build_debian_bookworm :
2021-04-26 17:41:03 +02:00
runs-on : ubuntu-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2021-04-26 17:41:03 +02:00
- name : Create Docker Image
2023-07-24 00:05:25 +02:00
run : cd $GITHUB_WORKSPACE/docker_builds/debian_bookworm && docker build . --tag sdrpp_build
2021-04-26 17:41:03 +02:00
- name : Run Container
2021-07-03 13:44:56 +02:00
run : docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" sdrpp_build /root/do_build.sh
2021-04-26 17:41:03 +02:00
- name : Recover Deb Archive
working-directory : ${{runner.workspace}}
run : docker cp build:/root/SDRPlusPlus/sdrpp_debian_amd64.deb ./
- name : Save Deb Archive
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2021-04-26 17:41:03 +02:00
with :
2023-07-24 00:05:25 +02:00
name : sdrpp_debian_bookworm_amd64
2021-04-26 17:41:03 +02:00
path : ${{runner.workspace}}/sdrpp_debian_amd64.deb
2023-07-24 00:05:25 +02:00
build_debian_sid :
runs-on : ubuntu-latest
2021-08-24 19:23:08 +02:00
2023-07-24 00:05:25 +02:00
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2021-08-24 19:23:08 +02:00
2023-07-24 00:05:25 +02:00
- name : Create Docker Image
run : cd $GITHUB_WORKSPACE/docker_builds/debian_sid && docker build . --tag sdrpp_build
2021-08-24 19:23:08 +02:00
2023-07-24 00:05:25 +02:00
- name : Run Container
run : docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" sdrpp_build /root/do_build.sh
2021-08-24 19:23:08 +02:00
2023-07-24 00:05:25 +02:00
- name : Recover Deb Archive
working-directory : ${{runner.workspace}}
run : docker cp build:/root/SDRPlusPlus/sdrpp_debian_amd64.deb ./
2021-08-24 19:23:08 +02:00
2023-07-24 00:05:25 +02:00
- name : Save Deb Archive
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2023-07-24 00:05:25 +02:00
with :
name : sdrpp_debian_sid_amd64
path : ${{runner.workspace}}/sdrpp_debian_amd64.deb
2021-08-24 19:23:08 +02:00
2021-04-26 05:43:40 +02:00
build_ubuntu_focal :
runs-on : ubuntu-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2021-04-26 05:43:40 +02:00
- name : Create Docker Image
run : cd $GITHUB_WORKSPACE/docker_builds/ubuntu_focal && docker build . --tag sdrpp_build
- name : Run Container
2021-07-03 13:44:56 +02:00
run : docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" sdrpp_build /root/do_build.sh
2021-04-26 05:43:40 +02:00
- name : Recover Deb Archive
working-directory : ${{runner.workspace}}
run : docker cp build:/root/SDRPlusPlus/sdrpp_debian_amd64.deb ./
- name : Save Deb Archive
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2021-04-26 05:43:40 +02:00
with :
name : sdrpp_ubuntu_focal_amd64
path : ${{runner.workspace}}/sdrpp_debian_amd64.deb
2022-01-29 14:47:28 +01:00
build_ubuntu_jammy :
runs-on : ubuntu-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2022-01-29 14:47:28 +01:00
- name : Create Docker Image
run : cd $GITHUB_WORKSPACE/docker_builds/ubuntu_jammy && docker build . --tag sdrpp_build
- name : Run Container
run : docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" 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
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2022-01-29 14:47:28 +01:00
with :
name : sdrpp_ubuntu_jammy_amd64
path : ${{runner.workspace}}/sdrpp_debian_amd64.deb
2024-01-25 15:41:23 +01:00
build_ubuntu_mantic :
runs-on : ubuntu-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2024-01-25 15:41:23 +01:00
- name : Create Docker Image
run : cd $GITHUB_WORKSPACE/docker_builds/ubuntu_mantic && docker build . --tag sdrpp_build
- name : Run Container
run : docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" 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
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2024-01-25 15:41:23 +01:00
with :
name : sdrpp_ubuntu_mantic_amd64
path : ${{runner.workspace}}/sdrpp_debian_amd64.deb
2022-01-29 14:47:28 +01:00
2024-05-24 01:38:15 +02:00
build_ubuntu_noble :
runs-on : ubuntu-latest
steps :
- uses : actions/checkout@v4
- name : Create Docker Image
run : cd $GITHUB_WORKSPACE/docker_builds/ubuntu_noble && docker build . --tag sdrpp_build
- name : Run Container
run : docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" 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@v4
with :
name : sdrpp_ubuntu_noble_amd64
path : ${{runner.workspace}}/sdrpp_debian_amd64.deb
2021-12-26 00:59:25 +01:00
build_raspios_bullseye_armhf :
2021-12-26 00:23:38 +01:00
runs-on : ARM
2021-11-24 20:02:16 +01:00
2021-12-26 00:22:16 +01:00
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2021-12-26 00:32:05 +01:00
- name : Create Build Environment
2021-12-26 01:01:15 +01:00
run : rm -rf ${{runner.workspace}}/build && cmake -E make_directory ${{runner.workspace}}/build
2021-11-24 20:02:16 +01:00
2021-12-26 00:22:16 +01:00
- name : Prepare CMake
working-directory : ${{runner.workspace}}/build
2023-06-10 21:48:02 +02:00
run : cmake $GITHUB_WORKSPACE -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_USRP_SOURCE=ON -DOPT_BUILD_PERSEUS_SOURCE=ON
2021-11-24 20:02:16 +01:00
2021-12-26 00:22:16 +01:00
- name : Build
working-directory : ${{runner.workspace}}/build
2021-12-26 01:38:58 +01:00
run : make VERBOSE=1 -j3
2021-12-26 00:59:25 +01:00
- name : Create Dev Archive
working-directory : ${{runner.workspace}}
2022-01-22 20:16:48 +01:00
run : sh $GITHUB_WORKSPACE/make_debian_package.sh ./build 'libfftw3-dev, libglfw3-dev, libvolk2-dev, librtaudio-dev' && mv sdrpp_debian_amd64.deb sdrpp_debian_armhf.deb
2021-12-26 00:59:25 +01:00
- name : Save Deb Archive
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2021-12-26 00:59:25 +01:00
with :
name : sdrpp_raspios_bullseye_armhf
path : ${{runner.workspace}}/sdrpp_debian_armhf.deb
2022-09-03 18:53:14 +02:00
build_android :
runs-on : ubuntu-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2022-09-03 18:53:14 +02:00
- name : Fetch container
working-directory : ${{runner.workspace}}
run : git clone https://github.com/AlexandreRouma/android-sdr-kit
- name : Build container
2022-09-03 18:54:08 +02:00
working-directory : ${{runner.workspace}}/android-sdr-kit
2022-09-03 18:53:14 +02:00
run : docker build --progress=plain -t android-sdr-kit .
- name : Build
2022-09-03 19:41:39 +02:00
run : docker run --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus android-sdr-kit /bin/bash -l -c "cd /root/SDRPlusPlus/android && gradle --info assembleDebug"
- name : Recover APK
working-directory : ${{runner.workspace}}
run : docker cp build:/root/SDRPlusPlus/android/app/build/outputs/apk/debug/app-debug.apk ./ && mv app-debug.apk sdrpp.apk
- name : Save APK
2024-01-28 17:28:07 +01:00
uses : actions/upload-artifact@v4
2022-09-03 19:41:39 +02:00
with :
name : sdrpp_android
path : ${{runner.workspace}}/sdrpp.apk
2022-09-03 18:53:14 +02:00
2021-04-26 19:27:05 +02:00
create_full_archive :
2024-05-24 01:38:15 +02:00
needs : [ 'build_windows' , 'build_macos_intel' , 'build_macos_arm' , 'build_debian_buster' , 'build_debian_bullseye' , 'build_debian_bookworm' , 'build_debian_sid' , 'build_ubuntu_focal' , 'build_ubuntu_jammy' , 'build_ubuntu_mantic' , 'build_ubuntu_noble' , 'build_raspios_bullseye_armhf' , 'build_android' ]
2021-04-26 19:27:05 +02:00
runs-on : ubuntu-latest
steps :
- name : Download All Builds
2024-01-28 17:28:07 +01:00
uses : actions/download-artifact@v4
2021-04-26 19:27:05 +02:00
- name : Create Archive
run : >
2021-04-26 19:43:55 +02:00
mkdir sdrpp_all &&
2021-04-26 19:59:41 +02:00
mv sdrpp_windows_x64/sdrpp_windows_x64.zip sdrpp_all/ &&
2021-11-16 03:33:09 +01:00
mv sdrpp_macos_intel/sdrpp_macos_intel.zip sdrpp_all/ &&
2024-02-11 19:36:26 +01:00
mv sdrpp_macos_arm/sdrpp_macos_arm.zip sdrpp_all/ &&
2021-04-26 19:59:41 +02:00
mv sdrpp_debian_buster_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_debian_buster_amd64.deb &&
mv sdrpp_debian_bullseye_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_debian_bullseye_amd64.deb &&
2023-07-24 00:05:25 +02:00
mv sdrpp_debian_bookworm_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_debian_bookworm_amd64.deb &&
2021-04-26 19:59:41 +02:00
mv sdrpp_debian_sid_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_debian_sid_amd64.deb &&
2021-12-25 16:51:39 +01:00
mv sdrpp_ubuntu_focal_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_ubuntu_focal_amd64.deb &&
2022-01-29 14:47:28 +01:00
mv sdrpp_ubuntu_jammy_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_ubuntu_jammy_amd64.deb &&
2024-01-25 15:41:23 +01:00
mv sdrpp_ubuntu_mantic_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_ubuntu_mantic_amd64.deb &&
2024-05-24 01:38:15 +02:00
mv sdrpp_ubuntu_noble_amd64/sdrpp_debian_amd64.deb sdrpp_all/sdrpp_ubuntu_noble_amd64.deb &&
2022-09-03 19:41:39 +02:00
mv sdrpp_raspios_bullseye_armhf/sdrpp_debian_armhf.deb sdrpp_all/sdrpp_raspios_bullseye_armhf.deb &&
mv sdrpp_android/sdrpp.apk sdrpp_all/sdrpp.apk
2021-04-26 19:27:05 +02:00
2024-01-28 17:28:07 +01:00
- uses : actions/upload-artifact@v4
2021-04-26 19:27:05 +02:00
with :
name : sdrpp_all
2021-06-30 14:03:30 +02:00
path : sdrpp_all/
2021-09-20 19:02:53 +02:00
2022-11-22 08:34:59 +01:00
update_nightly_release :
2022-11-22 11:56:57 +01:00
needs : [ create_full_archive]
2022-11-22 08:34:59 +01:00
runs-on : ubuntu-latest
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
steps :
- name : Download All Builds
2024-01-28 17:28:07 +01:00
uses : actions/download-artifact@v4
2022-11-22 08:34:59 +01:00
- name : Update Nightly
2022-11-22 11:14:31 +01:00
run : gh release upload nightly sdrpp_all/* -R ${{github.repository}} --clobber
2022-11-22 08:34:59 +01:00
2021-09-20 19:02:53 +02:00
check_spelling :
runs-on : ubuntu-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2021-09-20 19:02:53 +02:00
- name : Install codespell
2021-09-20 19:03:48 +02:00
run : sudo apt update -y && sudo apt install -y codespell
2021-09-20 19:02:53 +02:00
- name : Running codespell
run : cd $GITHUB_WORKSPACE && codespell -q 2 || true
2021-12-19 22:11:44 +01:00
check_formatting :
runs-on : ubuntu-latest
steps :
2024-01-28 17:25:27 +01:00
- uses : actions/checkout@v4
2021-12-19 22:11:44 +01:00
- name : Run check_clang_format
2021-12-19 22:13:58 +01:00
run : cd $GITHUB_WORKSPACE && chmod +x ./check_clang_format.sh && ./check_clang_format.sh || true