Skip to content

Commit fcc75b2

Browse files
authored
[ci] Change runners (#170)
PR changes ci runners for dynamically created ones cc paritytech/ci_cd#730
1 parent fbc28a7 commit fcc75b2

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

.gitlab-ci.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
#
55
# pipelines can be triggered manually in the web
66

7+
default:
8+
interruptible: true
9+
retry:
10+
max: 2
11+
when:
12+
- runner_system_failure
13+
- unknown_failure
14+
- api_failure
715

816
stages:
917
- fmt
@@ -15,12 +23,6 @@ variables:
1523
GIT_STRATEGY: fetch
1624
GIT_DEPTH: 100
1725
CARGO_INCREMENTAL: 0
18-
CARGO_TARGET_DIR: "/ci-cache/${CI_PROJECT_NAME}/targets/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
19-
20-
workflow:
21-
rules:
22-
- if: $CI_COMMIT_TAG
23-
- if: $CI_COMMIT_BRANCH
2426

2527
.collect-artifacts: &collect-artifacts
2628
artifacts:
@@ -37,27 +39,10 @@ workflow:
3739
- rustc -vV
3840
- rustup show
3941
- bash --version
40-
- mkdir -p ${CARGO_TARGET_DIR}
41-
- ./scripts/ci/pre_cache.sh
42-
- sccache -s
43-
interruptible: true
44-
retry:
45-
max: 2
46-
when:
47-
- runner_system_failure
48-
- unknown_failure
49-
- api_failure
5042
tags:
51-
- linux-docker
43+
- linux-docker-vm-c2
5244

5345
.kubernetes-env: &kubernetes-env
54-
retry:
55-
max: 2
56-
when:
57-
- runner_system_failure
58-
- unknown_failure
59-
- api_failure
60-
interruptible: true
6146
tags:
6247
- kubernetes-parity-build
6348

@@ -93,7 +78,7 @@ build-linux:
9378
- time cargo build --release
9479
- time cargo test --release --all
9580
- mkdir -p ./artifacts/substrate-contracts-node-linux/
96-
- cp ${CARGO_TARGET_DIR}/release/substrate-contracts-node ./artifacts/substrate-contracts-node-linux/substrate-contracts-node
81+
- cp target/release/substrate-contracts-node ./artifacts/substrate-contracts-node-linux/substrate-contracts-node
9782

9883
### stage: build-mac
9984

0 commit comments

Comments
 (0)