CI split src&lib #2
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: | ||
install-headers: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get SDR++ nightly source | ||
uses: dsaltares/fetch-gh-release-asset@master | ||
with: | ||
repo: 'AlexandreRouma/SDRPlusPlus' | ||
version: 'tags/nightly' | ||
file: 'nightly.zip' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- 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.zip -C sdrpp_lib && dpkg-deb -xv sdrpp_debian_sid_amd64.deb ./sdrpp_lib && cp ./.github/workflows/sdrpp_module_hack.cmake ./ | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: install-headers | ||
- name: Cmake | ||
run: mkdir build && cd build && cmake .. -DSDRPP_MODULE_CMAKE="../sdrpp_module_hack.cmake" | ||
- name: Make | ||
run: make -j4 |