-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.4 KB
/
test.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
name: ci_test
on:
push:
branches: [ "**"]
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
bpf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build static
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: build_static
uses: arloor/rust_musl_action@latest
with:
use_musl: false
extra_deps: cmake zlib1g-dev libelf-dev clang pkg-config make
after_install: |
find /usr -name libelf.a
find /usr -name libz.a
export LIBBPF_SYS_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
echo -e "\e[31mLIBBPF_SYS_LIBRARY_PATH=$LIBBPF_SYS_LIBRARY_PATH\e[0m"
args: -p socket_filter -p cgroup_traffic --features static -v
apt_mirror: mirrors.mit.edu
rust_flags: -C target-feature=+crt-static
debug: false
- name: build vendored
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: build_vendored
uses: arloor/rust_musl_action@latest
with:
use_musl: false
extra_deps: cmake clang pkg-config make autoconf autopoint flex bison gawk
args: -p socket_filter -p cgroup_traffic --features vendored -v
apt_mirror: mirrors.mit.edu
rust_flags: -C target-feature=+crt-static
debug: false