2019-12-14 09:36:03 +01:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-12-16 10:58:39 +01:00
|
|
|
name: sysklogd ci
|
2019-12-14 09:36:03 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2019-12-16 11:11:42 +01:00
|
|
|
- name: Update packagage cache ...
|
|
|
|
run: sudo apt-get update
|
2019-12-16 11:08:57 +01:00
|
|
|
- name: Install build dependencies ...
|
2019-12-16 11:21:37 +01:00
|
|
|
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install -qq -y tree tshark
|
2019-12-16 10:58:39 +01:00
|
|
|
- uses: actions/checkout@v1
|
2019-12-16 11:08:57 +01:00
|
|
|
- name: Generate and run configure script ...
|
2021-01-14 18:48:30 +01:00
|
|
|
run: ./autogen.sh && ./configure --disable-silent-rules
|
2019-12-16 11:08:57 +01:00
|
|
|
- name: Build project ...
|
2019-12-16 10:58:39 +01:00
|
|
|
run: make
|
2019-12-16 11:08:57 +01:00
|
|
|
- name: Run project unit tests ...
|
2019-12-16 13:17:13 +01:00
|
|
|
run: sudo make check || (cat cat test/start.log; cat test/remote.log; false)
|
2019-12-16 10:58:39 +01:00
|
|
|
# - name: clang-tidy check
|
|
|
|
# uses: muxee/clang-tidy-action@0.0.1-rc1
|
|
|
|
# - name: SonarCloud Scan
|
|
|
|
# uses: SonarSource/sonarcloud-github-action@v1.1
|
2019-12-16 11:08:57 +01:00
|
|
|
- name: Check project installation ...
|
2021-01-14 18:48:30 +01:00
|
|
|
run: make install-strip DESTDIR=/tmp/tok; tree /tmp/tok
|
2019-12-16 10:58:39 +01:00
|
|
|
|