File tree Expand file tree Collapse file tree 1 file changed +35
-1
lines changed Expand file tree Collapse file tree 1 file changed +35
-1
lines changed Original file line number Diff line number Diff line change 38
38
sudo apt-get install -y ./rex-dkms*_all.deb \
39
39
|| ( find /var/lib/dkms -name make.log -exec cat '{}' \; && false )
40
40
41
+ # libbpf 1.3+ is requred for functional tests
42
+ build_libbpf :
43
+ runs-on : ubuntu-22.04
44
+ steps :
45
+ - name : install dependencies
46
+ run : |
47
+ sudo apt update
48
+ sudo apt install dpkg-dev debhelper
49
+
50
+ - name : build package
51
+ run : |
52
+ git clone https://github.com/sudipm-mukherjee/libbpf
53
+ cd libbpf
54
+ dpkg-buildpackage -uc -us
55
+ mv ../*.deb .
56
+
57
+ - name : upload package artifacts
58
+ uses : actions/upload-artifact@v4
59
+ with :
60
+ name : libbpf
61
+ path : *.deb
62
+ if-no-files-found : error
63
+
41
64
build_library :
42
65
runs-on : ubuntu-22.04
66
+ needs : build_libbpf
43
67
steps :
44
68
- uses : actions/checkout@v4
45
69
51
75
- name : install dependencies
52
76
run : |
53
77
sudo apt update
54
- sudo apt install -y libpcap-dev libbpf-dev cmake dpkg-dev debhelper libboost-dev po-debconf ragel
78
+ sudo apt install -y libpcap-dev cmake dpkg-dev debhelper libboost-dev po-debconf ragel
79
+
80
+ - uses : actions/download-artifact@v4
81
+ with :
82
+ name : libbpf
83
+ path : libbpf
84
+
85
+ - name : install libbpf
86
+ run : |
87
+ cd libbpf
88
+ sudo dpkg -i ./libbpf-dev* ./libbpf1_*
55
89
56
90
- run : |
57
91
echo "nproc=$(nproc)" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments