ci, wip: fix cargo cache, env expansion
ci/woodpecker/push/woodpecker Pipeline failed Details

Tomáš Mládek 2023-08-13 07:56:41 +02:00
parent 9f6e9992b2
commit 968fa47916
1 changed files with 5 additions and 10 deletions

View File

@ -33,9 +33,8 @@ pipeline:
group: init
image: albedo.lan:5000/upend-rust:latest
pull: true
environment:
CARGO_HOME: ${CI_WORKSPACE}/.cargo
commands:
- export CARGO_HOME=$CI_WORKSPACE/.cargo
- test -d $CARGO_HOME || cp -vr /usr/local/cargo $CARGO_HOME
cache:pushtest:
@ -63,9 +62,8 @@ pipeline:
prepare:build:wasmlib:
image: albedo.lan:5000/upend-rust:latest
pull: true
environment:
CARGO_HOME: ${CI_WORKSPACE}/.cargo
commands:
- export CARGO_HOME=$CI_WORKSPACE/.cargo
- rustc --version && cargo --version
- task build:wasmlib
# volumes:
@ -75,9 +73,8 @@ pipeline:
group: build
image: albedo.lan:5000/upend-rust:latest
pull: true
environment:
CARGO_HOME: ${CI_WORKSPACE}/.cargo
commands:
- export CARGO_HOME=$CI_WORKSPACE/.cargo
- rustc --version && cargo --version
- task build:backend
# volumes:
@ -95,9 +92,8 @@ pipeline:
group: lint
image: albedo.lan:5000/upend-rust:latest
pull: true
environment:
CARGO_HOME: ${CI_WORKSPACE}/.cargo
commands:
- export CARGO_HOME=$CI_WORKSPACE/.cargo
- rustup component add clippy
- task lint:backend
- git status -vvv
@ -150,9 +146,8 @@ pipeline:
group: test
image: albedo.lan:5000/upend-rust:latest
pull: true
environment:
CARGO_HOME: ${CI_WORKSPACE}/.cargo
commands:
- export CARGO_HOME=$CI_WORKSPACE/.cargo
- task test:backend
# volumes:
# - rust_registry:/usr/local/cargo