Skip to content

Update ChangeLog and bump version for v3.0-rc1 #193

Update ChangeLog and bump version for v3.0-rc1

Update ChangeLog and bump version for v3.0-rc1 #193

Workflow file for this run

name: Bob the Builder
# Run on all branches, including all pull requests, except the 'dev'
# branch since that's where we run Coverity Scan (limited tokens/day)
on:
push:
branches:
- '**'
- '!dev'
pull_request:
branches:
- '**'
# A push to a branch that also has an open PR fires both a 'push' and a
# 'pull_request' event. Key the group on the branch name -- which both
# events resolve to -- so the second cancels the first instead of running
# the same tree twice.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref_name }}
cancel-in-progress: true
jobs:
build:
# Verify we can build on latest Ubuntu with both gcc and clang
name: ${{ matrix.compiler }}
strategy:
matrix:
compiler: [gcc, clang]
fail-fast: false
runs-on: ubuntu-latest
env:
MAKEFLAGS: -j3
CC: ${{ matrix.compiler }}
steps:
- name: Install dependencies
run: |
sudo apt-get -y install tree tshark valgrind libssl-dev
- uses: actions/checkout@v6
- name: Configure
run: |
set -x
./autogen.sh
mkdir -p build/dir
cd build/dir
../../configure --prefix=/tmp --with-systemd=/tmp/lib/systemd/system --with-openssl
chmod -R a+w .
- name: Build
run: |
cd build/dir
make
- name: Install Check
run: |
cd build/dir
make V=1 install-strip
tree /tmp || true
ldd /tmp/sbin/syslogd
size /tmp/sbin/syslogd
/tmp/sbin/syslogd -?
- name: Build Example
run: |
mkdir -p /tmp/example
cp -a example/example.* /tmp/example/
pushd /tmp/example/
PKG_CONFIG_LIBDIR=/tmp/lib/pkgconfig make -f example.mk
popd
- name: Enable unprivileged userns (unshare)
run: |
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
- name: Run Tests
# DEBUG=1 keeps per-test dirs from being wiped on exit and folds
# the syslogd -d trace into each test/<name>.log we dump & upload.
env:
DEBUG: 1
run: |
cd build/dir
make check || {
echo "::group::test-suite.log"
cat test/test-suite.log
echo "::endgroup::"
echo "::group::per-test step logs"
tail -n +1 test/*.log
echo "::endgroup::"
echo "::group::syslogd debug logs"
find /tmp/sysklogd -name '*.log' | sort | xargs -r tail -n +1
echo "::endgroup::"
false
}
- uses: actions/upload-artifact@v7
if: always()
with:
name: ${{ matrix.compiler }}-test-logs
path: |
build/dir/test/*.log
/tmp/sysklogd/**/*.log