Skip to content

Commit b6cf290

Browse files
AlexeySachkovvmaksimo
authored andcommitted
Improve paths-ignore in our CI workflows
There are more reasons to skip particular workflows, like: - if we change check-code-style workflow, no need to launch builds - if we change some CMakeLists.txt, no need to launch check-code-style
1 parent c0b9c01 commit b6cf290

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

llvm-spirv/.github/workflows/check-code-style.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ on:
1313
branches:
1414
- master
1515
- llvm_release_*
16-
paths-ignore: # no need to check formatting for documentation and tests
17-
- 'docs/**'
18-
- 'test/**'
16+
paths-ignore: # no need to check formatting for:
17+
- 'docs/**' # documentation
18+
- 'test/**' # tests
19+
- '**.md' # README
20+
- '**.txt' # CMakeLists.txt
21+
- '**/check-**-build.xml' # Other workflows
1922

2023
env:
2124
# We need compile command database in order to perform clang-tidy check. So,

llvm-spirv/.github/workflows/check-in-tree-build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@ on:
1111
branches:
1212
- master
1313
- llvm_release_*
14-
paths-ignore: # no need to check build for documentation changes
15-
- 'docs/**'
16-
- '**.md'
14+
paths-ignore: # no need to check build for:
15+
- 'docs/**' # documentation
16+
- '**.md' # README
17+
- '**/check-code-style.xml' # check-code-style workflow
18+
- '**/check-out-of-tree-build.xml' # check-out-of-tree-build workflow
1719
pull_request:
1820
branches:
1921
- master
2022
- llvm_release_*
21-
paths-ignore: # no need to check build for documentation changes
22-
- 'docs/**'
23-
- '**.md'
23+
paths-ignore: # no need to check build for:
24+
- 'docs/**' # documentation
25+
- '**.md' # README
26+
- '**/check-code-style.xml' # check-code-style workflow
27+
- '**/check-out-of-tree-build.xml' # check-out-of-tree-build workflow
2428
schedule:
2529
# Ideally, we might want to simplify our regular nightly build as we
2630
# probably don't need every configuration to be built every day: most of

llvm-spirv/.github/workflows/check-out-of-tree-build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@ on:
1111
branches:
1212
- master
1313
- llvm_release_*
14-
paths-ignore: # no need to check build for documentation changes
15-
- 'docs/**'
16-
- '**.md'
14+
paths-ignore: # no need to check build for:
15+
- 'docs/**' # documentation
16+
- '**.md' # README
17+
- '**/check-code-style.xml' # check-code-style workflow
18+
- '**/check-in-tree-build.xml' # check-in-tree-build workflow
1719
pull_request:
1820
branches:
1921
- master
2022
- llvm_release_*
21-
paths-ignore: # no need to check build for documentation changes
22-
- 'docs/**'
23-
- '**.md'
23+
paths-ignore: # no need to check build for:
24+
- 'docs/**' # documentation
25+
- '**.md' # README
26+
- '**/check-code-style.xml' # check-code-style workflow
27+
- '**/check-in-tree-build.xml' # check-in-tree-build workflow
2428
schedule:
2529
- cron: 0 0 * * *
2630

0 commit comments

Comments
 (0)