| author | |
| committer | |
| log | bf4701562cff5f26cb119351a584fc59145a747a |
| tree | 09834e9a8e8127fd61ee22c5f5f0a0592cbb7077 |
| parent | b7fb63d6966cc46da19eda32f99ede5177bbdf4c |
| signature |
5 files changed, 40 insertions(+), 3 deletions(-)
ci/azure/linux_script+10| ... | ... | @@ -34,6 +34,16 @@ if [ "${BUILD_REASON}" != "PullRequest" ]; then |
| 34 | 34 | |
| 35 | 35 | SHASUM=$(sha256sum $ARTIFACTSDIR/$TARBALL | cut '-d ' -f1) |
| 36 | 36 | BYTESIZE=$(wc -c < $ARTIFACTSDIR/$TARBALL) |
| 37 | ||
| 38 | JSONFILE="linux-$GITBRANCH.json" | |
| 39 | touch $JSONFILE | |
| 40 | echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE | |
| 41 | echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE | |
| 42 | echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE | |
| 43 | ||
| 44 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE" | |
| 45 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/linux-$VERSION.json" | |
| 46 | ||
| 37 | 47 | # `set -x` causes these variables to be mangled. |
| 38 | 48 | # See https://developercommunity.visualstudio.com/content/problem/375679/pipeline-variable-incorrectly-inserts-single-quote.html |
| 39 | 49 | set +x |
ci/azure/macos_script+10| ... | ... | @@ -91,6 +91,16 @@ if [ "${BUILD_REASON}" != "PullRequest" ]; then |
| 91 | 91 | |
| 92 | 92 | SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1) |
| 93 | 93 | BYTESIZE=$(wc -c < $TARBALL) |
| 94 | ||
| 95 | JSONFILE="macos-$GITBRANCH.json" | |
| 96 | touch $JSONFILE | |
| 97 | echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE | |
| 98 | echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE | |
| 99 | echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE | |
| 100 | ||
| 101 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE" | |
| 102 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/macos-$VERSION.json" | |
| 103 | ||
| 94 | 104 | # `set -x` causes these variables to be mangled. |
| 95 | 105 | # See https://developercommunity.visualstudio.com/content/problem/375679/pipeline-variable-incorrectly-inserts-single-quote.html |
| 96 | 106 | set +x |
ci/azure/update_download_page+7-1| ... | ... | @@ -6,7 +6,7 @@ set -e |
| 6 | 6 | SRCDIR=$(pwd) |
| 7 | 7 | rm -rf .git |
| 8 | 8 | sudo apt-get update -y |
| 9 | sudo apt-get install -y s3cmd | |
| 9 | sudo apt-get install -y s3cmd curl jq | |
| 10 | 10 | |
| 11 | 11 | cd "$HOME" |
| 12 | 12 | wget "https://ziglang.org/builds/$LINUX_TARBALL" |
| ... | ... | @@ -22,6 +22,12 @@ tar cfJ "$SRC_TARBALL" "$SRCTARBALLDIR" |
| 22 | 22 | export SRC_SHASUM=$(sha256sum $SRC_TARBALL | cut '-d ' -f1) |
| 23 | 23 | export SRC_BYTESIZE=$(wc -c < $SRC_TARBALL) |
| 24 | 24 | |
| 25 | # the freebsd build has to be there too | |
| 26 | FREEBSD_JSON=$(curl --fail "https://ziglang.org/builds/freebsd-$VERSION.json" || exit 1) | |
| 27 | export FREEBSD_TARBALL=$(echo "$FREEBSD_JSON" | jq .tarball -r) | |
| 28 | export FREEBSD_BYTESIZE=$(echo "$FREEBSD_JSON" | jq .size -r) | |
| 29 | export FREEBSD_SHASUM=$(echo "$FREEBSD_JSON" | jq .shasum -r) | |
| 30 | ||
| 25 | 31 | git clone https://github.com/ziglang/www.ziglang.org --depth 1 |
| 26 | 32 | cd www.ziglang.org |
| 27 | 33 | export MASTER_DATE=$(date +%Y-%m-%d) |
ci/azure/windows_upload+10| ... | ... | @@ -25,6 +25,16 @@ if [ "${BUILD_REASON}" != "PullRequest" ]; then |
| 25 | 25 | |
| 26 | 26 | SHASUM=$(sha256sum $TARBALL | cut '-d ' -f1) |
| 27 | 27 | BYTESIZE=$(wc -c < $TARBALL) |
| 28 | ||
| 29 | JSONFILE="windows-$GITBRANCH.json" | |
| 30 | touch $JSONFILE | |
| 31 | echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE | |
| 32 | echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE | |
| 33 | echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE | |
| 34 | ||
| 35 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE" | |
| 36 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/windows-$VERSION.json" | |
| 37 | ||
| 28 | 38 | # `set -x` causes these variables to be mangled. |
| 29 | 39 | # See https://developercommunity.visualstudio.com/content/problem/375679/pipeline-variable-incorrectly-inserts-single-quote.html |
| 30 | 40 | set +x |
ci/srht/freebsd_script+3-2| ... | ... | @@ -29,7 +29,7 @@ if [ -f ~/.s3cfg ]; then |
| 29 | 29 | mv release/bin/zig release/ |
| 30 | 30 | rmdir release/bin |
| 31 | 31 | |
| 32 | GITBRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| 32 | GITBRANCH=$(basename $GITHUB_REF) | |
| 33 | 33 | VERSION=$(release/zig version) |
| 34 | 34 | DIRNAME="zig-freebsd-x86_64-$VERSION" |
| 35 | 35 | TARBALL="$DIRNAME.tar.xz" |
| ... | ... | @@ -49,5 +49,6 @@ if [ -f ~/.s3cfg ]; then |
| 49 | 49 | echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE |
| 50 | 50 | echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE |
| 51 | 51 | |
| 52 | s3cmd put -P "$JSONFILE" s3://ziglang.org/builds/$JSONFILE | |
| 52 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE" | |
| 53 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/freebsd-$VERSION.json" | |
| 53 | 54 | fi |