Skip to content

no need to use ninja on windows + set build type (env was likely empt… #6

no need to use ninja on windows + set build type (env was likely empt…

no need to use ninja on windows + set build type (env was likely empt… #6

Workflow file for this run

name: Windows Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: "windows"
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: 'powershell'
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Make sure MSVC is found when Ninja generator is in use
uses: ilammy/msvc-dev-cmd@v1
- name: Install 7zip
run: choco install 7zip.install
- name: Install Mesa
shell: cmd
run: |
curl.exe -L --output mesa.7z --url https://github.com/pal1000/mesa-dist-win/releases/download/20.3.2/mesa3d-20.3.2-release-msvc.7z
"C:\Program Files\7-Zip\7z.exe" x mesa.7z
mklink opengl32.dll "x64\opengl32.dll"
mklink libglapi.dll "x64\libglapi.dll"
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.6.1'
host: windows
target: 'desktop'
arch: 'win64_msvc2019_64'
dir: '${{github.workspace}}/qt'
install-deps: 'true'
- name: Configure
env:
CMAKE_PREFIX_PATH: ${{env.Qt6_Dir}}/lib/cmake
run: >
cmake
-DCMAKE_BUILD_TYPE=Debug
-DALP_ENABLE_ASSERTS=ON
-B ./build
- name: Build
run: cmake --build ./build --config Debug
- name: Unittests on Windows
env:
MESA_GL_VERSION_OVERRIDE: 3.3
run: |
./build/unittests/Release/test_qml_catch2_console.exe