-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (39 loc) · 1.05 KB
/
build.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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Run apt update
run: sudo apt update
- name: Install general dependencies
run: sudo apt install -y autoconf pkgconf cmake clang build-essential
- name: Install LibELF for AF_XDP/LibBPF
run: sudo apt install -y libelf-dev
- name: Build Common JSON-C
run: make -C modules/common jsonc
- name: Install Common JSON-C
run: sudo make -C modules/common jsonc_install
- name: Build Common Main
run: make -C modules/common
- name: Install Common
run: sudo make -C modules/common install
- name: Build LibBPF
run: make libbpf
- name: Build main
run: make
- name: Install main
run: sudo make install
- name: Store build artifacts
uses: actions/upload-artifact@master
with:
name: build-output
path: build/pcktbatch