mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-26 20:19:31 +00:00
build_nim.sh: handle an empty CI cache dir
This commit is contained in:
parent
22ada660b0
commit
3965cf91f7
@ -43,7 +43,7 @@ nim_needs_rebuilding() {
|
||||
if [[ ! -e "$NIM_DIR" ]]; then
|
||||
git clone --depth=1 https://github.com/status-im/Nim.git "$NIM_DIR"
|
||||
fi
|
||||
cp -a "$CI_CACHE"/* "$NIM_DIR"/bin/
|
||||
cp -a "$CI_CACHE"/* "$NIM_DIR"/bin/ || true # let this one fail with an empty cache dir
|
||||
fi
|
||||
|
||||
# compare binary mtime to the date of the last commit (keep in mind that Git doesn't preserve file timestamps)
|
||||
|
Loading…
x
Reference in New Issue
Block a user