From cda523bc21158db05097517d4328fc72e533661b Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Thu, 1 Mar 2018 15:41:49 +0300 Subject: [PATCH] CI: Fix cargo cache (#7968) * Fix cache Blocking waiting for file lock on the registry index * Only clean locked cargo cache on windows --- scripts/gitlab-build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/gitlab-build.sh b/scripts/gitlab-build.sh index 1df0db11d..42595a80a 100755 --- a/scripts/gitlab-build.sh +++ b/scripts/gitlab-build.sh @@ -48,6 +48,12 @@ set_env_win () { echo "@ signtool sign /f "\%"1 /p "\%"2 /tr http://timestamp.comodoca.com /du https://parity.io "\%"3" > sign.cmd } build () { + if [[ "windows" = $IDENT ]] + then + # This is a nasty hack till we figure out the proper cargo caching strategy + echo "Remove index" + rm -rf cargo/registry/index/*. + fi echo "Build parity:" cargo build --target $PLATFORM --features final --release echo "Build evmbin:"