2020-05-15 13:34:52 +00:00
|
|
|
# Template to only run if actual changes has been made to the code and not just documentation
|
2020-06-03 08:31:05 +00:00
|
|
|
.recompile-branch:
|
2020-05-15 13:34:52 +00:00
|
|
|
rules:
|
2020-05-28 18:22:49 +00:00
|
|
|
- if: $CI_COMMIT_REF_NAME !~ /^master$/
|
2020-05-30 09:03:47 +00:00
|
|
|
# No '-' here is *very* important: https://docs.gitlab.com/ee/ci/yaml/#complex-rule-clauses
|
|
|
|
changes:
|
2020-09-02 18:33:36 +00:00
|
|
|
- "**/*.{glsl,rs,ron,toml,vox,png}"
|
2020-05-15 13:34:52 +00:00
|
|
|
- "rust-toolchain"
|
2020-12-02 00:35:32 +00:00
|
|
|
- "Cargo.lock"
|
2020-05-22 16:11:58 +00:00
|
|
|
- ".gitlab-ci.yml"
|
2020-05-30 09:03:47 +00:00
|
|
|
- "**/*.yml"
|
2020-06-03 08:31:05 +00:00
|
|
|
|
2021-06-03 08:10:22 +00:00
|
|
|
# TODO: appears unused
|
2020-06-03 08:31:05 +00:00
|
|
|
# like .recompile-branch but will run on master too
|
|
|
|
.recompile:
|
|
|
|
rules:
|
|
|
|
- changes:
|
2020-09-02 18:33:36 +00:00
|
|
|
- "**/*.{glsl,rs,ron,toml,vox,png,wav}"
|
2020-06-03 08:31:05 +00:00
|
|
|
- "rust-toolchain"
|
2020-12-02 00:35:32 +00:00
|
|
|
- "Cargo.lock"
|
2020-06-03 08:31:05 +00:00
|
|
|
- ".gitlab-ci.yml"
|
|
|
|
- "**/*.yml"
|
2021-04-17 22:49:11 +00:00
|
|
|
|
|
|
|
# Template to only run these after a branch has merged to master
|
|
|
|
.post-merge:
|
|
|
|
stage: build
|
|
|
|
rules:
|
2021-06-03 08:10:22 +00:00
|
|
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
|
|
|
when: never
|
2021-04-17 22:49:11 +00:00
|
|
|
- if: $CI_COMMIT_REF_NAME =~ /^master$/
|
|
|
|
changes:
|
|
|
|
- "**/*.{glsl,rs,ron,toml,vox,png}"
|
|
|
|
- "rust-toolchain"
|
|
|
|
- "Cargo.lock"
|
|
|
|
- ".gitlab-ci.yml"
|
|
|
|
- "**/*.yml"
|