From 79ea89a1166118f758a2cd02abaa7d9c335d1d53 Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Sat, 23 Apr 2022 11:12:33 +0200 Subject: [PATCH] also build asio standalone in github action Signed-off-by: Heiko Hund --- .github/workflows/build-and-test.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 73a590d..57d1481 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -8,13 +8,16 @@ on: jobs: build: - name: ${{matrix.compiler.compiler}} ${{matrix.build_type}} + name: ${{matrix.compiler.name}} ${{matrix.asio.name}} ${{matrix.build_type}} runs-on: ubuntu-latest strategy: matrix: compiler: - - { compiler: GCC, CC: gcc, CXX: g++ } - - { compiler: Clang, CC: clang, CXX: clang++ } + - { name: GCC, CC: gcc, CXX: g++ } + - { name: Clang, CC: clang, CXX: clang++ } + asio: + - { name: asio-boost, pkg: libboost-dev, standalone: OFF } + - { name: asio-standalone, pkg: libasio-dev, standalone: ON } build_type: [ Debug, Release ] steps: - uses: actions/checkout@v2 @@ -23,14 +26,17 @@ jobs: env: DEBIAN_FRONTEND: noninteractive run: | - sudo apt update && sudo apt install -yq libboost-all-dev ninja-build + sudo apt update && sudo apt install --no-install-recommends -yq ${{matrix.asio.pkg}} ninja-build - name: Configure CMake env: CC: ${{matrix.compiler.CC}} CXX: ${{matrix.compiler.CXX}} # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} + run: | + cmake -G Ninja -B ${{github.workspace}}/build \ + -DDBUS_ASIO_STANDALONE=${{matrix.asio.standalone}} \ + -DCMAKE_BUILD_TYPE=${{matrix.build_type}} - name: Build # Build your program with the given configuration