Files
vkd3d/gitlab/test.yml
2025-11-03 17:52:54 +01:00

36 lines
1.1 KiB
YAML

.test-win:
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
interruptible: true
needs:
- job: build-crosstest
tags:
- win10-21h2
script:
- 'Invoke-WebRequest -Uri "https://www.nuget.org/api/v2/package/Microsoft.Direct3D.WARP/1.0.16.1" -OutFile ".\warp.zip"'
- 'Expand-Archive -Path "warp.zip" -DestinationPath ".\warp"'
- 'Invoke-WebRequest -Uri "https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.8.2502/dxc_2025_02_20.zip" -OutFile ".\dxc.zip"'
- 'Expand-Archive -Path "dxc.zip" -DestinationPath ".\dxc"'
- git rebase $CI_MERGE_REQUEST_DIFF_BASE_SHA --exec './artifacts/driver.cross64.exe $(git cherry $CI_MERGE_REQUEST_DIFF_BASE_SHA HEAD^ | wc -l) $(git rev-parse --short HEAD)'
- if (Test-Path "pipeline_failed") { exit 1 }
artifacts:
when: always
paths:
- artifacts
exclude:
- artifacts/**/d3d10warp.dll
- artifacts/**/dxcompiler.dll
test-win-64:
extends: .test-win
variables:
TEST_ARCH: "64"
VKD3D_TEST_DEBUG: '1'
test-win-32:
extends: .test-win
variables:
TEST_ARCH: "32"
VKD3D_TEST_DEBUG: '1'