Add GitHub Actions CI (#188)

Add GitHub Actions CI
This commit is contained in:
Michael Keck 2023-03-21 14:24:33 +01:00 committed by GitHub
parent eb89a34d66
commit 07a40ef0f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

21
.github/workflows/cmake.yml vendored Normal file
View file

@ -0,0 +1,21 @@
on: [push, pull_request]
name: CMake
jobs:
cmake-build:
name: CMake ${{ matrix.os }} ${{ matrix.build_type }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
build_type: ["Debug", "Release"]
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.build_type }}