diff options
| author | amey asgaonkar <160177341+aasgaonkar@users.noreply.github.com> | 2025-05-27 15:56:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-27 15:56:19 -0700 |
| commit | 3a9f189c6a087cb3a58bed2f81543ceb26e62b0e (patch) | |
| tree | e6963e6d94bdc9f977818d4565ed493e4ceab8fe /.github | |
| parent | 9ef7072397457e8cdb8a63a1a6953d01f46b2904 (diff) | |
Enable slang-rhi integration testing (#7218)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03c6dcd53..498aa8dc4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -246,6 +246,31 @@ jobs: -expected-failure-list tests/expected-failure.txt \ -skip-reference-image-generation \ -show-adapter-info + - name: slang-rhi tests + if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.full-gpu-tests + shell: pwsh + run: | + if (!(Test-Path -Path "external/slang-rhi/build")) { + Write-Host "Building slang-rhi if it doesn't exist" + Push-Location external/slang-rhi + cmake --preset msvc -S . -B build + cmake --build build --config ${{matrix.config}} + Write-Host "Copying DLLs from bin directory to slang-rhi build location..." + Copy-Item -Path "$bin_dir\*.dll" -Destination "build\${{matrix.config}}" -Force + Pop-Location + } + $testExe = Get-ChildItem -Path "external/slang-rhi/build" -Recurse -Filter "slang-rhi-tests.exe" | Select-Object -First 1 + if ($testExe) { + Write-Host "Found slang-rhi tests executable at: $($testExe.FullName)" + $testDir = $testExe.Directory.FullName + Push-Location $testDir + Write-Host "Running slang-rhi tests..." + .\slang-rhi-tests.exe + Pop-Location + } else { + Write-Error "Could not find slang-rhi-tests.exe" + exit 1 + } - name: Run slangpy tests if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.full-gpu-tests shell: pwsh |
