Install libpcap for github actions #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 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 |