mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-22 16:07:49 +08:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
# 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
|