From 0a3683dd39fc04d15937b8a4700d477f9492c257 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 16 Oct 2023 16:17:56 -0700 Subject: 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 --- .github/workflows/falcor-test.yml | 65 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/falcor-test.yml (limited to '.github/workflows') 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 ../../ + -- cgit v1.2.3