veloren/.gitlab/CI/recompile.yml
2020-06-08 16:26:48 +00:00

20 lines
600 B
YAML

# Template to only run if actual changes has been made to the code and not just documentation
.recompile-branch:
rules:
- if: $CI_COMMIT_REF_NAME !~ /^master$/
# No '-' here is *very* important: https://docs.gitlab.com/ee/ci/yaml/#complex-rule-clauses
changes:
- "**/*.{rs,ron,toml,vox,png}"
- "rust-toolchain"
- ".gitlab-ci.yml"
- "**/*.yml"
# like .recompile-branch but will run on master too
.recompile:
rules:
- changes:
- "**/*.{rs,ron,toml,vox,png,wav}"
- "rust-toolchain"
- ".gitlab-ci.yml"
- "**/*.yml"