green_crdt/.github/workflows/ci.yml

32 lines
748 B
YAML
Raw Normal View History

name: ContinuousIntegration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
2023-10-28 19:37:51 +02:00
build_matrix:
strategy:
matrix:
BUILD_TYPE: [Debug, Release]
os: [ubuntu-latest, macos-latest, windows-latest]
timeout-minutes: 10
2023-10-28 19:37:51 +02:00
runs-on: ${{matrix.os}}
steps:
2023-10-28 19:37:51 +02:00
- uses: actions/checkout@v3
with:
submodules: recursive
2023-10-28 19:37:51 +02:00
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
2023-10-28 19:37:51 +02:00
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}} -j 3
2023-10-28 19:37:51 +02:00
- name: Test
run: ctest --test-dir ${{github.workspace}}/build -C ${{matrix.BUILD_TYPE}} --verbose