diff options
Diffstat (limited to '.github/workflows/cmake.yml')
-rw-r--r-- | .github/workflows/cmake.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..d9fa86c --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,38 @@ +name: CMake + +on: + push: + pull_request: + schedule: + - cron: '0 0 1 * *' + +jobs: + build: + strategy: + matrix: + os: + [ + ubuntu-latest, + macos-latest, + windows-latest, + ] + + runs-on: ${{ matrix.os }} + + env: + BUILD: _build + + steps: + - uses: actions/checkout@v2 + + - name: Prepare build directory + run: mkdir ${{ env.BUILD }} + + - name: Generate + run: cmake -S . -B ${{ env.BUILD }} + + - name: Build + run: cmake --build ${{ env.BUILD }} + + - name: Test + run: ctest --test-dir ${{ env.BUILD }} -V -C Debug |