Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change name to netwatcher #528

Merged
merged 11 commits into from
Sep 25, 2023
Merged
43 changes: 43 additions & 0 deletions .github/workflows/net_watcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: net_watcher

on:
push:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Network_Subsystem/netwatcher/**'
- '.github/workflows/network_monitor.yml'
pull_request:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Network_Subsystem/netwatcher/**'
- '.github/workflows/network_monitor.yml'

permissions:
contents: write

jobs:
build-and-run:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Install dependencies and Init Env
run: |
sudo apt update
sudo apt install libbpf-dev clang llvm libelf-dev libpcap-dev gcc-multilib build-essential
git submodule update --init --recursive

- name: Build and Run
run: |
cd eBPF_Supermarket/Network_Subsystem/net_watcher/
make
# run
sudo timeout -s SIGINT 5 ./netwatcher || if [[ $? != 124 && $? != 0 ]];then exit $?;fi
sudo timeout -s SIGINT 5 ./netwatcher -a || if [[ $? != 124 && $? != 0 ]];then exit $?;fi
sudo timeout -s SIGINT 5 ./netwatcher -e || if [[ $? != 124 && $? != 0 ]];then exit $?;fi
sudo timeout -s SIGINT 5 ./netwatcher -i || if [[ $? != 124 && $? != 0 ]];then exit $?;fi
sudo timeout -s SIGINT 5 ./netwatcher -r || if [[ $? != 124 && $? != 0 ]];then exit $?;fi
sudo timeout -s SIGINT 5 ./netwatcher -t || if [[ $? != 124 && $? != 0 ]];then exit $?;fi
timeout-minutes: 5
43 changes: 0 additions & 43 deletions .github/workflows/network_monitor.yml

This file was deleted.

Loading