Add build action

This commit is contained in:
Christian W. Zuckschwerdt 2020-09-19 16:42:52 +02:00
parent 2f51f33423
commit 04cdf79778

26
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,26 @@
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: build project
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run CMake+Ninja
uses: lukka/run-cmake@v3
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
buildDirectory: '${{runner.workspace}}/b/ninja'
cmakeAppendedArgs: '-GNinja -DENABLE_RTLSDR=OFF -DENABLE_SOAPYSDR=OFF'
- name: Run CMake+UnixMakefiles
uses: lukka/run-cmake@v3
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
buildDirectory: '${{runner.workspace}}/b/unixmakefiles'
cmakeAppendedArgs: '-G "Unix Makefiles" -DENABLE_RTLSDR=OFF -DENABLE_SOAPYSDR=OFF'
- name: Autotools autoreconf
run: autoreconf --install
- name: Autotools configure
run: ./configure
- name: Autotools make
run: make