Skip to content

Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic

ci(linux): install clang, bpftool and libbpf; run the unit tests

anof-cyberaef07087c930
diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml
index 1086979..6e96642 100644
--- a/.github/workflows/build-linux.yml
+++ b/.github/workflows/build-linux.yml
@@ -28,8 +28,9 @@ jobs:
build-essential \
gcc \
make \
- libnetfilter-queue-dev \
- libnfnetlink-dev \
+ clang \
+ bpftool \
+ libbpf-dev \
libgtk-3-dev \
pkg-config
shell: bash
@@ -48,8 +49,22 @@ jobs:
echo "=== Checking GTK3 ==="
pkg-config --modversion gtk+-3.0
echo ""
- echo "=== Checking libnetfilter_queue ==="
- pkg-config --modversion libnetfilter_queue || echo "Package info not available, but headers should be present"
+ echo "=== Checking clang (eBPF compiler) ==="
+ clang --version | head -1
+ echo ""
+ echo "=== Checking bpftool (skeleton generator) ==="
+ bpftool version | head -1
+ echo ""
+ echo "=== Checking libbpf ==="
+ pkg-config --modversion libbpf
+ shell: bash
+
+ - name: Unit tests (rule engine, DNS parser, relay)
+ run: |
+ cd Linux/src
+ make test-rules BUILD_DIR="$RUNNER_TEMP/pb-tests"
+ cd tests
+ TMPDIR="$RUNNER_TEMP" ./run_relay_test.sh plain
shell: bash
- name: Build project
diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml
index ef925f6..fcdcf21 100644
--- a/.github/workflows/release-linux.yml
+++ b/.github/workflows/release-linux.yml
@@ -27,8 +27,9 @@ jobs:
build-essential \
gcc \
make \
- libnetfilter-queue-dev \
- libnfnetlink-dev \
+ clang \
+ bpftool \
+ libbpf-dev \
libgtk-3-dev \
pkg-config
shell: bash