29 lines
924 B
YAML
Raw Normal View History

name: C/C++ CI
on: [push]
jobs:
build:
2019-12-16 10:58:39 +01:00
name: sysklogd ci
runs-on: ubuntu-latest
steps:
- name: Update packagage cache ...
run: sudo apt-get update
2019-12-16 11:08:57 +01:00
- name: Install build dependencies ...
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 ...
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 ...
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 ...
run: make install-strip DESTDIR=/tmp/tok; tree /tmp/tok
2019-12-16 10:58:39 +01:00