Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3adf02d

Browse files
committedJun 13, 2025··
Only trigger job if offload has changed
1 parent 665fd24 commit 3adf02d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎.github/workflows/sycl-detect-changes.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ jobs:
8484
- .github/workflows/ur-*
8585
ur_cuda_adapter:
8686
- 'unified-runtime/source/adapters/cuda/**'
87+
ur_offload_adapter:
88+
- 'unified-runtime/include/**'
89+
- 'unified-runtime/source/adapters/offload/**'
90+
- '.github/workflows/ur-build-offload.yml'
8791
8892
- name: Set output
8993
id: result
@@ -94,7 +98,7 @@ jobs:
9498
return '${{ steps.changes.outputs.changes }}';
9599
}
96100
// Treat everything as changed for huge PRs.
97-
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd", "ur", "ur_cuda_adapter"];
101+
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd", "ur", "ur_cuda_adapter", "ur_offload_adapter"];
98102
99103
- run: echo '${{ steps.result.outputs.result }}'
100104

‎.github/workflows/ur-precommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
offload_build:
102102
name: Adapters (Offload)
103103
needs: [detect_changes, source_checks]
104-
if: ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
104+
if: ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur_offload_adapter') }}
105105
uses: ./.github/workflows/ur-build-offload.yml
106106

107107
macos:

0 commit comments

Comments
 (0)
Please sign in to comment.