ci: Build things on doc chanegs as well

I give up, this is a big hammer but should fix doc only changes MRs from not
triggering builds properly. We could technically try only build certain jobs
on doc only changes but I couldn't get it to work.
This commit is contained in:
Jakob Bornecrantz 2023-06-24 16:23:38 +01:00
parent 4aed167a9a
commit 00f0d318a6

View file

@ -21,10 +21,12 @@
- ".gitlab-ci/**/*"
when: on_success
# All paths, 1 hours have been wasted trying to combine the above arrays.
- changes: &paths-ci-code-sys-files
- changes: &paths-all-files
# Code
- "scripts/**/*"
- "src/**/*"
# Doc
- "doc/**/*"
# Build sys
- CMakeLists.txt
- "*.cmake"
@ -36,14 +38,13 @@
- ".gitlab-ci/**/*"
when: on_success
# When to automatically run the CI for build jobs
.build-rules:
rules:
# If any files affecting the pipeline are changed, build/test jobs run
# automatically once all dependency jobs have passed
- changes:
*paths-ci-code-sys-files
*paths-all-files
when: on_success
# Don't build on forked repos.
- if: *is-forked-branch
@ -63,7 +64,7 @@
# affecting the pipeline were changed
- if: *is-pre-merge
changes:
*paths-ci-code-sys-files
*paths-all-files
when: on_success
# Allow triggering jobs manually in other cases if any files affecting the
# pipeline were changed: Disabled for now because it causes the pipeline on