Skip to content

Commit 43b80ef

Browse files
committed
Fix tests
1 parent 146a48b commit 43b80ef

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,17 @@ jobs:
2121
with:
2222
go-version: '~1.25'
2323

24+
# `probes/probe_bpfel.go` (bpf2go-generated) has `//go:embed
25+
# probe_bpfel.o`, so the package fails to compile without the .o on
26+
# disk. Regenerate it before tests; clang ships on ubuntu-latest, we
27+
# just need the libbpf + kernel UAPI headers.
28+
- name: Install BPF build dependencies
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y --no-install-recommends libbpf-dev linux-libc-dev
32+
33+
- name: Generate probes BPF object
34+
run: make probes-bpf
35+
2436
- name: Run Tests
2537
run: go test -race -v ./...

0 commit comments

Comments
 (0)