From 0f8c4c59bb7f62b5a9ee07630a2d8b78856deb4c Mon Sep 17 00:00:00 2001 From: Olaf Mersmann Date: Sun, 20 Feb 2022 21:39:25 +0100 Subject: [PATCH] Add CMake Github CI. --- .github/workflows/cmake.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 000000000..ee96b0af7 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -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}}