--- /dev/null
+name: Continuous integration
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ Test-Linux:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-22.04, ubuntu-24.04]
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v6
+
+ - name: Install dependencies
+ run: |
+ sudo apt-get update -qq
+ sudo apt-get install libcap2-bin lcov autoconf automake libtool
+
+ - name: Build
+ run: |
+ ci/build.sh
\ No newline at end of file
--- /dev/null
+#!/bin/bash
+set -x
+
+PATH=$(pwd)/ci/build/bin:$PATH
+
+if [ ! -d ci ]; then
+ echo "you must run this in the root fping directory" >&2
+ exit 1
+fi
+
+autoreconf --install
+./configure --prefix=/opt/ftraceroute
+make CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
+
+sudo chown root src/ftraceroute
+sudo chmod u+s src/ftraceroute
\ No newline at end of file