-
Notifications
You must be signed in to change notification settings - Fork 545
161 lines (158 loc) · 4.45 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: CI
on: [push, pull_request]
jobs:
ubuntu-build:
name: Linux CI
strategy:
matrix:
image:
- "ubuntu:20.04"
- "ubuntu:22.04"
- "ubuntu:24.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:20.04'
run: |
apt-get install -y \
qt5-default \
libqt5svg5-dev
- name: Install Qt6
if: matrix.image != 'ubuntu:20.04'
run: |
apt-get install -y \
qt6-base-dev \
libqt6svg6-dev \
libqt6svgwidgets6 \
libgl-dev
- name: Checkout code
uses: actions/checkout@v4
- 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
run: desktop-file-validate dk.gqrx.gqrx.desktop
- name: Validate appstream metadata
run: appstreamcli validate dk.gqrx.gqrx.appdata.xml
macos-build:
name: MacOS CI
strategy:
matrix:
os: [macos-13, macos-14]
backend: [Portaudio, Gr-audio]
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: |
# for https://github.com/actions/runner-images/issues/9272
sudo chown -R runner:admin /usr/local/
brew update
brew install airspy boost gnuradio hackrf libbladerf librtlsdr pybind11 six uhd qt@6 || true
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
sudo make install
- name: Checkout code
uses: actions/checkout@v4
- name: Configure
run: mkdir build && cd build && cmake -DOSX_AUDIO_BACKEND:STRING=${{ matrix.backend }} ..
- name: Compile
working-directory: build
run: make -j4
windows-build:
runs-on: windows-latest
name: Windows CI
defaults:
run:
shell: msys2 {0}
steps:
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
libusb:p
boost:p
qt6-base:p
qt6-svg:p
spdlog:p
volk:p
libsndfile:p
fftw:p
- name: Clone and build GNU Radio
working-directory: ${{ runner.temp }}
run: |
git clone --depth 1 https://github.com/gnuradio/gnuradio.git
cd gnuradio
cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=${RUNNER_TEMP}/msys64/mingw64 \
-DENABLE_DEFAULT=OFF \
-DENABLE_COMMON_PCH=ON \
-DENABLE_GNURADIO_RUNTIME=ON \
-DENABLE_GR_ANALOG=ON \
-DENABLE_GR_AUDIO=ON \
-DENABLE_GR_BLOCKS=ON \
-DENABLE_GR_DIGITAL=ON \
-DENABLE_GR_FFT=ON \
-DENABLE_GR_FILTER=ON \
-DENABLE_GR_NETWORK=ON
cmake --build build
cmake --install build
- name: Clone and build gr-osmosdr
working-directory: ${{ runner.temp }}
run: |
git clone https://gitea.osmocom.org/sdr/gr-osmosdr.git
cd gr-osmosdr
cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=${RUNNER_TEMP}/msys64/mingw64 \
-DENABLE_DEFAULT=OFF \
-DENABLE_FILE=ON
cmake --build build
cmake --install build
- name: Checkout code
uses: actions/checkout@v4
- name: Configure, compile & install
run: |
cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=C:/gqrx
cmake --build build
cmake --install build