Spaces:
Running
Running
ci : add paths to build.yml (#3333)
Browse filesThis 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: https://github.com/ggml-org/whisper.cpp/issues/3285
- .github/workflows/build.yml +19 -0
.github/workflows/build.yml
CHANGED
|
@@ -6,6 +6,25 @@ on:
|
|
| 6 |
- master
|
| 7 |
tags:
|
| 8 |
- 'v*'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
pull_request:
|
| 10 |
types: [opened, synchronize, reopened]
|
| 11 |
workflow_dispatch:
|
|
|
|
| 6 |
- master
|
| 7 |
tags:
|
| 8 |
- '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']
|
| 28 |
pull_request:
|
| 29 |
types: [opened, synchronize, reopened]
|
| 30 |
workflow_dispatch:
|