Skip to content

Commit ec87f2c

Browse files
author
Pavel Siska
committed
Github-actions: add build workflow
1 parent 739cbac commit ec87f2c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: build
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
os:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
container: ${{ inputs.os }}
14+
steps:
15+
- name: Install git
16+
run: dnf install -y git
17+
- name: Check out repository code
18+
uses: actions/checkout@v4
19+
- name: Install dependencies
20+
uses: ./.github/actions/install-dependencies
21+
with:
22+
pcap: true
23+
dpdk: true
24+
nfb: true
25+
nemea: true
26+
- name: Mark github workspace as safe
27+
run: git config --system --add safe.directory $PWD
28+
- name: Create build directory
29+
run: mkdir build
30+
- name: Configure CMake
31+
run: |
32+
cd build
33+
cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_INPUT_PCAP=ON -DENABLE_INPUT_DPDK=ON -DENABLE_INPUT_NFB=ON -DENABLE_OUTPUT_UNIREC=ON -DENABLE_PROCESS_EXPERIMENTAL=ON
34+
- name: make
35+
run: make
36+

0 commit comments

Comments
 (0)