From eb9ec200d2965ea47ad852041dd7f1bd84aae36f Mon Sep 17 00:00:00 2001 From: kolage <110612307+jan-kolarik@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:50:25 +0200 Subject: [PATCH] Create CMake CI workflow --- .github/workflows/cmake-single-platform.yml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/cmake-single-platform.yml diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml new file mode 100644 index 0000000..2fd0968 --- /dev/null +++ b/.github/workflows/cmake-single-platform.yml @@ -0,0 +1,25 @@ +name: CMake on a single platform + +on: + pull_request: + branches: [ "main" ] + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Test + working-directory: ${{github.workspace}}/build + run: ctest -V --test-dir test