-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
59 lines (59 loc) · 1.97 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
59 lines (59 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
include:
- local: '.gitlab/ci/setup_images.yml'
- local: '.gitlab/ci/build_rs_core.yml'
- local: '.gitlab/ci/build_js_sdks.yml'
- local: '.gitlab/ci/build_rn_sdk.yml'
- local: '.gitlab/ci/build_services.yml'
- local: '.gitlab/ci/build_app.yml'
- local: '.gitlab/ci/build_docs.yml'
- local: '.gitlab/ci/deploy_docs.yml'
- local: '.gitlab/ci/deploy_app.yml'
- local: '.gitlab/ci/deploy_services.yml'
- local: '.gitlab/ci/deploy_pages.yml'
- local: '.gitlab/ci/publish_charts.yml'
- local: '.gitlab/ci/scan_dependencies.yml'
- local: '.gitlab/ci/test_server.yml'
- local: '.gitlab/ci/test_moderation.yml'
- local: '.gitlab/ci/release.yml'
# Branch/MR pipelines build and consume their own branch CI image tags;
# tag pipelines do not run the setup jobs, so they consume the tags last
# pushed by the default branch.
workflow:
# A new commit on the same ref cancels the running pipeline's
# interruptible jobs (all jobs except the deploy templates).
auto_cancel:
on_new_commit: interruptible
rules:
- if: $CI_COMMIT_TAG
variables:
CI_IMAGES_TAG: $CI_DEFAULT_BRANCH
- when: always
variables:
CI_IMAGES_TAG: $CI_COMMIT_REF_SLUG
stages:
- setup
- check
- build
- test
- publish
- deploy
- release
variables:
GIT_DEPTH: 1
CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
CARGO_TARGET_DIR: ${CI_PROJECT_DIR}/target
SCCACHE_DIR: ${CI_PROJECT_DIR}/.sccache
# CI builds are throwaway: incremental compilation only adds overhead and
# bloats target dirs, and debuginfo is most of a dev target's size and a
# large share of its compile time (test backtraces lose file/line info).
CARGO_INCREMENTAL: '0'
CARGO_PROFILE_DEV_DEBUG: '0'
# Parallel archiver + cheapest compression: cache/artifact save time is
# dominated by CPU-bound compression of multi-GB target dirs, not upload.
FF_USE_FASTZIP: 'true'
CACHE_COMPRESSION_LEVEL: 'fastest'
ARTIFACT_COMPRESSION_LEVEL: 'fast'
default:
tags:
- dind_fast
interruptible: true