diff options
| author | Gangzheng Tong <tonggangzheng@gmail.com> | 2025-09-19 14:32:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-19 21:32:28 +0000 |
| commit | c6d8c6b6890341ac9a849e0f5a96e686731c4e78 (patch) | |
| tree | 16349b6a9c52083e40fe5aaf6eae813c4351e35e /.github/workflows | |
| parent | 48cbbcfeb3531a819edd74e072ca3c4b4379c5a3 (diff) | |
Check if any required jobs failed (allow success or skipped) (#8495)
This allows doc only changes to PASS the CI by skipping jobs.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f155cc6d9..eebd5a71f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -228,15 +228,21 @@ jobs: echo "Linux Release x64: ${{ needs.test-linux-release-gcc-x86_64.result }}" echo "Linux Debug x64: ${{ needs.test-linux-debug-gcc-x86_64.result }}" - # Check if all required jobs succeeded - if [[ "${{ needs.test-windows-release-cl-x86_64-gpu.result }}" != "success" ]] || \ - [[ "${{ needs.test-windows-debug-cl-x86_64-gpu.result }}" != "success" ]] || \ - [[ "${{ needs.test-macos-release-clang-aarch64.result }}" != "success" ]] || \ - [[ "${{ needs.test-macos-debug-clang-aarch64.result }}" != "success" ]] || \ - [[ "${{ needs.test-linux-release-gcc-x86_64.result }}" != "success" ]] || \ - [[ "${{ needs.test-linux-debug-gcc-x86_64.result }}" != "success" ]]; then + # Check if any required jobs failed (allow success or skipped) + if [[ "${{ needs.test-windows-release-cl-x86_64-gpu.result }}" == "failure" ]] || \ + [[ "${{ needs.test-windows-debug-cl-x86_64-gpu.result }}" == "failure" ]] || \ + [[ "${{ needs.test-macos-release-clang-aarch64.result }}" == "failure" ]] || \ + [[ "${{ needs.test-macos-debug-clang-aarch64.result }}" == "failure" ]] || \ + [[ "${{ needs.test-linux-release-gcc-x86_64.result }}" == "failure" ]] || \ + [[ "${{ needs.test-linux-debug-gcc-x86_64.result }}" == "failure" ]] || \ + [[ "${{ needs.test-windows-release-cl-x86_64-gpu.result }}" == "cancelled" ]] || \ + [[ "${{ needs.test-windows-debug-cl-x86_64-gpu.result }}" == "cancelled" ]] || \ + [[ "${{ needs.test-macos-release-clang-aarch64.result }}" == "cancelled" ]] || \ + [[ "${{ needs.test-macos-debug-clang-aarch64.result }}" == "cancelled" ]] || \ + [[ "${{ needs.test-linux-release-gcc-x86_64.result }}" == "cancelled" ]] || \ + [[ "${{ needs.test-linux-debug-gcc-x86_64.result }}" == "cancelled" ]]; then echo "❌ One or more CI jobs failed or were cancelled" exit 1 fi - echo "✅ All CI jobs passed successfully!" + echo "✅ All CI jobs completed successfully (passed or skipped)!" |
