update readme #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Module | |
on: push | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Debug | |
jobs: | |
build_linux_latest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Repo checkout | |
uses: actions/checkout@v4 | |
- name: Get SDR++ nightly source | |
run: 'wget https://github.com/AlexandreRouma/SDRPlusPlus/archive/refs/tags/nightly.tar.gz && pwd && ls -lah' | |
- name: Get SDR++ nightly lib | |
uses: dsaltares/fetch-gh-release-asset@master | |
with: | |
repo: 'AlexandreRouma/SDRPlusPlus' | |
version: 'tags/nightly' | |
file: 'sdrpp_debian_sid_amd64.deb' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Unpack SDR++ source and core lib | |
run: 'mkdir sdrpp_lib && tar -zxvf nightly.tar.gz -C sdrpp_lib && dpkg-deb -xv sdrpp_debian_sid_amd64.deb ./sdrpp_lib && cp ./.github/workflows/sdrpp_module_hack.cmake ./ && pwd && ls -lah && ls -lah sdrpp_lib' | |
- name: Install dependencies | |
run: 'sudo apt-get update && sudo apt-get install libfftw3-dev libglfw3-dev libvolk2-dev libzstd-dev libnng-dev' | |
- name: Cmake | |
run: 'mkdir build && cd build && ls -lah .. && cmake .. -DSDRPP_CORE_ROOT="$GITHUB_WORKSPACE/sdrpp_lib/SDRPlusPlus-nightly/core" -DSDRPP_LIB_ROOT="$GITHUB_WORKSPACE/sdrpp_lib/usr/lib" -DSDRPP_MODULE_CMAKE="$GITHUB_WORKSPACE/sdrpp_module_hack.cmake"' | |
- name: Make | |
run: 'cd build && make -j4 && ldd dvbs_demodulator.so' | |
- name: Upload library | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dvbs_demodulator | |
path: ./build/dvbs_demodulator.so |