aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2025-02-01 08:07:24 +0100
committerToni Uhlig <matzeton@googlemail.com>2025-02-01 10:54:27 +0100
commitbb870cb98fd6885b2e1d1c6ae0af5b1c32663d8a (patch)
tree846e03715a68fce495ac1a16738a42a907a90912 /.github
parente262227d65afa0978e064e38079e26a8c8d478ac (diff)
Add FreeBSD CI build
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-freebsd.yml39
-rw-r--r--.github/workflows/sonarcloud.yml2
2 files changed, 40 insertions, 1 deletions
diff --git a/.github/workflows/build-freebsd.yml b/.github/workflows/build-freebsd.yml
new file mode 100644
index 000000000..1dc5ac278
--- /dev/null
+++ b/.github/workflows/build-freebsd.yml
@@ -0,0 +1,39 @@
+name: FreeBSD Build
+
+on:
+ schedule:
+ # At the end of every day
+ - cron: '0 0 * * *'
+ push:
+ branches:
+ - main
+ - tmp
+ pull_request:
+ branches:
+ - main
+ types: [opened, synchronize, reopened]
+ release:
+ types: [created]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ name: Build and Test
+ steps:
+ - uses: actions/checkout@v4
+ - name: Test in FreeBSD
+ id: test
+ uses: vmactions/freebsd-vm@v1
+ with:
+ usesh: true
+ prepare: |
+ pkg install -y bash autoconf automake cmake gmake libtool gettext pkgconf gcc \
+ git wget unzip flock \
+ json-c flex bison libpcap curl openssl dbus
+ run: |
+ echo "Working Directory: $(pwd)"
+ echo "User.............: $(whoami)"
+ echo "FreeBSD Version..: $(freebsd-version)"
+ # TODO: Make examples I/O event agnostic i.e. use nio
+ cmake -S . -B build -DBUILD_NDPI=ON -DBUILD_EXAMPLES=OFF #-DENABLE_CURL=ON -DENABLE_DBUS=ON
+ cmake --build build
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index 1aba37213..5c92e73ff 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -24,7 +24,7 @@ jobs:
run: |
pip install gcovr==5.0 # 5.1 is not supported
- name: Install sonar-scanner and build-wrapper
- uses: SonarSource/sonarcloud-github-c-cpp@v3.1.0
+ uses: SonarSource/sonarcloud-github-c-cpp@v3.2.0
- name: Install Prerequisites
run: |
sudo apt-get update