Skip to content

Commit 85e474f

Browse files
authored
ci : add paths to build.yml (#3333)
This commit adds specific paths to the GitHub Actions workflow file `.github/workflows/build.yml`. The motivation for this to avoid unnecessary builds when unrelated files are changed, which can save resources and time during the CI process. Refs: #3285
1 parent 210bbbe commit 85e474f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,25 @@ on:
66
- master
77
tags:
88
- 'v*'
9+
paths: ['.github/workflows/build.yml',
10+
'**/CMakeLists.txt',
11+
'**/Makefile',
12+
'**/*.mk',
13+
'**/*.cmake',
14+
'**/*.in',
15+
'**/*.h',
16+
'**/*.hpp',
17+
'**/*.c',
18+
'**/*.cpp',
19+
'**/*.cu',
20+
'**/*.cuh',
21+
'**/*.cl',
22+
'**/*.swift',
23+
'**/*.m',
24+
'**/*.mm',
25+
'**/*.metal',
26+
'**/*.comp',
27+
'**/*.java']
928
pull_request:
1029
types: [opened, synchronize, reopened]
1130
workflow_dispatch:

0 commit comments

Comments
 (0)