-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: enable bincheck for tag pushes
Previously, in order to run `bincheck` as part of the release process, we would need to follow hands-on instructions at https://github.com/cockroachdb/bincheck/blob/master/README.md. This process requires some time and error prone. This patch enables GitHub actions on tag push events and automates the task. Release note: None
- Loading branch information
Showing
7 changed files
with
57 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
source ./download_binary.sh | ||
|
||
# Download the binary based on the VERSION file. This sets the COCKROACH_VERSION env variable | ||
# and downloads the binary in ./mnt/ | ||
. download_binary.sh "darwin-10.9-amd64.tgz" | ||
# Verify arguments. | ||
if [[ $# -ne 2 ]] | ||
then | ||
echo "usage: $0 EXPECTED-VERSION EXPECTED-SHA" >&2 | ||
exit 1 | ||
fi | ||
|
||
COCKROACH_VERSION=$1 | ||
COCKROACH_SHA=$2 | ||
|
||
download_and_extract "$COCKROACH_VERSION" "darwin-10.9-amd64.tgz" | ||
./bincheck ./mnt/cockroach "$COCKROACH_VERSION" "$COCKROACH_SHA" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
source ./download_binary.sh | ||
|
||
# Download the binary based on the VERSION file. This sets the COCKROACH_VERSION env variable | ||
# and downloads the binary in ./mnt/ | ||
. download_binary.sh "windows-6.2-amd64.zip" | ||
if [[ $# -ne 2 ]] | ||
then | ||
echo "usage: $0 EXPECTED-VERSION EXPECTED-SHA" >&2 | ||
exit 1 | ||
fi | ||
|
||
COCKROACH_VERSION=$1 | ||
COCKROACH_SHA=$2 | ||
|
||
download_and_extract "$COCKROACH_VERSION" "windows-6.2-amd64.zip" | ||
./bincheck ./mnt/cockroach.exe "$COCKROACH_VERSION" "$COCKROACH_SHA" |