Make libuv server api semantically similar to asio #167
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
container: ubuntu:24.04 | |
steps: | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install -y --no-install-recommends \ | |
clang-format make | |
- uses: actions/checkout@v4 | |
- run: make lint:ci | |
test: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow_ref }}-${{ github.job }}_${{ matrix.container }}-${{ matrix.compiler }}-${{ matrix.variant }} | |
container: ${{ matrix.container }} | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: | |
- g++ | |
container: | |
- ubuntu:24.04 | |
variant: | |
- libuv | |
- asio | |
include: | |
- compiler: g++ | |
dependencies: g++ | |
- variant: asio | |
cmake_args: -DGRPCXX_USE_ASIO=ON | |
steps: | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install -y --no-install-recommends \ | |
${{ matrix.dependencies }} \ | |
cmake ninja-build \ | |
libprotobuf-dev libprotoc-dev protobuf-compiler | |
- uses: actions/checkout@v4 | |
- name: Configure CMake | |
run: | | |
cmake -B .build -G Ninja \ | |
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DGRPCXX_BUILD_EXAMPLES=OFF \ | |
-DGRPCXX_BUILD_EXPERIMENTS=OFF \ | |
${{ matrix.cmake_args }} | |
- name: Build | |
run: cmake --build .build | |
- name: Test | |
run: ctest --test-dir .build --output-on-failure |