blob: 1637640e84625c003889029fc49d778c5da777fa (
plain)
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
53
|
# This is a basic workflow to help you get started with Actions
name: Windows-CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
configuration: ['Debug', 'Release']
platform: ['Win32', 'x64']
steps:
- uses: actions/checkout@v2.3.4
with:
submodules: 'true'
fetch-depth: '0'
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1
- name: premake
run:
.\premake.bat vs2017 --enable-embed-stdlib=true --arch=${{matrix.platform}} --deps=true
- name: build
run:
MSBuild.exe slang.sln -v:m -m -property:Configuration=${{matrix.configuration}} -property:Platform=${{matrix.platform}} -property:WindowsTargetPlatformVersion=10.0.19041.0
- name: test
run: |
if ("${{matrix.configuration}}" -eq "Debug") {
$testCategory = "smoke";
}
elseif("${{matrix.platform}}" -eq "x64") {
$testCategory = "full";
}
else {
$testCategory = "quick";
}
if ("${{matrix.platform}}" -eq "Win32") {
$testPlatform = "x86";
}
else {
$testPlatform = "x64";
}
$slangTestBinDir = ".\bin\windows-$testPlatform\${{matrix.configuration}}\";
$env:Path += ";$slangTestBinDir";
Invoke-WebRequest -uri "https://github.com/shader-slang/swiftshader/releases/download/v1.0/vk_swiftshader_windows_$testPlatform.zip" -Method "GET" -Outfile "swiftshader.zip";
Expand-Archive "swiftshader.zip" -DestinationPath $slangTestBinDir;
& "$slangTestBinDir\slang-test.exe" -api all-dx12 -appveyor -bindir "$slangTestBinDir\" -platform $testPlatform -configuration ${{matrix.configuration}} -category $testCategory 2>&1;
|