2020-05-14 15:48:10 +00:00
|
|
|
stages:
|
2020-06-12 11:09:56 +00:00
|
|
|
- check
|
2022-02-15 08:41:49 +00:00
|
|
|
- build-nightly
|
2020-06-12 11:09:56 +00:00
|
|
|
- build
|
2020-05-14 16:12:22 +00:00
|
|
|
- publish
|
2019-04-18 22:23:11 +00:00
|
|
|
|
|
|
|
variables:
|
2020-05-14 16:12:22 +00:00
|
|
|
# Note: this is deprecated!
|
|
|
|
# https://docs.gitlab.com/ee/ci/yaml/#git-strategy
|
|
|
|
# However in gitlab web ui it's set to fetch so it should be fine ¯\_(ツ)_/¯
|
|
|
|
GIT_STRATEGY: fetch
|
|
|
|
# Note: this is deprecated!
|
2021-06-04 06:26:28 +00:00
|
|
|
# https://docs.gitlab.com/ee/ci/yaml/#shallow-cloning
|
2020-05-14 16:12:22 +00:00
|
|
|
GIT_DEPTH: 3
|
2021-06-03 18:24:31 +00:00
|
|
|
GIT_CLEAN_FLAGS: -f
|
2022-09-25 18:42:45 +00:00
|
|
|
CACHE_IMAGE_TAG: 9a0cb110
|
2022-04-06 19:08:29 +00:00
|
|
|
TAG_REGEX: '/^v[0-9]+\.[0-9]+\.[0-9]+$/'
|
2019-10-08 08:13:40 +00:00
|
|
|
|
2020-05-14 15:48:10 +00:00
|
|
|
default:
|
|
|
|
# https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-pending-pipelines
|
|
|
|
interruptible: true
|
2022-01-06 18:28:05 +00:00
|
|
|
# Retry automatically in case the runner times out or there's a runner failure
|
2020-05-14 16:12:22 +00:00
|
|
|
retry:
|
|
|
|
max: 2
|
|
|
|
when:
|
|
|
|
- runner_system_failure
|
|
|
|
- stuck_or_timeout_failure
|
2021-05-20 04:21:53 +00:00
|
|
|
tags:
|
2021-08-17 11:22:18 +00:00
|
|
|
- veloren/veloren
|
2019-10-08 08:13:40 +00:00
|
|
|
|
2021-06-01 19:33:41 +00:00
|
|
|
# NOTE: overriden for the `.tmacos` template so relevant changes need to be mirrored there
|
2019-04-18 22:23:11 +00:00
|
|
|
before_script:
|
2020-05-14 16:12:22 +00:00
|
|
|
- source $HOME/.cargo/env
|
|
|
|
- df -h /
|
|
|
|
- free -h
|
|
|
|
- cargo --version
|
2021-07-14 08:25:29 +00:00
|
|
|
- source ./.gitlab/scripts/env.sh
|
2021-06-03 18:24:31 +00:00
|
|
|
- rm -rf target || echo "it seems that sometimes OLD data is left over"
|
2019-10-08 08:13:40 +00:00
|
|
|
|
2021-05-11 06:03:24 +00:00
|
|
|
# 8866215 is the user that is used to sync data to the collaboration repos
|
2020-05-28 16:27:22 +00:00
|
|
|
workflow:
|
|
|
|
rules:
|
|
|
|
- if: $CI_MERGE_REQUEST_IID
|
|
|
|
- if: $CI_COMMIT_TAG
|
2022-10-27 21:49:46 +00:00
|
|
|
- if: $CI_COMMIT_BRANCH
|
2021-07-09 09:19:03 +00:00
|
|
|
- if: $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/ && $GITLAB_USER_ID != "8866215"
|
2020-05-28 16:27:22 +00:00
|
|
|
|
2020-05-14 15:37:34 +00:00
|
|
|
include:
|
2020-05-15 13:34:52 +00:00
|
|
|
- local: .gitlab/CI/recompile.yml
|
2020-05-18 17:32:21 +00:00
|
|
|
- local: .gitlab/CI/release.yml
|
2020-06-12 11:09:56 +00:00
|
|
|
- local: .gitlab/CI/check.gitlab-ci.yml
|
|
|
|
- local: .gitlab/CI/build.gitlab-ci.yml
|
2020-05-14 16:12:22 +00:00
|
|
|
- local: .gitlab/CI/publish.gitlab-ci.yml
|