-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1.03 KB
/
pull_request.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
name: Build conntrack-migrator
on:
pull_request
jobs:
build_test-ubuntu:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt install -y gcc libglib2.0-dev libmnl-dev libnetfilter-conntrack-dev check dbus
- name: Build
run: |
make all
- name: Unit tests
run: sudo make check # Since some of the tests require cap_net_admin
# hence running the tests as sudo.
build-rocky-linux:
timeout-minutes: 10
runs-on: ubuntu-latest
container: rockylinux/rockylinux:8
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
dnf --enablerepo=powertools install -y make gcc glib2-devel libmnl-devel libnetfilter_conntrack-devel check dbus
- name: Build
run: |
make all
# since github actions does not allow to set capability cap_net_admin
# to container, skipping tests.