summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0d9d0af87..4a2a76011 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -188,6 +188,36 @@ jobs:
- name: Test Slang
if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && (matrix.platform != 'aarch64' || matrix.os == 'macos')
run: |
+ smokeResult=$("$bin_dir/slang-test" tests/render/check-backend-support-on-ci.slang)
+ supportedBackends="$(echo "$smokeResult" | grep 'Supported backends: ')"
+
+ # LLVM is required to run the filecheck
+ echo "Checking llvm ..." && echo "$supportedBackends" | grep -q llvm
+
+ if [[ "${{matrix.full-gpu-tests}}" == "true" ]]
+ then
+ for backend in fxc dxc glslang visualstudio genericcpp nvrtc metal tint # clang gcc
+ do
+ echo "Checking $backend ..." && echo "$supportedBackends" | grep -q "$backend"
+ done
+ for api in 'vk,vulkan' 'dx12,d3d12' 'dx11,d3d11' 'cuda' 'wgpu,webgpu'
+ do
+ echo "Checking $api ..." && echo "$smokeResult" | grep -q "Check $api: Supported"
+ done
+ fi
+
+ if [[ "${{matrix.os}}" == "macos" ]]
+ then
+ for backend in metal
+ do
+ echo "Checking $backend ..." && echo "$supportedBackends" | grep -q "$backend"
+ done
+ for api in 'mtl,metal'
+ do
+ echo "Checking $api ..." && echo "$smokeResult" | grep -q "Check $api: Supported"
+ done
+ fi
+
export SLANG_RUN_SPIRV_VALIDATION=1
export SLANG_USE_SPV_SOURCE_LANGUAGE_UNKNOWN=1
if [[ "${{matrix.full-gpu-tests}}" == "true" ]]; then