Skip to content

Commit cc2a879

Browse files
kaizhangNVcsyonghe
andauthored
Integrate compile & validation test (shader-slang#3674)
Co-authored-by: Yong He <yonghe@outlook.com>
1 parent 1cba7f3 commit cc2a879

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Compile Regression-Test
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
jobs:
14+
build:
15+
runs-on: [self-hosted, Windows, regression-test]
16+
timeout-minutes: 100
17+
continue-on-error: true
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
configuration: ['Release']
22+
platform: ['x64']
23+
include:
24+
- platform: x64
25+
testPlatform: x64
26+
- platform: x64
27+
testCategory: full
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
submodules: 'true'
32+
fetch-depth: '0'
33+
- name: setup-msbuild
34+
uses: microsoft/setup-msbuild@v1
35+
- name: build
36+
run: |
37+
.\premake.bat vs2019 --arch=${{matrix.platform}} --deps=true --no-progress=true --enable-cuda=true
38+
39+
.\make-slang-tag-version.bat
40+
41+
MSBuild.exe slang.sln -v:m -m -property:Configuration=${{matrix.configuration}} -property:Platform=${{matrix.platform}} -property:WindowsTargetPlatformVersion=10.0.19041.0 -maxcpucount:12
42+
43+
- name: Run compile and validation test
44+
run: |
45+
$gitbash = 'C:\Program Files\git\bin\bash.exe'
46+
cp -r 'C:\slang_compile_test_suite_a' .\
47+
cd .\slang_compile_test_suite_a
48+
& $gitbash compile_all_slang.sh

0 commit comments

Comments
 (0)