-
Notifications
You must be signed in to change notification settings - Fork 11
/
.cirrus.yml
42 lines (37 loc) · 1.12 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
42
# Copyright (c) 2023-2024 Chilledheart
freebsd_task:
skip: "changesIncludeOnly(
'.circleci/**',
'.github/**'
)"
name: FreeBSD
matrix:
- name: FreeBSD 14.1
freebsd_instance:
image_family: freebsd-14-1
env:
configure: -DCMAKE_BUILD_TYPE=Release
env:
CIRRUS_CLONE_DEPTH: 10
pkginstall_script:
- pkg update -f
- pkg install -y cmake ninja pkgconf perl5 go llvm17-lite git ca_root_nss
submodules_script:
# unshallow must come first otherwise submodule may be get unshallowed
- git fetch --tags --unshallow
- git submodule update --init --depth 1
configure_script:
- export PATH="/usr/local/llvm17/bin:$PATH"
- export CC=clang
- export CXX=clang++
- mkdir build
- cd build
- cmake -G Ninja -DBUILD_TESTS=on -DUSE_LIBCXX=on -DUSE_ZLIB=on -DUSE_JSONCPP=on -DUSE_CARES=on ${configure} ..
compile_script:
- ninja -C build yass_cli yass_server yass_test
test_script:
# blackhole?
- sysctl net.inet.tcp.blackhole
# make sure we don't run blackhole != 0
- sudo sysctl net.inet.tcp.blackhole=0
- ninja -C build check