From 7577253dbfd06d7fc1faa8833e24603690fcd7c7 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Wed, 23 Dec 2020 21:19:02 +0100 Subject: [PATCH] fixed CI --- .github/workflows/cmake.yml | 10 ++++----- make_debian_package.sh | 42 ++++++++++++++++++------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 5b57dda1..46cedb8f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -23,26 +23,26 @@ jobs: - name: Create Build Environment # Some projects don't allow in-source building, so create a separate build directory # We'll use this as our working directory for all subsequent commands - run: cmake -E make_directory $GITHUB_WORKSPACE/build + run: cmake -E make_directory ${{runner.workspace}}/build - name: Configure CMake # Use a bash shell so we can use the same syntax for environment variable # access regardless of the host operating system shell: bash - working-directory: $GITHUB_WORKSPACE/build + working-directory: ${{runner.workspace}}/build # Note the current convention is to use the -S and -B options here to specify source # and build directories, but this is only available with CMake 3.13 and higher. # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - name: Build - working-directory: $GITHUB_WORKSPACE/build + working-directory: ${{runner.workspace}}/build shell: bash # Execute the build. You can specify a specific target with "--target " run: cmake --build . --config $BUILD_TYPE - name: Create debian package - working-directory: $GITHUB_WORKSPACE + working-directory: ${{runner.workspace}} shell: bash # Execute the build. You can specify a specific target with "--target " - run: sh make_debian_package.sh + run: sh make_debian_package.sh ${{runner.workspace}}/build diff --git a/make_debian_package.sh b/make_debian_package.sh index da9c7829..dc7d2c27 100644 --- a/make_debian_package.sh +++ b/make_debian_package.sh @@ -3,39 +3,39 @@ # Create directory structure echo Create directory structure mkdir sdrpp -mkdir sdrpp/DEBIAN -mkdir sdrpp/usr -mkdir sdrpp/usr/bin -mkdir sdrpp/usr/share -mkdir sdrpp/usr/lib -mkdir sdrpp/usr/lib/sdrpp -mkdir sdrpp/usr/lib/sdrpp/plugins +mkdir sdrpp_deb/DEBIAN +mkdir sdrpp_deb/usr +mkdir sdrpp_deb/usr/bin +mkdir sdrpp_deb/usr/share +mkdir sdrpp_deb/usr/lib +mkdir sdrpp_deb/usr/lib/sdrpp +mkdir sdrpp_deb/usr/lib/sdrpp_deb/plugins # Create package info echo Create package info -echo Package: sdrpp >> sdrpp/DEBIAN/control -echo Version: 0.2.5 >> sdrpp/DEBIAN/control -echo Maintainer: Ryzerth >> sdrpp/DEBIAN/control -echo Architecture: all >> sdrpp/DEBIAN/control -echo Description: Bloat-free SDR receiver software >> sdrpp/DEBIAN/control +echo Package: sdrpp >> sdrpp_deb/DEBIAN/control +echo Version: 0.2.5 >> sdrpp_deb/DEBIAN/control +echo Maintainer: Ryzerth >> sdrpp_deb/DEBIAN/control +echo Architecture: all >> sdrpp_deb/DEBIAN/control +echo Description: Bloat-free SDR receiver software >> sdrpp_deb/DEBIAN/control # Copy core files echo Copy core files -cp build/sdrpp sdrpp/usr/bin/ -cp build/libsdrpp_core.so sdrpp/usr/lib/ +cp $1/sdrpp sdrpp_deb/usr/bin/ +cp $1/libsdrpp_core.so sdrpp_deb/usr/lib/ # Copy reasources echo Copy reasources -cp -r root/res/* sdrpp/usr/bin/ +cp -r root/res/* sdrpp_deb/usr/bin/ # Copy module echo Copy modules -cp build/radio/radio.so sdrpp/usr/lib/sdrpp/plugins/ -cp build/recorder/recorder.so sdrpp/usr/lib/sdrpp/plugins/ -cp build/airspyhf_source/airspyhf_source.so sdrpp/usr/lib/sdrpp/plugins/ -cp build/rtl_tcp_source/rtl_tcp_source.so sdrpp/usr/lib/sdrpp/plugins/ -cp build/soapy_source/soapy_source.so sdrpp/usr/lib/sdrpp/plugins/ -cp build/audio_sink/audio_sink.so sdrpp/usr/lib/sdrpp/plugins/ +cp $1/radio/radio.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/ +cp $1/recorder/recorder.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/ +cp $1/airspyhf_source/airspyhf_source.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/ +cp $1/rtl_tcp_source/rtl_tcp_source.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/ +cp $1/soapy_source/soapy_source.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/ +cp $1/audio_sink/audio_sink.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/ # Create package echo Create package