2021-04-24 21:32:55 +02:00
|
|
|
name: Build Binaries
|
2020-12-23 19:36:12 +01:00
|
|
|
|
2021-04-24 19:26:22 +02:00
|
|
|
on: [push, pull_request]
|
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:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
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}}
|
|
|
|
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/"
|
|
|
|
|
2021-04-25 01:21:48 +02:00
|
|
|
- name: Download SDRPlay API
|
|
|
|
run: Invoke-WebRequest -Uri "https://drive.google.com/uc?id=12UHPMwkfa67A11QZDmpCT4iwHnyJHWuu" -OutFile ${{runner.workspace}}/SDRPlay.zip
|
|
|
|
|
|
|
|
- name: Install SDRPlay API
|
|
|
|
run: 7z x ${{runner.workspace}}/SDRPlay.zip -o"C:/Program Files/"
|
|
|
|
|
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
|
2022-11-12 02:19:53 +01:00
|
|
|
run: vcpkg install fftw3:x64-windows glfw3:x64-windows portaudio:x64-windows zstd: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
|
|
|
|
|
|
|
- name: Prepare CMake
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
2022-11-12 02:19:53 +01:00
|
|
|
run: cmake "$Env:GITHUB_WORKSPACE" "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.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
|
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
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
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
|
|
|
|
|
|
|
build_macos:
|
2022-07-28 17:33:55 +02:00
|
|
|
runs-on: macos-11
|
2021-04-29 15:32:59 +02:00
|
|
|
|
|
|
|
steps:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-29 15:32:59 +02:00
|
|
|
|
|
|
|
- name: Create Build Environment
|
|
|
|
run: cmake -E make_directory ${{runner.workspace}}/build
|
2021-08-27 14:07:01 +02:00
|
|
|
|
|
|
|
- name: Update brew repositories
|
|
|
|
run: brew update
|
2021-04-29 15:32:59 +02:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2022-11-12 02:19:53 +01:00
|
|
|
run: brew install libusb fftw glfw airspy airspyhf portaudio hackrf rtl-sdr libbladerf codec2 zstd && pip3 install mako
|
2021-11-16 19:55:03 +01:00
|
|
|
|
|
|
|
- name: Install volk
|
2021-11-18 08:37:55 +01:00
|
|
|
run: git clone --recursive https://github.com/gnuradio/volk && cd volk && mkdir build && cd build && cmake -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
|
|
|
|
run: wget https://www.sdrplay.com/software/SDRplay_RSP_API-MacOSX-3.07.3.pkg && sudo installer -pkg SDRplay_RSP_API-MacOSX-3.07.3.pkg -target /
|
|
|
|
|
2022-07-27 21:35:36 +02:00
|
|
|
- name: Install libiio
|
|
|
|
run: git clone https://github.com/analogdevicesinc/libiio && cd libiio && mkdir build && cd build && cmake -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
|
|
|
|
run: git clone https://github.com/analogdevicesinc/libad9361-iio && cd libad9361-iio && mkdir build && cd build && cmake -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
|
|
|
|
run: git clone https://github.com/myriadrf/LimeSuite && cd LimeSuite && mkdir builddir && cd builddir && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
|
|
|
|
|
2021-04-29 15:32:59 +02:00
|
|
|
- name: Prepare CMake
|
2021-04-29 15:51:32 +02:00
|
|
|
working-directory: ${{runner.workspace}}/build
|
2022-11-12 02:19:53 +01:00
|
|
|
run: cmake $GITHUB_WORKSPACE -DOPT_BUILD_PLUTOSDR_SOURCE=ON -DOPT_BUILD_SOAPY_SOURCE=OFF -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 -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
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
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
|
2021-04-26 04:59:37 +02:00
|
|
|
|
2021-04-26 05:04:20 +02:00
|
|
|
build_debian_buster:
|
2021-04-26 04:59:37 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
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_buster && 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
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-04-26 04:59:37 +02:00
|
|
|
with:
|
2021-04-26 05:04:20 +02:00
|
|
|
name: sdrpp_debian_buster_amd64
|
2021-04-26 04:59:37 +02:00
|
|
|
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:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
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
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
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
|
|
|
|
|
2021-04-26 17:41:03 +02:00
|
|
|
build_debian_sid:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-26 17:41:03 +02:00
|
|
|
|
|
|
|
- name: Create Docker Image
|
|
|
|
run: cd $GITHUB_WORKSPACE/docker_builds/debian_sid && 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 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
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-04-26 17:41:03 +02:00
|
|
|
with:
|
|
|
|
name: sdrpp_debian_sid_amd64
|
|
|
|
path: ${{runner.workspace}}/sdrpp_debian_amd64.deb
|
|
|
|
|
2022-09-03 20:13:14 +02:00
|
|
|
# build_ubuntu_bionic:
|
|
|
|
# runs-on: ubuntu-latest
|
2021-08-24 19:23:08 +02:00
|
|
|
|
2022-09-03 20:13:14 +02:00
|
|
|
# steps:
|
2022-11-21 22:37:25 +01:00
|
|
|
# - uses: actions/checkout@v3
|
2021-08-24 19:23:08 +02:00
|
|
|
|
2022-09-03 20:13:14 +02:00
|
|
|
# - name: Create Docker Image
|
|
|
|
# run: cd $GITHUB_WORKSPACE/docker_builds/ubuntu_bionic && docker build . --tag sdrpp_build
|
2021-08-24 19:23:08 +02:00
|
|
|
|
2022-09-03 20:13:14 +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
|
|
|
|
2022-09-03 20:13:14 +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
|
|
|
|
2022-09-03 20:13:14 +02:00
|
|
|
# - name: Save Deb Archive
|
2022-11-21 22:37:25 +01:00
|
|
|
# uses: actions/upload-artifact@v3
|
2022-09-03 20:13:14 +02:00
|
|
|
# with:
|
|
|
|
# name: sdrpp_ubuntu_bionic_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:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
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
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
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:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
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
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
2022-01-29 14:47:28 +01:00
|
|
|
with:
|
|
|
|
name: sdrpp_ubuntu_jammy_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:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
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
|
2022-10-23 18:05:10 +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
|
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
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
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:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
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
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
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:
|
2022-09-03 20:13:14 +02:00
|
|
|
needs: ['build_windows', 'build_macos', 'build_debian_buster', 'build_debian_bullseye', 'build_debian_sid', 'build_ubuntu_focal', 'build_ubuntu_jammy', 'build_raspios_bullseye_armhf', 'build_android']
|
2021-04-26 19:27:05 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Download All Builds
|
2022-11-21 22:37:25 +01:00
|
|
|
uses: actions/download-artifact@v3
|
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/ &&
|
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 &&
|
|
|
|
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 &&
|
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
|
|
|
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/upload-artifact@v3
|
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
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
|
|
|
- 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:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
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:
|
2022-11-21 22:37:25 +01:00
|
|
|
- uses: actions/checkout@v3
|
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
|