From 0f0e46ddc77f3f8a6cc6adc7587ccbfba7ed152b Mon Sep 17 00:00:00 2001 From: Buckram Date: Wed, 20 Dec 2023 18:35:08 +0200 Subject: [PATCH] copy only release inside container --- scripts/wasm-all-ci.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/wasm-all-ci.sh b/scripts/wasm-all-ci.sh index c6eb711155..d6ecdfae72 100755 --- a/scripts/wasm-all-ci.sh +++ b/scripts/wasm-all-ci.sh @@ -44,7 +44,8 @@ docker cp Cargo.lock with_code:/code docker cp ./contracts with_code:/code docker cp ./packages with_code:/code # Copy cache if any -docker cp ./target with_code:/code || true +docker cp ./target/release/build with_code:/target/release/build || true +docker cp ./target/release/deps with_code:/target/release/deps || true docker cp /usr/local/cargo/registry with_code:/usr/local/cargo/registry || true # Run the build docker run --name build_with_code --volumes-from with_code ${abstract_image}:0.15.0 @@ -85,7 +86,8 @@ fi docker cp Cargo.toml modules_with_code:/code docker cp Cargo.lock modules_with_code:/code # Copy cache if any -docker cp ./target modules_with_code:/code || true +docker cp ./target/release/build modules_with_code:/target/release/build || true +docker cp ./target/release/build modules_with_code:/target/release/deps || true docker cp /usr/local/cargo/registry modules_with_code:/usr/local/cargo/registry || true # copy code into this volume docker cp ./contracts modules_with_code:/code