mirror of
https://github.com/wqking/eventpp.git
synced 2024-12-27 16:41:11 +08:00
24 lines
594 B
YAML
24 lines
594 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
Test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest, ubuntu-latest]
|
|
build-type: [Release]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Configure
|
|
run: |
|
|
mkdir -p build
|
|
cmake -DCMAKE_BUILD_TYPE="${{ matrix.build-type }}" -B build -S tests
|
|
|
|
- name: Build Tests
|
|
run: cmake --build build --config "${{ matrix.build-type }}" -j
|
|
|
|
- name: Run unit tests
|
|
run: cd build && ctest --build-config "${{ matrix.build-type }}" --progress --verbose |