diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..11af89c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y libpcap-dev + + - name: Configure + run: cmake -DTEST_ENABLE=on -B build + + - name: Build + run: cmake --build build + + - name: Test + run: ctest --test-dir build --output-on-failure