summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-10-16 16:17:56 -0700
committerGitHub <noreply@github.com>2023-10-16 16:17:56 -0700
commit0a3683dd39fc04d15937b8a4700d477f9492c257 (patch)
treec88880727d2d57ee7e38db0043e7fa4be98c89d1 /.github
parentd4b8edf79ad6d139bc0de2f1fa9a34f00317f763 (diff)
Run Falcor Tests (#3270)
* Run Falcor Tests * Update test config. * update config. * fix. * fix * fix. * skip slow test. * Fix ci config. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/falcor-test.yml65
1 files changed, 65 insertions, 0 deletions
diff --git a/.github/workflows/falcor-test.yml b/.github/workflows/falcor-test.yml
new file mode 100644
index 000000000..e96a24f65
--- /dev/null
+++ b/.github/workflows/falcor-test.yml
@@ -0,0 +1,65 @@
+# This is a basic workflow to help you get started with Actions
+
+name: Falcor Tests
+
+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: setup-falcor
+ run: |
+ mkdir FalcorBin
+ cd FalcorBin
+ Copy-Item -Path 'C:\Falcor\build\windows-vs2022\bin' -Destination '.\build\windows-vs2022\bin' -Recurse -Exclude ("*.pdb")
+ Copy-Item -Path 'C:\Falcor\tests' -Destination '.\' -Recurse
+ Copy-Item -Path 'C:\Falcor\tools' -Destination '.\' -Recurse
+ Copy-Item -Path 'C:\Falcor\media' -Destination '.\' -Recurse
+ Copy-Item -Path 'C:\Falcor\media_internal' -Destination '.\' -Recurse
+ Copy-Item -Path 'C:\Falcor\scripts' -Destination '.\' -Recurse
+ cd ..\
+ - 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
+
+ Copy-Item -Path '.\bin\windows-${{matrix.platform}}\${{matrix.configuration}}\*' -Destination '.\FalcorBin\build\windows-vs2022\bin\Release\' -Recurse -Exclude ("*.pdb")
+ - name: falcor-unit-test
+ run: |
+ $ErrorActionPreference = "SilentlyContinue"
+ cd .\FalcorBin\tests
+ python ./testing/run_unit_tests.py --config windows-vs2022-Release -t "-slow"
+ cd ../../
+ - name: falcor-image-test
+ run: |
+ $ErrorActionPreference = "SilentlyContinue"
+ cd .\FalcorBin\tests
+ python ./testing/run_image_tests.py --config windows-vs2022-Release --run-only
+ cd ../../
+