mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 05:07:55 +00:00
CI optomizations
This commit is contained in:
@@ -11,22 +11,17 @@ stages:
|
||||
|
||||
variables:
|
||||
GIT_STRATEGY: fetch
|
||||
GIT_DEPTH: 3
|
||||
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
|
||||
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
|
||||
CARGO_INCREMENTAL: 0
|
||||
CI_SERVER_NAME: "GitLab CI"
|
||||
|
||||
.collect-artifacts: &collect-artifacts
|
||||
artifacts:
|
||||
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
|
||||
when: on_success
|
||||
expire_in: 7 days
|
||||
paths:
|
||||
- artifacts/
|
||||
|
||||
.docker-env: &docker-env
|
||||
image: parity/rust-builder:latest
|
||||
before_script:
|
||||
- cargo -vV
|
||||
- rustc -vV
|
||||
- rustup show
|
||||
- cargo --version
|
||||
- sccache -s
|
||||
@@ -36,9 +31,11 @@ variables:
|
||||
- schedules
|
||||
- web
|
||||
- /^[0-9]+$/ # PRs
|
||||
dependencies: []
|
||||
interruptible: true
|
||||
retry:
|
||||
max: 2
|
||||
when:
|
||||
when:
|
||||
- runner_system_failure
|
||||
- unknown_failure
|
||||
- api_failure
|
||||
|
||||
Reference in New Issue
Block a user