Set up GitHub Actions

This commit is contained in:
Clayton Smith 2020-11-21 08:27:25 -05:00
parent 56b9633692
commit 40cf6ed2e2

35
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: CI
on: push
jobs:
ubuntu-build:
name: Ubuntu CI
strategy:
matrix:
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
backend: [Pulseaudio, Portaudio, Gr-audio]
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: sudo apt-get install -y cmake qt5-default libqt5svg5-dev libboost-dev libpulse-dev portaudio19-dev liblog4cpp5-dev gnuradio-dev gr-osmosdr gr-fcdproplus liborc-0.4-dev
- name: Checkout code
uses: actions/checkout@v2
- name: Configure
run: mkdir build && cd build && cmake -DLINUX_AUDIO_BACKEND:STRING=${{ matrix.backend }} ..
- name: Compile
working-directory: build
run: make
macos-build:
name: MacOS CI
runs-on: macos-10.15
steps:
- name: Install dependencies
run: brew install gr-osmosdr
- name: Checkout code
uses: actions/checkout@v2
- name: Configure
run: mkdir build && cd build && cmake ..
- name: Compile
working-directory: build
run: make