Skip to content

Add Dry Run Mode (#48) #64

Add Dry Run Mode (#48)

Add Dry Run Mode (#48) #64

name: CMake on a single platform
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache CMake dependencies
uses: actions/cache@v3
with:
path: |
/usr/local/lib/cmake
/usr/local/include
key: ${{ runner.os }}-cmake-${{ hashFiles('**/CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-cmake-
- name: Prepare build environment
run: |
sudo apt-get update
sudo apt-get install -y cmake libboost-all-dev libfmt-dev libcli11-dev libgtest-dev libpcap-dev libspdlog-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}