-
Notifications
You must be signed in to change notification settings - Fork 41
83 lines (80 loc) · 2.23 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
name: CI
on: [push, pull_request]
jobs:
ubuntu-build:
name: Ubuntu CI
strategy:
matrix:
makefile: [Makefile.linux, Makefile.debug]
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y \
libusb-dev \
libusb-1.0-0-dev \
libncurses5-dev \
libfftw3-dev \
libbsd-dev \
libhackrf-dev \
libopus-dev \
libairspy-dev \
libairspyhf-dev \
librtlsdr-dev \
libiniparser-dev \
libavahi-client-dev \
portaudio19-dev
- name: Checkout code
uses: actions/checkout@v4
- name: Setup
run: ln -s ${{ matrix.makefile }} Makefile
- name: Compile
run: make
- name: Install
run: sudo make install
macos-build:
name: MacOS CI
runs-on: macos-latest
steps:
- name: Install dependencies
run: |
brew update
brew install \
glib \
libusb \
ncurses \
fftw \
hackrf \
opus \
airspy \
airspyhf \
librtlsdr \
iniparser \
portaudio \
dbus
cd /tmp
curl https://avahi.org/download/avahi-0.8.tar.gz > avahi-0.8.tar.gz
tar xvpf avahi-0.8.tar.gz
cd avahi-0.8
sed -i '' 's/"\/run"/"\/var\/run"/' configure
CFLAGS="-D__APPLE_USE_RFC_2292 -I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib" ./configure \
--with-distro=darwin \
--disable-autoipd \
--disable-gtk3 \
--disable-libdaemon \
--disable-mono \
--disable-python \
--disable-qt5 \
--disable-silent-rules \
--disable-tests
make -j4
sudo make install
- name: Checkout code
uses: actions/checkout@v4
- name: Setup
run: ln -s Makefile.osx Makefile
- name: Compile
run: C_INCLUDE_PATH="$(brew --prefix)/include" LIBRARY_PATH="$(brew --prefix)/lib" make
- name: Install
run: sudo make install