fetch doesnt need target dirs

This commit is contained in:
Bryan Stitt 2023-10-07 00:54:15 -07:00
parent a73337c4e8
commit 00991d67b8

View File

@ -90,13 +90,10 @@ COPY . .
# TODO: clean needed because of rust upgrade and jenkins caches :'( # TODO: clean needed because of rust upgrade and jenkins caches :'(
RUN --mount=type=cache,target=/root/.cargo/git \ RUN --mount=type=cache,target=/root/.cargo/git \
--mount=type=cache,target=/root/.cargo/registry \ --mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/app/target \
--mount=type=cache,target=/app/target_test \
set -eux -o pipefail; \ set -eux -o pipefail; \
\ \
[ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \ [ -e "$(pwd)/payment-contracts/src/contracts/mod.rs" ] || touch "$(pwd)/payment-contracts/build.rs"; \
cargo --locked fetch; \ cargo --locked fetch
CARGO_TARGET_DIR=target_test cargo --locked fetch
# build tests (done its in own FROM so that it can run in parallel) # build tests (done its in own FROM so that it can run in parallel)
FROM rust_with_env as build_tests FROM rust_with_env as build_tests