-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
63 lines (55 loc) · 3.14 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
task:
# only test the main branch and pull requests
only_if: $CIRRUS_BRANCH == "main" || $CIRRUS_PR != ""
matrix:
- name: FreeBSD
freebsd_instance:
image_family: freebsd-15-0-snap
environment:
CFLAGS: -Werror -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=undefined
UBSAN_OPTIONS: print_stacktrace=1
install_script: python3 --version && pkg upgrade -y && pkg install -y cmake py311-pytest vim
test_script: uname -sr && env cmake -B build -S . && cmake --build build && cmake --build build --target check && cmake --install build
- name: Linux
container:
image: gcc:14.1
environment:
DEBIAN_FRONTEND: noninteractive
CFLAGS: -Werror -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=undefined -fuse-ld=gold
LC_ALL: C.UTF-8
UBSAN_OPTIONS: print_stacktrace=1
install_script: apt-get update && apt-get install --no-install-recommends -y cmake python3-pytest vim xxd
test_script: uname -sr && env && cmake -B build -S . && cmake --build build && cmake --build build --target check && cmake --install build
- name: Linux, shared libraries
container:
image: gcc:14.1
environment:
DEBIAN_FRONTEND: noninteractive
CFLAGS: -Werror -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=undefined -fuse-ld=gold
LC_ALL: C.UTF-8
UBSAN_OPTIONS: print_stacktrace=1
install_script: apt-get update && apt-get install --no-install-recommends -y cmake python3-pytest vim xxd
test_script: uname -sr && env && cmake -DBUILD_SHARED_LIBS=ON -B build -S . && cmake --build build && cmake --build build --target check && cmake --install build
- name: Linux, release build
container:
image: gcc:14.1
environment:
DEBIAN_FRONTEND: noninteractive
CFLAGS: -Werror -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=undefined -fuse-ld=gold
LC_ALL: C.UTF-8
UBSAN_OPTIONS: print_stacktrace=1
install_script: apt-get update && apt-get install --no-install-recommends -y cmake python3-pytest vim xxd
test_script: uname -sr && env && cmake -DCMAKE_BUILD_TYPE=Release -B build -S . && cmake --build build && cmake --build build --target check && cmake --install build
- name: macOS
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-base:latest
environment:
CFLAGS: -Werror -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=undefined
UBSAN_OPTIONS: print_stacktrace=1
install_script: brew update && brew install python3 && python3 -m pip install --break-system-packages pytest
test_script: uname -sr && env && cmake -B build -S . && cmake --build build && cmake --build build --target check && sudo cmake --install build
- name: clang-format
container:
image: silkeh/clang:15
install_script: apt-get update && apt-get install --no-install-recommends -y git
test_script: git ls-files -z '**/*.c' '**/*.h' | xargs -0 -- clang-format --dry-run --style=file --Werror