Skip to content

Commit

Permalink
also build asio standalone in github action
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Hund <[email protected]>
  • Loading branch information
d12fk committed Apr 23, 2022
1 parent 549ee1f commit 79ea89a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 79ea89a

Please sign in to comment.