From 00d4b0038d4d6d3bf1206ebab04cdea3967e8084 Mon Sep 17 00:00:00 2001 From: H Bacelar <49041756+hbacelar8@users.noreply.github.com> Date: Wed, 12 Feb 2025 23:16:50 +0100 Subject: [PATCH] Create CI file --- .github/workflows/cmake-single-platform.yml | 37 +++++++++++++++++++++ 1 file changed, 37 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..7605773 --- /dev/null +++ b/.github/workflows/cmake-single-platform.yml @@ -0,0 +1,37 @@ +# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage. +# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml +name: CMake on a single platform + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install dbus-1 library + run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev + + - name: lib-debug + run: cmake --preset lib-debug + + - name: Build lib-debug + run: cmake --build ${{github.workspace}}/build + + - name: lib-release + run: cmake --preset lib-release + + - name: Build lib-debug + run: cmake --build ${{github.workspace}}/build + + - name: example + run: cmake --preset example + + - name: Build lib-debug + run: cmake --build ${{github.workspace}}/build