Update CMakeLists.txt #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MagicEyes | |
on: | |
push: | |
branches: | |
- "*" | |
paths: | |
- 'MagicEyes/**' | |
- '.github/workflows/magic_eyes.yml' | |
pull_request: | |
branches: | |
- "*" | |
paths: | |
- 'MagicEyes/**' | |
- '.github/workflows/magic_eyes.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-14 llvm-14 libelf-dev libpcap-dev gcc-multilib build-essential cmake | |
git submodule update --init --recursive | |
- name: Build | |
run: | | |
cd MagicEyes/ | |
mkdir build && cd build | |
cmake -DBUILD_ALL=ON .. | |
make | |
make install | |