-
Notifications
You must be signed in to change notification settings - Fork 173
64 lines (56 loc) · 1.85 KB
/
system_filesystem.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Filesystem Subsystem
on:
push:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Filesystem_Subsystem/**'
- '.github/workflows/system_filesystem.yml'
pull_request:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Filesystem_Subsystem/**'
- '.github/workflows/system_filesystem.yml'
jobs:
Filesystem_Subsystem-project-build-and-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Cache BCC build directory
id: cache-bcc
uses: actions/cache@v3
with:
path: bcc
key: ${{ runner.os }}-bcc
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo python -m pip install pyod
sudo python -m pip install psutil
sudo apt-get install -y linux-headers-$(uname -r)
sudo apt-get install -y python-is-python3
sudo apt-get install -y bison build-essential cmake flex git libedit-dev libllvm11 llvm-11-dev libclang-11-dev zlib1g-dev libelf-dev libfl-dev python3-distutils
sudo ln -s /usr/lib/llvm-11 /usr/local/llvm
- name: Build BCC
if: steps.cache-bcc.outputs.cache-hit != 'true'
run: |
wget https://github.com/iovisor/bcc/releases/download/v0.25.0/bcc-src-with-submodule.tar.gz
tar xf bcc-src-with-submodule.tar.gz
cd bcc/
mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_CMD=python3 ..
make
- name: Run Main
run: |
cd eBPF_Supermarket/Filesystem_Subsystem
sudo python3 fs.py -h
- name: Run Test
run: |
cd eBPF_Supermarket/Filesystem_Subsystem
sudo python3 fs.py -w