forked from bpftrace/bpftrace
-
Notifications
You must be signed in to change notification settings - Fork 1
117 lines (113 loc) · 3.63 KB
/
Copy pathci.yml
File metadata and controls
117 lines (113 loc) · 3.63 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: CI
on:
push:
branches: [ master, release/* ]
pull_request:
paths-ignore:
- "man/**"
- "docs/**"
- "**/*.md"
# Cancel previous run if a new one is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
clang-format:
runs-on: ubuntu-latest
# For flakehub cache
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: DeterminateSystems/nix-installer-action@v17
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@v2
- name: clang-format
run: nix develop --command git clang-format --diff origin/master --extensions cpp,h
build_test:
runs-on: ubuntu-latest
# For flakehub cache
permissions:
id-token: write
contents: read
continue-on-error: true
strategy:
matrix:
env:
- NAME: LLVM 18
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm18
TOOLS_TEST_DISABLE: runqlen.bt
- NAME: LLVM 19
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm19
TOOLS_TEST_DISABLE: runqlen.bt
- NAME: LLVM 20
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm20
TOOLS_TEST_DISABLE: runqlen.bt
- NAME: LLVM 21
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm21
TOOLS_TEST_DISABLE: runqlen.bt
- NAME: LLVM 22 Release
CMAKE_BUILD_TYPE: Release
NIX_TARGET: .#bpftrace-llvm22
TOOLS_TEST_DISABLE: runqlen.bt
- NAME: LLVM 22 Debug
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm22
TOOLS_TEST_DISABLE: runqlen.bt
- NAME: LLVM 22 Clang Debug
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm22
CC: clang
CXX: clang++
TOOLS_TEST_DISABLE: runqlen.bt
- NAME: LLVM 22 + sanitizers
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm22
BUILD_ASAN: 1
BUILD_UBSAN: 1
TOOLS_TEST_DISABLE: runqlen.bt
RUNTIME_TESTS_FILTER: "-basic.it lists fentry params:-btf.user_supplied_c_def_using_btf:-strcontains.path:-list probes by pid$"
- NAME: Fuzzing
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-fuzz
CC: afl-clang-fast
CXX: afl-clang-fast++
- NAME: Latest kernel (LLVM 22 Debug)
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm22
NIX_TARGET_KERNEL: .#kernel-6_14
TOOLS_TEST_DISABLE: runqlen.bt # Need host 6.14 kernel
# These tests either causes soft lockups in the VM or timeout consistently
RUNTIME_TESTS_FILTER: "-basic.parallel map access:-strcontains.path"
- NAME: AOT (LLVM 22 Debug)
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm22
RUN_TESTS: 0
RUN_AOT_TESTS: 1
AOT_ALLOWLIST_FILE: .github/include/aot_allow.txt
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: DeterminateSystems/nix-installer-action@v17
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@v2
- uses: ./.github/actions/configure_kvm
- name: Load kernel modules
# nf_tables and xfs are necessary for testing kernel modules BTF support
run: |
sudo modprobe nf_tables
sudo modprobe xfs
- name: Build and test
env: ${{matrix.env}}
run: ./.github/include/ci.py