Skip to content
Snippets Groups Projects
Commit e14a8c7e authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

CI: automatically skip builds for commits without any changes in the source files

parent a726c388
No related branches found
No related tags found
1 merge request!38Setup for automatic documentation deployment
......@@ -72,6 +72,22 @@ stages:
variables:
<<: *default_cmake_flags
BUILD_TYPE: Debug
only:
changes:
- src/**/*.{h,hpp,cpp,cu}
- Documentation/Tutorials/**/*.{h,hpp,cpp,cu}
- "**/CMakeLists.txt"
# Dummy build job to ensure that a pipeline is created for a merge request, even
# when there were no changes.
dummy build job:
stage: build
script: echo "dummy"
except:
changes:
- src/**/*.{h,hpp,cpp,cu}
- Documentation/Tutorials/**/*.{h,hpp,cpp,cu}
- "**/CMakeLists.txt"
# Cuda builds are specified first because they take more time than host-only builds,
# which can be allocated on hosts whitout GPUs.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment