Skip to content

Commit e686917

Browse files
[CI] Re-enable pre-commit CI for drivers updates (#10071)
1 parent 3c95fc4 commit e686917

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/sycl_detect_changes.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- *llvm_spirv
4040
- *clang
4141
- 'libclc/**'
42-
sycl:
42+
sycl: &sycl
4343
- *clang
4444
- *sycl-fusion
4545
- *llvm_spirv
@@ -49,4 +49,11 @@ jobs:
4949
- 'sycl/!(test-e2e|doc)/**'
5050
ci:
5151
- .github/workflows/**
52-
- devops/**
52+
- devops/*/**
53+
# devops/* contains config files, including drivers versions.
54+
# Allow them to be tested in pre-commit.
55+
drivers_and_configs: &drivers_and_configs
56+
- devops/*
57+
test_build:
58+
- *sycl
59+
- *drivers_and_configs

.github/workflows/sycl_precommit.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ on:
1616
- '**.rst'
1717
# For CI-related files we explicitly skip all the jobs below even if there
1818
# were other (non-ignored) files modified in this PR.
19-
- '.github/workflows/**'
20-
- 'devops/**'
19+
- 'devops/*/**'
2120

2221
permissions:
2322
contents: read
@@ -75,7 +74,7 @@ jobs:
7574
if: |
7675
always()
7776
&& (success() || contains(github.event.pull_request.labels.*.name, 'ignore-lint'))
78-
&& contains(needs.detect_changes.outputs.filters, 'sycl')
77+
&& contains(needs.detect_changes.outputs.filters, 'test_build')
7978
&& !contains(needs.detect_changes.outputs.filters, 'ci')
8079
uses: ./.github/workflows/sycl_linux_build_and_test.yml
8180
secrets: inherit
@@ -93,7 +92,7 @@ jobs:
9392
name: Linux SYCL E2E on Nightly
9493
needs: [detect_changes]
9594
if: |
96-
!contains(needs.detect_changes.outputs.filters, 'sycl')
95+
!contains(needs.detect_changes.outputs.filters, 'test_build')
9796
&& !contains(needs.detect_changes.outputs.filters, 'ci')
9897
uses: ./.github/workflows/linux_matrix_e2e_on_nightly.yml
9998
secrets: inherit

0 commit comments

Comments
 (0)