Skip to content

track local fix

track local fix #1507

Workflow file for this run

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
mkdir -p "$(brew --prefix)/include/iniparser"
ln -s "$(brew --prefix)/include/iniparser.h" "$(brew --prefix)/include/iniparser/iniparser.h"
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