diff options
| author | kaizhangNV <149626564+kaizhangNV@users.noreply.github.com> | 2024-02-15 00:19:01 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-14 22:19:01 -0800 |
| commit | 2ced683f10fb82f63a2e2c3d7b5f099c53bb57b0 (patch) | |
| tree | bdd603fb3dc4fd75478395f0152faf2a5f180d13 | |
| parent | 7414252b091c89381a05aea987750666e86b6b35 (diff) | |
Deploy the falcor-perf-test (#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>
| -rw-r--r-- | .github/workflows/falcor-compiler-perf-test.yml | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/.github/workflows/falcor-compiler-perf-test.yml b/.github/workflows/falcor-compiler-perf-test.yml new file mode 100644 index 000000000..cfd1837bd --- /dev/null +++ b/.github/workflows/falcor-compiler-perf-test.yml @@ -0,0 +1,77 @@ +# This is a basic workflow to help you get started with Actions + +name: Falcor Compiler Perf-Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + build: + runs-on: [Windows, self-hosted, perf] + 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}} -property:WindowsTargetPlatformVersion=10.0.19041.0 -maxcpucount:12 + + - uses: robinraju/release-downloader@v1.9 + id: download + with: + # The source repository path. + # Expected format {owner}/{repo} + # Default: ${{ github.repository }} + repository: "shader-slang/falcor-compile-perf-test" + + # A flag to set the download target as latest release + # The default value is 'false' + latest: true + + # The name of the file to download. + # Use this field only to specify filenames other than tarball or zipball, if any. + # Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..) + fileName: "falcor_perf_test-*-win-64.zip" + + # Download the attached zipball (*.zip) + zipBall: true + + # Relative path under $GITHUB_WORKSPACE to place the downloaded file(s) + # It will create the target directory automatically if not present + # eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads + out-file-path: "./falcor-perf-test" + + # Somehow there is a bug in this flag, the executable extracted is not runnable. We have to + # extract ourselves. + extract: false + + - name: run falcor-compiler-perf-test + run: | + $filename = '${{ fromJson(steps.download.outputs.downloaded_files)[0] }}' + Expand-Archive $filename -DestinationPath .\falcor-perf-test + $env:PATH += ";.\bin\windows-${{matrix.testPlatform}}\${{matrix.configuration}}"; + .\falcor-perf-test\bin\Release\falcor_perftest.exe |
