From dc74c09a82b7e245ac202571c6550d7c32606dcb Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Wed, 23 Oct 2024 11:13:20 +0100 Subject: [PATCH] feat: Added minimal CI GitHub workflow for Qt --- .github/workflows/build.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a8252b8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,45 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: + - ubuntu-latest + - windows-latest + - macos-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: 6.7.3 + cache: true + + - name: Install ninja-build tool (must be after Qt due PATH changes) + uses: turtlesec-no/get-ninja@main + + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Make sure MSVC is found when Ninja generator is in use + if: ${{ runner.os == 'Windows' }} + uses: ilammy/msvc-dev-cmd@v1 + + - name: Configure project + run: cmake -S . -B ./build-debug --preset debug + + - name: Build Project ${{ matrix.preset.build_preset_arg }} + run: cmake --build ./build-debug