This commit is contained in:
Ryzerth 2020-12-23 21:19:02 +01:00
parent e4c5b2dbd1
commit 7577253dbf
2 changed files with 26 additions and 26 deletions

View File

@ -23,26 +23,26 @@ jobs:
- name: Create Build Environment - name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory # 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 # 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 - name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable # Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system # access regardless of the host operating system
shell: bash 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 # 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. # 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 # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build - name: Build
working-directory: $GITHUB_WORKSPACE/build working-directory: ${{runner.workspace}}/build
shell: bash shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>" # Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE run: cmake --build . --config $BUILD_TYPE
- name: Create debian package - name: Create debian package
working-directory: $GITHUB_WORKSPACE working-directory: ${{runner.workspace}}
shell: bash shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>" # Execute the build. You can specify a specific target with "--target <NAME>"
run: sh make_debian_package.sh run: sh make_debian_package.sh ${{runner.workspace}}/build

View File

@ -3,39 +3,39 @@
# Create directory structure # Create directory structure
echo Create directory structure echo Create directory structure
mkdir sdrpp mkdir sdrpp
mkdir sdrpp/DEBIAN mkdir sdrpp_deb/DEBIAN
mkdir sdrpp/usr mkdir sdrpp_deb/usr
mkdir sdrpp/usr/bin mkdir sdrpp_deb/usr/bin
mkdir sdrpp/usr/share mkdir sdrpp_deb/usr/share
mkdir sdrpp/usr/lib mkdir sdrpp_deb/usr/lib
mkdir sdrpp/usr/lib/sdrpp mkdir sdrpp_deb/usr/lib/sdrpp
mkdir sdrpp/usr/lib/sdrpp/plugins mkdir sdrpp_deb/usr/lib/sdrpp_deb/plugins
# Create package info # Create package info
echo Create package info echo Create package info
echo Package: sdrpp >> sdrpp/DEBIAN/control echo Package: sdrpp >> sdrpp_deb/DEBIAN/control
echo Version: 0.2.5 >> sdrpp/DEBIAN/control echo Version: 0.2.5 >> sdrpp_deb/DEBIAN/control
echo Maintainer: Ryzerth >> sdrpp/DEBIAN/control echo Maintainer: Ryzerth >> sdrpp_deb/DEBIAN/control
echo Architecture: all >> sdrpp/DEBIAN/control echo Architecture: all >> sdrpp_deb/DEBIAN/control
echo Description: Bloat-free SDR receiver software >> sdrpp/DEBIAN/control echo Description: Bloat-free SDR receiver software >> sdrpp_deb/DEBIAN/control
# Copy core files # Copy core files
echo Copy core files echo Copy core files
cp build/sdrpp sdrpp/usr/bin/ cp $1/sdrpp sdrpp_deb/usr/bin/
cp build/libsdrpp_core.so sdrpp/usr/lib/ cp $1/libsdrpp_core.so sdrpp_deb/usr/lib/
# Copy reasources # Copy reasources
echo Copy reasources echo Copy reasources
cp -r root/res/* sdrpp/usr/bin/ cp -r root/res/* sdrpp_deb/usr/bin/
# Copy module # Copy module
echo Copy modules echo Copy modules
cp build/radio/radio.so sdrpp/usr/lib/sdrpp/plugins/ cp $1/radio/radio.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/
cp build/recorder/recorder.so sdrpp/usr/lib/sdrpp/plugins/ cp $1/recorder/recorder.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/
cp build/airspyhf_source/airspyhf_source.so sdrpp/usr/lib/sdrpp/plugins/ cp $1/airspyhf_source/airspyhf_source.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/
cp build/rtl_tcp_source/rtl_tcp_source.so sdrpp/usr/lib/sdrpp/plugins/ cp $1/rtl_tcp_source/rtl_tcp_source.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/
cp build/soapy_source/soapy_source.so sdrpp/usr/lib/sdrpp/plugins/ cp $1/soapy_source/soapy_source.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/
cp build/audio_sink/audio_sink.so sdrpp/usr/lib/sdrpp/plugins/ cp $1/audio_sink/audio_sink.so sdrpp_deb/usr/lib/sdrpp_deb/plugins/
# Create package # Create package
echo Create package echo Create package