route: hsr: API for Entry Forget Time #69
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: libnl3-ci | |
on: | |
push: | |
pull_request: | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
include: | |
- cc: gcc | |
- cc: clang | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install check valgrind libtool-bin | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
set -x | |
export CC="${{ matrix.cc }}" | |
CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla -std=gnu11" | |
if [ "$CC" = "clang" ]; then | |
CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function" | |
fi | |
export CFLAGS | |
./autogen.sh | |
./configure | |
make -j 5 | |
shell: bash | |
- name: Build Unit Tests | |
run: make -j 5 check-progs | |
- name: Run Unit Tests | |
run: make -j 5 check | |
- name: Run Unit Tests w/Valgrind | |
run: | | |
set -x | |
CK_FORK=no libtool --mode=execute valgrind --error-exitcode=66 --leak-check=full -s --show-leak-kinds=all ./tests/check-all | |
CK_FORK=no libtool --mode=execute valgrind --error-exitcode=66 --leak-check=full -s --show-leak-kinds=all ./tests/check-direct | |
shell: bash | |
- run: echo "🍏 This job's status is ${{ job.status }}." |