From db59c22cfb774e984a207a074f13870b78ec0071 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 30 Jul 2025 15:52:05 -0700 Subject: Reduce merge_group CI workload. (#7996) * Reduce merge_group CI workload. * fix. --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac28a3059..f8392408a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -277,7 +277,8 @@ jobs: -enable-debug-layers ${{ matrix.enable-debug-layers }} fi - name: Run Slang examples - if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.full-gpu-tests + # Run GLSL backend tests on release for pull requests, and not on merge_group, to reduce CI load. + if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.full-gpu-tests && matrix.config == 'release' && github.event_name == 'pull_request' run: | .github/workflows/ci-examples.sh \ --bin-dir "$bin_dir" \ @@ -290,7 +291,8 @@ jobs: run: | PATH=$bin_dir:$PATH tools/slangc-test/test.sh - name: Test Slang via glsl - if: steps.filter.outputs.should-run == 'true' && matrix.full-gpu-tests && matrix.platform != 'wasm' && matrix.config != 'debug' + # Run GLSL backend tests on release for pull requests, and not on merge_group, to reduce CI load. + if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.full-gpu-tests && matrix.config == 'release' && github.event_name == 'pull_request' run: | export SLANG_RUN_SPIRV_VALIDATION=1 export SLANG_USE_SPV_SOURCE_LANGUAGE_UNKNOWN=1 @@ -304,11 +306,13 @@ jobs: -skip-reference-image-generation \ -show-adapter-info - name: Run slang-rhi tests - if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.full-gpu-tests + # Run slang-rhi tests on debug+release for pull requests, and only on release for merge_group, to reduce CI load. + if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.full-gpu-tests && (github.event_name == 'pull_request' || matrix.config == 'release') run: | "$bin_dir/slang-rhi-tests" -check-devices - name: Run slangpy tests - if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.full-gpu-tests + # Run slangpy tests on debug+release for pull requests, and only on release for merge_group, to reduce CI load. + if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.full-gpu-tests && (github.event_name == 'pull_request' || matrix.config == 'release') shell: pwsh run: | python --version -- cgit v1.2.3