no need to use ninja on windows + set build type (env was likely empt… #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |