diff options
| author | Yong He <yonghe@outlook.com> | 2025-07-30 15:52:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-30 22:52:05 +0000 |
| commit | db59c22cfb774e984a207a074f13870b78ec0071 (patch) | |
| tree | 009c31fae2fb54dec42ca769a2feae607a34ebd3 /.github | |
| parent | c4dd2eb0033b3eaf683791a6666cff63aeb9f139 (diff) | |
Reduce merge_group CI workload. (#7996)
* Reduce merge_group CI workload.
* fix.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 12 |
1 files changed, 8 insertions, 4 deletions
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 |
