-
Notifications
You must be signed in to change notification settings - Fork 14
/
.cirrus.yml
41 lines (36 loc) · 1.33 KB
/
.cirrus.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
# SPDX-FileCopyrightText: 2015-2024 Alexey Rochev
#
# SPDX-License-Identifier: CC0-1.0
build_freebsd_task:
freebsd_instance:
matrix:
- image_family: freebsd-13-4
- image_family: freebsd-14-2
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BASE_BRANCH == 'master' || $CIRRUS_BASE_BRANCH =~ 'feature/.*'
packages_cache:
folder: /var/cache/pkg
install_dependencies_script: |
set -e -o pipefail
sudo pkg update -f
sudo pkg install -y cmake ninja pkgconf libpsl libfmt qt6-base qt6-tools kf6-kwidgetsaddons kf6-kwindowsystem gettext-tools cxxopts
if [ "$(freebsd-version -u | cut -d . -f 1)" -eq 14 ]; then
sudo pkg install -y cpp-httplib
fi
cmake_build_script: |
set -e -o pipefail
echo 'Configuring CMake'
if [ "$(freebsd-version -u | cut -d . -f 1)" -eq 14 ]; then
httplib=system
else
httplib=none
fi
# Not enabling ASAN since it causes weird issues with tests that use openssl
cmake -S . --preset base -D TREMOTESF_QT6=ON -D TREMOTESF_WITH_HTTPLIB="$httplib"
echo 'Building Debug'
cmake --build --preset base-debug
echo 'Testing Debug'
ASAN_OPTIONS=detect_leaks=0 ctest --preset base-debug
echo 'Building Release'
cmake --build --preset base-release
echo 'Testing Release'
ASAN_OPTIONS=detect_leaks=0 ctest --preset base-release