From 00f0d318a6d9cbb4995e6c60e5c164567876ee8e Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 24 Jun 2023 16:23:38 +0100 Subject: [PATCH] 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. --- .gitlab-ci/ci-rules.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci/ci-rules.yml b/.gitlab-ci/ci-rules.yml index 0992f0cdf..5053ebe08 100644 --- a/.gitlab-ci/ci-rules.yml +++ b/.gitlab-ci/ci-rules.yml @@ -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