Skip to content

feat: scheduler for async subscribe #66

feat: scheduler for async subscribe

feat: scheduler for async subscribe #66

Workflow file for this run

name: cpp
on:
push:
paths-ignore:
- '**.md'
- 'rust/**'
pull_request:
paths-ignore:
- '**.md'
- 'rust/**'
jobs:
build-and-test:
name: ${{ matrix.toolchain }}-${{ matrix.configuration }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
toolchain:
- linux-gcc
- macos-clang
- windows-msvc
- windows-mingw
configuration:
- Debug
- Release
include:
- toolchain: linux-gcc
os: ubuntu-latest
compiler: gcc
env:
CMAKE_OPTIONS: "-DRPC_CORE_TEST_PLUGIN=ON"
- toolchain: macos-clang
os: macos-latest
compiler: clang
env:
CMAKE_OPTIONS: "-DRPC_CORE_TEST_PLUGIN=ON"
- toolchain: windows-msvc
os: windows-latest
compiler: msvc
env:
BIN_SUFFIX: ".exe"
- toolchain: windows-mingw
os: windows-latest
compiler: mingw
env:
BIN_SUFFIX: ".exe"
CMAKE_OPTIONS: "-G \"MinGW Makefiles\""
steps:
- uses: actions/checkout@v4
- name: Configure (${{ matrix.configuration }})
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} ${{ matrix.env.CMAKE_OPTIONS }}
- name: Init thirdparty
if: matrix.os != 'windows-latest'
run: cmake --build build --target rpc_core_test_init
- name: Build with ${{ matrix.compiler }}
run: cmake --build build --config ${{ matrix.configuration }} -j
- name: Windows-MSVC Compatible
if: matrix.os == 'windows-latest' && matrix.compiler == 'msvc'
working-directory: build
run: Move-Item -Path .\${{ matrix.configuration }}\* -Destination .\
- name: Test
working-directory: build
run: ./rpc_core_test${{ matrix.env.BIN_SUFFIX }}