forked from shader-slang/slang
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.63 KB
/
windows-selfhosted.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This is a basic workflow to help you get started with Actions
name: Full GPU Tests (Windows)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: [Windows, self-hosted]
timeout-minutes: 100
continue-on-error: true
strategy:
fail-fast: false
matrix:
configuration: ['Release']
platform: ['x64']
include:
- platform: x64
testPlatform: x64
- platform: x64
testCategory: full
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
fetch-depth: '0'
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1
- name: build
run: |
.\premake.bat vs2019 --arch=${{matrix.platform}} --deps=true --no-progress=true --enable-cuda=true
.\make-slang-tag-version.bat
MSBuild.exe slang.sln -v:m -m -property:Configuration=${{matrix.configuration}} -property:Platform=${{matrix.platform}} -maxcpucount:12
- name: test-spirv-direct
run: |
$ErrorActionPreference = "SilentlyContinue"
where.exe spirv-dis
spirv-dis --version
$env:SLANG_RUN_SPIRV_VALIDATION='1'
.\bin\windows-${{matrix.testPlatform}}\${{matrix.configuration}}\slang-test.exe tests/ -use-test-server -server-count 8 -emit-spirv-directly -expected-failure-list tests/expected-failure.txt -api vk 2>&1
- name: test
run: |
$ErrorActionPreference = "SilentlyContinue"
.\bin\windows-${{matrix.testPlatform}}\${{matrix.configuration}}\slang-test.exe -use-test-server -server-count 8 -api all-cpu