Skip to content

Commit c50f220

Browse files
author
Pavel Siska
committed
Github-actions: add build workflow
1 parent a14118d commit c50f220

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
- name: Mark github workspace as safe
24+
run: git config --system --add safe.directory $PWD
25+
- name: Create build directory
26+
run: mkdir build
27+
- name: Configure CMake
28+
run: |
29+
cd build
30+
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
31+
- name: make
32+
run: make
33+

0 commit comments

Comments
 (0)