mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
ci/build.sh: Use a more portable command for getting the date to make it work on macOS too
This commit is contained in:
parent
f9bfceccd1
commit
6c3ccc8e29
@ -12,8 +12,7 @@ else
|
||||
# Use last commit date rather than build date to avoid ending up with builds for
|
||||
# different platforms having different version strings (and therefore producing different bytecode)
|
||||
# if the CI is triggered just before midnight.
|
||||
last_commit_timestamp=$(git log -1 --date=iso --format=%ad HEAD)
|
||||
date -d "$last_commit_timestamp" -u "+ci.%Y.%-m.%-d" >prerelease.txt
|
||||
TZ=UTC git show --quiet --date="format-local:%Y.%-m.%-d" --format="ci.%cd" >prerelease.txt
|
||||
fi
|
||||
|
||||
if [ -n "$CIRCLE_SHA1" ]
|
||||
|
Loading…
Reference in New Issue
Block a user