-
Notifications
You must be signed in to change notification settings - Fork 26
36 lines (34 loc) · 896 Bytes
/
tests.yml
File metadata and controls
36 lines (34 loc) · 896 Bytes
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
name: build
on:
workflow_call:
inputs:
os:
required: true
type: string
jobs:
tests:
runs-on: ubuntu-latest
container: ${{ inputs.os }}
steps:
- name: Install git
run: dnf install -y git
- name: Check out repository code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
pcap: true
nemea: true
tests: true
- name: Mark github workspace as safe
run: git config --system --add safe.directory $PWD
- name: Create build directory
run: mkdir build
- name: Configure CMake
run: |
cd build
cmake3 .. -DENABLE_NEMEA=ON -DENABLE_INPUT_PCAP=ON -DENABLE_OUTPUT_UNIREC=ON -DENABLE_PROCESS_EXPERIMENTAL=ON -DENABLE_TESTS=ON
- name: make tests
run: |
make -j $(nproc)
make tests