Don't insist on getting a DBus address via env #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-centos-7: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
container: centos:7 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
yum install -y make gcc-4.8.5 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 on centos-7. | |