-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.09 KB
/
ci.yml
File metadata and controls
49 lines (38 loc) · 1.09 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build-and-test:
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang llvm libelf-dev libzstd-dev
- name: Build bpftool from source
run: |
git clone --depth 1 --recurse-submodules https://github.com/libbpf/bpftool.git
make -C bpftool/src
sudo install bpftool/src/bpftool /usr/local/bin/
- name: Build libbpf
run: make build-libbpf
- name: Generate vmlinux.h
run: make vmlinux
- name: Build eBPF program
run: make ebpf
- name: Run tests
run: make test
- name: Build binary
run: make go-build