From 0b68f5c06d099b470c5a9ae576fa25d454fc5ef8 Mon Sep 17 00:00:00 2001 From: Florian Walpen Date: Sat, 8 Jan 2022 16:31:14 +0100 Subject: [PATCH] CI: Add FreeBSD builds through Cirrus CI. When the github application Cirrus CI (https://cirrus-ci.org/) is installed, this build description file adds FreeBSD build checks to changes and PRs in github. There are four build tasks currently, a minimal build and one with all options enabled on two different FreeBSD versions. --- .cirrus.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 00000000..5fe1fd3d --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,29 @@ +task: + freebsd_instance: + matrix: + - image_family: freebsd-12-3 + - image_family: freebsd-13-0 + + environment: + CFLAGS: -O2 -pipe -fPIC -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include + CPPFLAGS: -O2 -pipe -fPIC -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include + LDFLAGS: -lreadline -L/usr/local/lib -fstack-protector-strong + prepare_script: + - mkdir ${HOME}/install + + matrix: + - name: FreeBSD Minimal Build + dependencies_script: + - pkg install -y pkgconf python3 libsndfile libsamplerate libsysinfo readline expat + config_script: + - python3 ./waf configure --celt=no --sndfile=yes --samplerate=yes --alsa=no --classic --readline=yes --opus=no --example-tools=no --prefix ${HOME}/install + - name: FreeBSD All Options + dependencies_script: + - pkg install -y pkgconf python3 libsndfile libsamplerate libsysinfo readline alsa-lib dbus expat opus + config_script: + - python3 ./waf configure --celt=no --sndfile=yes --samplerate=yes --alsa=yes --dbus --classic --autostart=dbus --readline=yes --opus=yes --prefix ${HOME}/install + + build_script: + - python3 ./waf + install_script: + - python3 ./waf install