Skip to content

Commit

Permalink
Add unittest jobs for standalone Asio builds
Browse files Browse the repository at this point in the history
Add a separate job definition for building and testing the code with
standalone Asio. The jobs differ enough that it seems to make most
sense to keep them completely separated.
  • Loading branch information
laudrup committed Jan 25, 2024
1 parent 364d43b commit b1ba8f8
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: unittest
on: [push, pull_request]

jobs:
unittest:
unittest-boost-asio:
name: "${{matrix.generator}} ${{matrix.toolset}} Boost ${{matrix.boost_version}} ${{matrix.build_type}} C++${{matrix.standard}} ${{matrix.name_args}}"
runs-on: ${{matrix.os}}
defaults:
Expand Down Expand Up @@ -139,3 +139,49 @@ jobs:
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3

unittest-standalone-asio:
name: "Asio ${{matrix.build_type}} C++${{matrix.standard}}"
runs-on: ${{matrix.os}}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
os: [windows-2022]
build_type: [Debug, Release]
standard: [14, 17, 20]

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Create build directory
run: mkdir build

- name: Configure
working-directory: build
run: |
cmake -DCMAKE_CXX_STANDARD=${{matrix.standard}} \
-DENABLE_WINTLS_STANDALONE_ASIO=ON \
"${GITHUB_WORKSPACE}"
- name: Build
working-directory: build
run: |
cmake --build . \
-j \
--config ${{matrix.build_type}}
- name: Run tests
working-directory: build
run: ctest -C ${{matrix.build_type}}
env:
CTEST_OUTPUT_ON_FAILURE: True

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3

0 comments on commit b1ba8f8

Please sign in to comment.