-
Notifications
You must be signed in to change notification settings - Fork 173
49 lines (39 loc) · 1.24 KB
/
ebpf_net_manager.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
41
42
43
44
45
46
47
48
49
name: net_manager
on:
push:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Network_Subsystem/net_manager/**'
- '.github/workflows/net_manager.yml'
pull_request:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Network_Subsystem/net_manager/**'
- '.github/workflows/net_manager.yml'
permissions:
contents: write
jobs:
net_manager_build-and-run:
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install dependencies and Init Env
run: |
sudo apt update
sudo apt install clang llvm libelf-dev libpcap-dev build-essential libc6-dev-i386 linux-headers-$(uname -r) linux-tools-common linux-tools-generic
sudo git submodule update --init --recursive
- name: Build and Run
run: |
cd eBPF_Supermarket/Network_Subsystem/net_manager/
sudo ./configure
sudo make
ifconfig
# run
cd testenv
sudo ./testenv.sh setup --name veth-basic02
cd ..
sudo timeout -s SIGINT 5 ./netmanager -d eth0 -S || if [[ $? != 124 && $? != 0 ]];then exit $?;fi
sudo ./netmanager -d eth0 -S