Commit 32374cb 1 parent df50ed5 commit 32374cb Copy full SHA for 32374cb
File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : net_manager
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " *"
7
+ paths :
8
+ - ' space_mac/**'
9
+ - ' .github/workflows/net_manager.yml'
10
+ pull_request :
11
+ branches :
12
+ - " *"
13
+ paths :
14
+ - ' space_mac/**'
15
+ - ' .github/workflows/net_manager.yml'
16
+
17
+ permissions :
18
+ contents : write
19
+
20
+ jobs :
21
+ build-and-run :
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - name : Check out repository code
25
+ uses : actions/checkout@v3
26
+ with :
27
+ submodules : recursive
28
+
29
+ - name : Install dependencies and Init Env
30
+ run : |
31
+ sudo apt update
32
+ sudo apt install clang llvm libelf-dev libpcap-dev build-essential linux-headers-$(uname -r) linux-tools-common linux-tools-generic libc6-dev-i386 libxdp-dev xdp-tools
33
+ git submodule update --init --recursive
34
+
35
+ - name : Configure
36
+ run : ./configure
37
+
38
+ - name : make
39
+ run : make
40
+
41
+ - name : Build and Run
42
+ run : |
43
+ cd space_mac/xacl_core/
44
+ # run
45
+ sudo ./xdp_loader -d docker0 --progname xdp_redirect_func -S
46
+ sudo ./xacladm load docker0 ./conf.d/mac_load.conf
47
+ sudo ./xdp_stats -d docker0
You can’t perform that action at this time.
0 commit comments