Skip to content

Commit 2ced683

Browse files
kaizhangNVcsyonghe
andauthored
Deploy the falcor-perf-test (shader-slang#3579)
* Deploy the falcor-compiler-perf-test Deploy the falcor-compiler-perf-test to falcor-test.yml file. It will download the release pre-build from: https://github.com/shader-slang/falcor-compile-perf-test and run the test executable with newly built slang libraries. It only works on win64 now. Disable running the tests on macos and linux platform. * make a separate yml file to only run falcor-perf-test * Remove falcor-perf-test from dependency Remove falcor-perf-test from dependency, instead download the binary in github action. --------- Co-authored-by: Yong He <yonghe@outlook.com>
1 parent 7414252 commit 2ced683

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Falcor Compiler Perf-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: [Windows, self-hosted, perf]
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+
- uses: robinraju/release-downloader@v1.9
44+
id: download
45+
with:
46+
# The source repository path.
47+
# Expected format {owner}/{repo}
48+
# Default: ${{ github.repository }}
49+
repository: "shader-slang/falcor-compile-perf-test"
50+
51+
# A flag to set the download target as latest release
52+
# The default value is 'false'
53+
latest: true
54+
55+
# The name of the file to download.
56+
# Use this field only to specify filenames other than tarball or zipball, if any.
57+
# Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..)
58+
fileName: "falcor_perf_test-*-win-64.zip"
59+
60+
# Download the attached zipball (*.zip)
61+
zipBall: true
62+
63+
# Relative path under $GITHUB_WORKSPACE to place the downloaded file(s)
64+
# It will create the target directory automatically if not present
65+
# eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads
66+
out-file-path: "./falcor-perf-test"
67+
68+
# Somehow there is a bug in this flag, the executable extracted is not runnable. We have to
69+
# extract ourselves.
70+
extract: false
71+
72+
- name: run falcor-compiler-perf-test
73+
run: |
74+
$filename = '${{ fromJson(steps.download.outputs.downloaded_files)[0] }}'
75+
Expand-Archive $filename -DestinationPath .\falcor-perf-test
76+
$env:PATH += ";.\bin\windows-${{matrix.testPlatform}}\${{matrix.configuration}}";
77+
.\falcor-perf-test\bin\Release\falcor_perftest.exe

0 commit comments

Comments
 (0)