properly use separate caches for stable/msrv/nightly jobs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lynne Megido 2021-04-29 00:27:43 +10:00
parent 6d6897a86e
commit 80f14085cf
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90

View File

@ -16,8 +16,8 @@ default:
stages:
- lint
- build
- test
- version
- test
# TEMPLATE
.cargo-build:
@ -64,12 +64,26 @@ build-msrv:
image: "rust:1.43.0"
cache:
key: msrv
paths:
- target
- .cargo
build-nightly:
extends: build-stable
image: "rustlang/rust:nightly"
cache:
key: nightly
paths:
- target
- .cargo
# VERSION
fif-version:
stage: version
needs: ["build-stable"]
script:
cargo run -- -V
# TEST
@ -83,6 +97,9 @@ test-msrv:
needs: ["build-msrv"]
cache:
key: msrv
paths:
- target
- .cargo
test-nightly:
extends: test-stable
@ -90,11 +107,6 @@ test-nightly:
needs: ["build-nightly"]
cache:
key: nightly
# VERSION
fif-version:
stage: version
needs: ["build-stable"]
script:
cargo run -- -V
paths:
- target
- .cargo