diff --git a/ci/azure/macos_arm64_script b/ci/azure/macos_arm64_script index 44c5581ad25667172f408a5746d28cfe5c67de5b..4df3364eeaf9d562163d39d025ff38fd53642693 100755 --- a/ci/azure/macos_arm64_script +++ b/ci/azure/macos_arm64_script @@ -114,13 +114,12 @@ if [ "${BUILD_REASON}" != "PullRequest" ]; then SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1) BYTESIZE=$(wc -c < $TARBALL) - JSONFILE="macos-$GITBRANCH.json" - touch $JSONFILE - echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE + JSONFILE="tarball.json" + echo "{" >$JSONFILE + echo "\"tarball\": \"$TARBALL\"," >>$JSONFILE echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE - s3cmd put -P --add-header="Cache-Control: max-age=0, must-revalidate" "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE" s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$ARCH-macos-$VERSION.json" # `set -x` causes these variables to be mangled. diff --git a/ci/azure/pipelines.yml b/ci/azure/pipelines.yml index df7a6e654f6ff4c093092808df65674de176d426..f89b5bba9732e38f4198705357187f72c95a06ca 100644 --- a/ci/azure/pipelines.yml +++ b/ci/azure/pipelines.yml @@ -24,7 +24,7 @@ jobs: secureFile: s3cfg - script: ci/azure/macos_arm64_script name: main - displayName: 'Build and cross-compile' + displayName: 'Build' - job: BuildLinux pool: vmImage: 'ubuntu-18.04' diff --git a/ci/srht/index.html b/ci/srht/index.html index 353aaf01deed1e36f6c83692604fcf62f0413502..b1fa1af3c2ba815785697840e743d88663bac3e6 100644 --- a/ci/srht/index.html +++ b/ci/srht/index.html @@ -199,6 +199,12 @@ {{X86_64_MACOS_BYTESIZE}} {{X86_64_MACOS_SHASUM}} + + {{AARCH64_MACOS_TARBALL}} + Binary + {{AARCH64_MACOS_BYTESIZE}} + {{AARCH64_MACOS_SHASUM}} + {{X86_64_FREEBSD_TARBALL}} Binary diff --git a/ci/srht/index.json b/ci/srht/index.json index a5e89c084de817f61f8d572955d15a88d14cc3aa..7cb77f98f001219dd3f751c4d8b2266d9ac7ed4b 100644 --- a/ci/srht/index.json +++ b/ci/srht/index.json @@ -19,6 +19,11 @@ "shasum": "{{X86_64_MACOS_SHASUM}}", "size": "{{X86_64_MACOS_BYTESIZE}}" }, + "aarch64-macos": { + "tarball": "https://ziglang.org/builds/{{AARCH64_MACOS_TARBALL}}", + "shasum": "{{AARCH64_MACOS_SHASUM}}", + "size": "{{AARCH64_MACOS_BYTESIZE}}" + }, "x86_64-windows": { "tarball": "https://ziglang.org/builds/{{X86_64_WINDOWS_TARBALL}}", "shasum": "{{X86_64_WINDOWS_SHASUM}}", diff --git a/ci/srht/update_download_page b/ci/srht/update_download_page index 01fa62b911685ae9e403b7a95293a267433318c8..ebdb3ed6b0a5b917c2ee36fb542955e6f00a9c63 100755 --- a/ci/srht/update_download_page +++ b/ci/srht/update_download_page @@ -12,6 +12,7 @@ NATIVE_TARBALL="zig-linux-$(uname -m)-$VERSION.tar.xz" AARCH64_LINUX_JSON_URL="https://ziglang.org/builds/aarch64-linux-$VERSION.json" X86_64_LINUX_JSON_URL="https://ziglang.org/builds/x86_64-linux-$VERSION.json" X86_64_WINDOWS_JSON_URL="https://ziglang.org/builds/x86_64-windows-$VERSION.json" +AARCH64_MACOS_JSON_URL="https://ziglang.org/builds/aarch64-macos-$VERSION.json" X86_64_MACOS_JSON_URL="https://ziglang.org/builds/x86_64-macos-$VERSION.json" X86_64_FREEBSD_JSON_URL="https://ziglang.org/builds/x86_64-freebsd-$VERSION.json" @@ -20,6 +21,7 @@ X86_64_FREEBSD_JSON_URL="https://ziglang.org/builds/x86_64-freebsd-$VERSION.json curl --fail -I "$AARCH64_LINUX_JSON_URL" >/dev/null || exit 0 curl --fail -I "$X86_64_LINUX_JSON_URL" >/dev/null || exit 0 curl --fail -I "$X86_64_WINDOWS_JSON_URL" >/dev/null || exit 0 +curl --fail -I "$AARCH64_MACOS_JSON_URL" >/dev/null || exit 0 curl --fail -I "$X86_64_MACOS_JSON_URL" >/dev/null || exit 0 curl --fail -I "$X86_64_FREEBSD_JSON_URL" >/dev/null || exit 0 @@ -57,6 +59,11 @@ export X86_64_WINDOWS_TARBALL="$(echo "$X86_64_WINDOWS_JSON" | jq .tarball -r)" export X86_64_WINDOWS_BYTESIZE="$(echo "$X86_64_WINDOWS_JSON" | jq .size -r)" export X86_64_WINDOWS_SHASUM="$(echo "$X86_64_WINDOWS_JSON" | jq .shasum -r)" +AARCH64_MACOS_JSON=$(curl --fail "$AARCH64_MACOS_JSON_URL" || exit 1) +export AARCH64_MACOS_TARBALL="$(echo "$AARCH64_MACOS_JSON" | jq .tarball -r)" +export AARCH64_MACOS_BYTESIZE="$(echo "$AARCH64_MACOS_JSON" | jq .size -r)" +export AARCH64_MACOS_SHASUM="$(echo "$AARCH64_MACOS_JSON" | jq .shasum -r)" + X86_64_MACOS_JSON=$(curl --fail "$X86_64_MACOS_JSON_URL" || exit 1) export X86_64_MACOS_TARBALL="$(echo "$X86_64_MACOS_JSON" | jq .tarball -r)" export X86_64_MACOS_BYTESIZE="$(echo "$X86_64_MACOS_JSON" | jq .size -r)"