From 491cff07bada6b86fa96a939aff2f70eb0ee3f39 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Wed, 1 May 2024 15:07:48 +0530 Subject: [PATCH 1/2] Add .ctags and .gitattributes --- .ctags | 1 + .gitattributes | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .ctags create mode 100644 .gitattributes diff --git a/.ctags b/.ctags new file mode 100644 index 0000000..a75e12e --- /dev/null +++ b/.ctags @@ -0,0 +1 @@ +--links=no diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dae59aa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +*.[ch] whitespace=tab-in-indent,trailing-space +*.gpg binary generated +*.bmp binary +*.base64 generated + +# Mark files as "generated", i.e. no license applies to them. +# This includes output from programs, directive lists generated by grepping +# for all possibilities, samples from fuzzers, files from /proc, packet samples, +# and anything else where no copyright can be asserted. +# +# Use 'git check-attr generated -- ' to query the attribute. +[attr]generated From 5a219669ff807d06a07d236d2a8daf565e0cb051 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Wed, 1 May 2024 15:10:48 +0530 Subject: [PATCH 2/2] CI: Install and start service --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f61f023..f8693a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,3 +19,11 @@ jobs: run: sudo apt-get install -y python3-sphinx ninja-build meson glib-2.0-dev libudev-dev libsystemd-dev clang gperf libcap-dev build-essential - name: build run: make + - name: install + run: sudo make install + - name: add systemd-journal-netlog user + run: sudo useradd -r -d / -s /usr/sbin/nologin -g systemd-journal systemd-journal-netlog + - name: start systemd-netlogd + run: sudo systemctl daemon-reload; sudo systemctl start systemd-netlogd + - name: show status systemd-netlogd + run: sudo systemctl status systemd-netlogd