# $FreeBSD$

freebsd_instance:
  image: freebsd-13-2-release-amd64

env:
  CIRRUS_CLONE_DEPTH: 1
  CIRRUS_CLONE_SUBMODULES: true

task:
  install_script:
  - pkg install -y
    cmake ninja binutils pkgconf curl
    ffmpeg qt6-base qt6-svg jansson libsysinfo e2fsprogs-libuuid pulseaudio
    alsa-lib pipewire v4l_compat libpci librist srt nlohmann-json uthash
    qr-code-generator websocketpp asio vlc swig luajit jackit sndio fdk-aac
  script:
  - cmake
    -S $(pwd)
    -B build
    -G Ninja
    -DOBS_CMAKE_VERSION=3.0
    -DENABLE_JACK:BOOL=ON
    -DENABLE_SNDIO:BOOL=ON
    -DENABLE_LIBFDK:BOOL=ON
    -DENABLE_WEBRTC:BOOL=OFF
  - cmake
    --build build
    --config RelWithDebInfo
