forked from gqrx-sdr/gqrx
-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (93 loc) · 2.62 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: CI
on: [push, pull_request]
jobs:
ubuntu-build:
name: Linux CI
strategy:
matrix:
image:
- "ubuntu:18.04"
- "ubuntu:20.04"
- "ubuntu:22.04"
backend:
- Pulseaudio
- Portaudio
- Gr-audio
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
env:
DEBIAN_FRONTEND: noninteractive
steps:
- name: Install dependencies
run: |
apt-get update -qq
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.image != 'ubuntu:22.04'
run: |
apt-get install -y \
qt5-default \
libqt5svg5-dev
- name: Install Qt6
if: matrix.image == 'ubuntu:22.04'
run: |
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.image != 'ubuntu:18.04'
run: desktop-file-validate dk.gqrx.gqrx.desktop
- name: Validate appstream metadata
if: matrix.image != 'ubuntu:18.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 libsndfile 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