vkd3d-shader/hlsl: Handle error instructions in add_shader_compilation().
[vkd3d.git] / gitlab / test.yml
blobe1811ab769e0344952f2aec80c63b30c84c8117c
1 .test-win:
2   stage: test
3   rules:
4     - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
5   interruptible: true
6   needs:
7     - job: build-crosstest
8   tags:
9     - win10-21h2
10   script:
11     - 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)'
12     - if (Test-Path "pipeline_failed") { exit 1 }
13   artifacts:
14     when: always
15     paths:
16       - artifacts
18 test-win-64:
19   extends: .test-win
20   variables:
21     TEST_ARCH: "64"
22     VKD3D_TEST_SKIP_DXC: "1"
24 test-win-32:
25   extends: .test-win
26   variables:
27     TEST_ARCH: "32"
28     VKD3D_TEST_SKIP_DXC: "1"
30 test-win-64-dxc:
31   stage: test
32   rules:
33     - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
34   interruptible: true
35   allow_failure: true
36   needs:
37     - job: build-crosstest
38   tags:
39     - win10-21h2
40   script:
41     - 'Invoke-WebRequest -Uri "https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.8.2407/dxc_2024_07_31.zip" -OutFile ".\dxc.zip"'
42     - 'Expand-Archive -Path "dxc.zip" -DestinationPath ".\dxc"'
43     - '$Env:PATH += ";" + (Convert-Path ".\dxc\bin\x64")'
44     - 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)'
45     - if (Test-Path "pipeline_failed") { exit 1 }
46   artifacts:
47     when: always
48     paths:
49       - artifacts