Merge pull request 'Add caching for build target directory' (#1) from drone-volume-cache into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #1
This commit is contained in:
commit
e03e1aaa20
23
.drone.yml
23
.drone.yml
@ -3,6 +3,16 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: restore-target-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: target-cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
restore: true
|
||||||
|
mount:
|
||||||
|
- ./target
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:1
|
image: rust:1
|
||||||
volumes:
|
volumes:
|
||||||
@ -12,7 +22,20 @@ steps:
|
|||||||
- cargo build --verbose --all
|
- cargo build --verbose --all
|
||||||
- cargo test --verbose --all
|
- cargo test --verbose --all
|
||||||
|
|
||||||
|
- name: rebuild-target-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: target-cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
mount:
|
||||||
|
- ./target
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cargo-registry
|
- name: cargo-registry
|
||||||
host:
|
host:
|
||||||
path: /var/lib/drone/sprinklers_rs/cargo-registry
|
path: /var/lib/drone/sprinklers_rs/cargo-registry
|
||||||
|
- name: target-cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/drone/sprinklers_rs/target-cache
|
Loading…
x
Reference in New Issue
Block a user