mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-05 00:36:45 +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
|
if [[ ! -e "$NIM_DIR" ]]; then
|
||||||
git clone --depth=1 https://github.com/status-im/Nim.git "$NIM_DIR"
|
git clone --depth=1 https://github.com/status-im/Nim.git "$NIM_DIR"
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
# compare binary mtime to the date of the last commit (keep in mind that Git doesn't preserve file timestamps)
|
# 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