Skip to content

Commit

Permalink
Add CMake Github CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
olafmersmann committed Feb 20, 2022
1 parent d7c11d6 commit 0f8c4c5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CMake

on:
push:
branches: [ master, development ]
pull_request:
branches: [ master, development ]

env:
BUILD_TYPE: Release

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build C amalgamation
run: python ${{github.workspace}}/do.py build-c

- name: Configure CMake
run: cmake -B ${{github.workspace}}/code-experiments/build/c/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/code-experiments/build/c/build --config ${{env.BUILD_TYPE}}

0 comments on commit 0f8c4c5

Please sign in to comment.