mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 16:40:48 +08:00
24 lines
633 B
YAML
24 lines
633 B
YAML
name: CI
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
name: ${{ matrix.os }} (${{ matrix.configuration }})
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
configuration: [ Debug, Release ]
|
|
os: [ macos-latest, ubuntu-latest, windows-latest ]
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Configure cmake
|
|
run: cmake -B${{github.workspace}}/examples/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }}
|
|
|
|
- name: Build with ${{ matrix.compiler }}
|
|
run: cmake --build ${{github.workspace}}/examples/build --config ${{ matrix.configuration }} |