From 2daaf00cb38ae83b192ae59cb37dd97c8c376cf5 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sun, 28 Nov 2021 03:17:08 +0100 Subject: [PATCH] Disabled raspios CI + added start of noise reduction code --- .github/workflows/build_all.yml | 35 +++++++++++----------- core/src/core.cpp | 2 +- docker_builds/raspios_bullseye/do_build.sh | 2 +- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 1093def1..cd690150 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -298,30 +298,31 @@ jobs: name: sdrpp_ubuntu_impish_amd64 path: ${{runner.workspace}}/sdrpp_debian_amd64.deb - build_raspios_bullseye: - runs-on: ubuntu-latest + # build_raspios_bullseye: + # runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + # steps: + # - uses: actions/checkout@v2 - - name: Create Docker Image - run: cd $GITHUB_WORKSPACE/docker_builds/raspios_bullseye && docker build . --tag sdrpp_build + # - name: Create Docker Image + # run: cd $GITHUB_WORKSPACE/docker_builds/raspios_bullseye && docker build . --tag sdrpp_build - - name: Run Container - run: docker run --privileged --name build -v $GITHUB_WORKSPACE:/root/SDRPlusPlus --env BUILD_NO="-$GITHUB_RUN_NUMBER" sdrpp_build /root/do_build.sh + # - name: Run Container + # run: docker run --privileged --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_raspios_arm32.deb ./ + # - name: Recover Deb Archive + # working-directory: ${{runner.workspace}} + # run: docker cp build:/root/SDRPlusPlus/sdrpp_raspios_arm32.deb ./ - - name: Save Deb Archive - uses: actions/upload-artifact@v2 - with: - name: sdrpp_raspios_bullseye_arm32 - path: ${{runner.workspace}}/sdrpp_raspios_arm32.deb + # - name: Save Deb Archive + # uses: actions/upload-artifact@v2 + # with: + # name: sdrpp_raspios_bullseye_arm32 + # path: ${{runner.workspace}}/sdrpp_raspios_arm32.deb create_full_archive: - needs: ['build_windows', 'build_macos', 'build_debian_buster', 'build_debian_bullseye', 'build_debian_sid', 'build_ubuntu_bionic', 'build_ubuntu_focal', 'build_ubuntu_groovy', 'build_ubuntu_hirsute', 'build_ubuntu_impish', 'build_raspios_bullseye'] + # needs: ['build_windows', 'build_macos', 'build_debian_buster', 'build_debian_bullseye', 'build_debian_sid', 'build_ubuntu_bionic', 'build_ubuntu_focal', 'build_ubuntu_groovy', 'build_ubuntu_hirsute', 'build_ubuntu_impish', 'build_raspios_bullseye'] + needs: ['build_windows', 'build_macos', 'build_debian_buster', 'build_debian_bullseye', 'build_debian_sid', 'build_ubuntu_bionic', 'build_ubuntu_focal', 'build_ubuntu_groovy', 'build_ubuntu_hirsute', 'build_ubuntu_impish'] runs-on: ubuntu-latest steps: diff --git a/core/src/core.cpp b/core/src/core.cpp index adf8f018..a07e3d9d 100644 --- a/core/src/core.cpp +++ b/core/src/core.cpp @@ -119,7 +119,7 @@ int sdrpp_main(int argc, char *argv[]) { // Check root directory if (!std::filesystem::exists(options::opts.root)) { spdlog::warn("Root directory {0} does not exist, creating it", options::opts.root); - if (!std::filesystem::create_directory(options::opts.root)) { + if (!std::filesystem::create_directories(options::opts.root)) { spdlog::error("Could not create root directory {0}", options::opts.root); return -1; } diff --git a/docker_builds/raspios_bullseye/do_build.sh b/docker_builds/raspios_bullseye/do_build.sh index 6c4d6644..c662cba1 100644 --- a/docker_builds/raspios_bullseye/do_build.sh +++ b/docker_builds/raspios_bullseye/do_build.sh @@ -28,7 +28,7 @@ echo ' libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsd echo ' libcodec2-dev' >> /mnt/root/prepare.sh # Run prepare.sh script -chroot /mnt /bin/qemu-arm-static '/bin/bash /root/prepare.sh' +chroot /mnt /bin/qemu-arm-static /bin/bash /root/prepare.sh # Setup environment variables export PKG_CONFIG_PATH=''