Skip to content

Commit

Permalink
github actions: Add cmake build.
Browse files Browse the repository at this point in the history
Copy cmake config from the ogg project for ci coverage on github.
  • Loading branch information
rillian committed Jan 15, 2022
1 parent 1733ae1 commit 0455377
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CMake build

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: Configure
run: cmake -S . -B ${{ env.BUILD }}

- name: Build
run: cmake --build ${{ env.BUILD }}

- name: Test
run: ctest --test-dir ${{ env.BUILD }} -V -C Debug

0 comments on commit 0455377

Please sign in to comment.