Skip to content

Replace deadline timer with system timer #63

Replace deadline timer with system timer

Replace deadline timer with system timer #63

Workflow file for this run

# wg-tcp-tunnel - build-and-test.yaml
# SPDX-FileCopyrightText: 2023-2025 Arkadiusz Bokowy and contributors
# SPDX-License-Identifier: MIT
name: Build and Test
on:
push:
pull_request:
branches: [ master ]
env:
MAKEFLAGS: -j8
jobs:
check:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
build-type: [ Release ]
features:
- -DENABLE_NGROK=ON -DENABLE_SYSTEMD=ON
- -DENABLE_NGROK=ON -DENABLE_WEBSOCKET=ON
- -DENABLE_NGROK=OFF
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Install Dependencies (Ubuntu)
if: runner.os == 'Linux'
run: >
sudo apt install --no-install-recommends --yes
libboost-dev
libboost-log-dev
libboost-program-options-dev
libssl-dev
- name: Install Dependencies (Windows)
if: runner.os == 'Windows'
run: >
vcpkg install
boost-asio
boost-beast
boost-crc
boost-date-time
boost-log
boost-program-options
boost-property-tree
- uses: actions/checkout@v6
- name: Configure Project (Ubuntu)
if: runner.os == 'Linux'
env:
CXXFLAGS: -Wall -Wextra -Werror -Wshadow
run: >
cmake -S ${{ github.workspace }} -B build
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
${{ matrix.features }}
- name: Configure Project (Windows)
if: runner.os == 'Windows'
run: >
cmake -S ${{ github.workspace }} -B build
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
${{ matrix.features }}
- name: Build Project
run: cmake --build build --config ${{ matrix.build-type }}