Files
XDP-Firewall/.github/workflows/build.yml
Christian Deacon 20cb84cd06 Workflow Improvements (#69)
This PR attempts to run the XDP program for 10 seconds when running the `run.yml` workflow instead of printing the help menu.
2025-03-28 13:26:18 -04:00

37 lines
881 B
YAML

name: Build
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Run apt update
run: sudo apt update
- name: Install LibELF
run: sudo apt install -y libelf-dev
- name: Install LibConfig
run: sudo apt install -y libconfig-dev
- name: Install LLVM
run: sudo apt install -y llvm
- name: Install LibXDP Depedencies
run: sudo apt install -y libpcap-dev m4 gcc-multilib linux-tools-$(uname -r)
- name: Build LibXDP.
run: make libxdp
- name: Install LibXDP.
run: sudo make libxdp_install
- name: Make project
run: make
- name: Install project
run: sudo make install
- name: Store build artifacts
uses: actions/upload-artifact@v4
with:
name: build-output
path: build/