Skip to content

Install libpcap for github actions #19

Install libpcap for github actions

Install libpcap for github actions #19

Workflow file for this run

name: C/C++ CI
on: [push, workflow_dispatch]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install libpcap
run: sudo apt install libpcap-dev
- name: Build & Test
run: |
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror -O2 -fsanitize=address,undefined"
cmake --build build
cd build
ctest --output-on-failure
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Build & Test
run: |
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror -O2 -fsanitize=address,undefined"
cmake --build build
cd build
ctest --output-on-failure