properly use separate caches for stable/msrv/nightly jobs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6d6897a86e
commit
80f14085cf
1 changed files with 21 additions and 9 deletions
|
@ -16,8 +16,8 @@ default:
|
||||||
stages:
|
stages:
|
||||||
- lint
|
- lint
|
||||||
- build
|
- build
|
||||||
- test
|
|
||||||
- version
|
- version
|
||||||
|
- test
|
||||||
|
|
||||||
# TEMPLATE
|
# TEMPLATE
|
||||||
.cargo-build:
|
.cargo-build:
|
||||||
|
@ -64,12 +64,26 @@ build-msrv:
|
||||||
image: "rust:1.43.0"
|
image: "rust:1.43.0"
|
||||||
cache:
|
cache:
|
||||||
key: msrv
|
key: msrv
|
||||||
|
paths:
|
||||||
|
- target
|
||||||
|
- .cargo
|
||||||
|
|
||||||
build-nightly:
|
build-nightly:
|
||||||
extends: build-stable
|
extends: build-stable
|
||||||
image: "rustlang/rust:nightly"
|
image: "rustlang/rust:nightly"
|
||||||
cache:
|
cache:
|
||||||
key: nightly
|
key: nightly
|
||||||
|
paths:
|
||||||
|
- target
|
||||||
|
- .cargo
|
||||||
|
|
||||||
|
# VERSION
|
||||||
|
|
||||||
|
fif-version:
|
||||||
|
stage: version
|
||||||
|
needs: ["build-stable"]
|
||||||
|
script:
|
||||||
|
cargo run -- -V
|
||||||
|
|
||||||
# TEST
|
# TEST
|
||||||
|
|
||||||
|
@ -83,6 +97,9 @@ test-msrv:
|
||||||
needs: ["build-msrv"]
|
needs: ["build-msrv"]
|
||||||
cache:
|
cache:
|
||||||
key: msrv
|
key: msrv
|
||||||
|
paths:
|
||||||
|
- target
|
||||||
|
- .cargo
|
||||||
|
|
||||||
test-nightly:
|
test-nightly:
|
||||||
extends: test-stable
|
extends: test-stable
|
||||||
|
@ -90,11 +107,6 @@ test-nightly:
|
||||||
needs: ["build-nightly"]
|
needs: ["build-nightly"]
|
||||||
cache:
|
cache:
|
||||||
key: nightly
|
key: nightly
|
||||||
|
paths:
|
||||||
# VERSION
|
- target
|
||||||
|
- .cargo
|
||||||
fif-version:
|
|
||||||
stage: version
|
|
||||||
needs: ["build-stable"]
|
|
||||||
script:
|
|
||||||
cargo run -- -V
|
|
||||||
|
|
Loading…
Reference in a new issue