From e6d1f6e6bca26b299de8abebfaeafef75b92594c Mon Sep 17 00:00:00 2001 From: Sy Brand Date: Thu, 24 Nov 2022 13:07:34 +0000 Subject: [PATCH] Create cmake.yml --- .github/workflows/cmake.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 0000000..972a696 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,24 @@ +name: CMake + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build + + - name: Build + run: cmake --build ${{github.workspace}}/build + + - name: Test + working-directory: ${{github.workspace}}/build + run: cmake --build ${{github.workspace}}/build --target test