Skip to content

Update cmake.yml

Update cmake.yml #4

Workflow file for this run

name: CMake Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.6.1' # Or whatever version you're using
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
- name: Configure CMake
shell: cmd
run: |
cmake -B ${{ github.workspace }}/build ^
-DQt6_DIR="$Env:QtHome\6.6.1\msvc2019_64\lib\cmake\Qt6" ^
-DCMAKE_BUILD_TYPE=Release # Or Debug if you prefer
- name: Build
shell: cmd
run: cmake --build ${{ github.workspace }}/build --config Release
- name: Run Tests
shell: cmd
run: ctest -C Release --test-dir ${{ github.workspace }}/build