gqrx/.github/workflows/ci.yml
Clayton Smith 0ffd48d8f4 Remove ubuntu-18.04 and macos-10.15 from CI
These images are already deprecated and subject to rolling blackouts.
2022-08-11 21:22:21 -04:00

63 lines
2.1 KiB
YAML

name: CI
on: [push, pull_request]
jobs:
ubuntu-build:
name: Ubuntu CI
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
backend: [Pulseaudio, Portaudio, Gr-audio]
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: sudo apt-get update -qq && sudo apt-get install -y cmake libboost-dev libpulse-dev portaudio19-dev libsndfile-dev liblog4cpp5-dev gnuradio-dev gr-osmosdr liborc-0.4-dev appstream desktop-file-utils
- name: Install Qt5
if: matrix.os != 'ubuntu-22.04'
run: sudo apt-get install -y qt5-default libqt5svg5-dev
- name: Install Qt6
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get install -y qt6-base-dev libqt6svg6-dev libqt6svgwidgets6 libgl-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 -j4
- name: Validate desktop entry
if: matrix.os == 'ubuntu-20.04'
run: desktop-file-validate dk.gqrx.gqrx.desktop
- name: Validate appstream metadata
if: matrix.os == 'ubuntu-20.04'
run: appstreamcli validate dk.gqrx.gqrx.appdata.xml
macos-build:
name: MacOS CI
strategy:
matrix:
os: [macos-11, macos-12]
backend: [Portaudio, Gr-audio]
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: |
brew update
brew install airspy boost gnuradio hackrf libbladerf librtlsdr pybind11 uhd qt@6
cd /tmp
git clone https://gitea.osmocom.org/sdr/gr-osmosdr.git
cd gr-osmosdr
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS=-Wno-register ..
LIBRARY_PATH=/usr/local/opt/icu4c/lib make -j4
make install
- name: Checkout code
uses: actions/checkout@v2
- name: Configure
run: mkdir build && cd build && cmake -DOSX_AUDIO_BACKEND:STRING=${{ matrix.backend }} ..
- name: Compile
working-directory: build
run: make -j4