commit 14d77108b8c7ba8d88eaa4a1b27d88d170f1caa8 (tree)
parent 670b4c5c02edc8fdfb4a73e72388ac0a140f8856
Author: Andrew Kelley <andrew@ziglang.org>
Date: Mon, 21 Nov 2022 20:16:42 -0700
CI: switch to GitHub Actions
This is a merge commit.
Diffstat:
27 files changed, 1257 insertions(+), 1784 deletions(-)
diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml
@@ -1,8 +0,0 @@
-image: freebsd/latest
-secrets:
- - 51bfddf5-86a6-4e01-8576-358c72a4a0a4
- - be22288f-b1bc-4243-abe3-43d8f0e7079b
-sources:
- - https://github.com/ziglang/zig
-tasks:
- - build: cd zig && ./ci/srht/freebsd_script
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
@@ -0,0 +1,70 @@
+name: push_ci
+run-name: Push CI
+on:
+ push:
+ branches:
+ - master
+jobs:
+ aarch64-linux:
+ runs-on: [self-hosted, Linux, aarch64]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Build and Test
+ run: sh ./ci/linux/build-aarch64.sh
+ x86_64-linux-debug:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Build and Test
+ run: sh ./ci/linux/build-x86_64-debug.sh
+ x86_64-linux-release:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Build and Test
+ run: sh ./ci/linux/build-x86_64-release.sh
+ x86_64-macos:
+ strategy:
+ matrix:
+ version: ["11", "12"]
+ runs-on: "macos-${{ matrix.version }}"
+ env:
+ ARCH: "x86_64"
+ MACOS_VERSION: ${{ matrix.version }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Run Build Script
+ run: ./ci/macos/build-x86_64.sh
+ aarch64-macos:
+ runs-on: [self-hosted, macOS, aarch64]
+ env:
+ ARCH: "aarch64"
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Run Build Script
+ run: ./ci/macos/build-aarch64.sh
+ x86_64-windows:
+ runs-on: windows-latest
+ env:
+ ARCH: "x86_64"
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Run Build Script
+ run: ./ci/windows/build.ps1
+ build-tarballs:
+ needs: [aarch64-linux, x86_64-macos, aarch64-macos, x86_64-windows, x86_64-linux-debug, x86_64-linux-release]
+ runs-on: [self-hosted, Linux, aarch64]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Build Tarballs
+ run: sh ./ci/linux/build-tarballs.sh
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -121,7 +121,7 @@ string(REGEX REPLACE "\\\\" "\\\\\\\\" ZIG_LIBC_INCLUDE_DIR_ESCAPED "${ZIG_LIBC_
option(ZIG_TEST_COVERAGE "Build Zig with test coverage instrumentation" OFF)
set(ZIG_TARGET_TRIPLE "native" CACHE STRING "arch-os-abi to output binaries for")
-set(ZIG_TARGET_MCPU "baseline" CACHE STRING "-mcpu parameter to output binaries for")
+set(ZIG_TARGET_MCPU "native" CACHE STRING "-mcpu parameter to output binaries for")
set(ZIG_EXECUTABLE "" CACHE STRING "(when cross compiling) path to already-built zig binary")
set(ZIG_SINGLE_THREADED off CACHE BOOL "limit the zig compiler to use only 1 thread")
set(ZIG_OMIT_STAGE2 off CACHE BOOL "omit the stage2 backend from stage1")
@@ -1036,8 +1036,8 @@ set(BUILD_ZIG2_ARGS
"-femit-bin=${ZIG2_OBJECT}"
-fcompiler-rt
${ZIG_SINGLE_THREADED_ARG}
- -target "${ZIG_TARGET_TRIPLE}"
- -mcpu "${ZIG_TARGET_MCPU}"
+ -target native
+ -mcpu native
-lc
--pkg-begin build_options "${ZIG_CONFIG_ZIG_OUT}"
--pkg-end
diff --git a/ci/azure/macos_script b/ci/azure/macos_script
@@ -1,106 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-brew update && brew install ncurses s3cmd
-
-ZIGDIR="$(pwd)"
-ARCH="x86_64"
-TARGET="$ARCH-macos-none"
-MCPU="baseline"
-CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.10.0-dev.4560+828735ac0"
-PREFIX="$HOME/$CACHE_BASENAME"
-JOBS="-j2"
-
-rm -rf $PREFIX
-cd $HOME
-
-wget -nv "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz"
-tar xf "$CACHE_BASENAME.tar.xz"
-
-ZIG="$PREFIX/bin/zig"
-export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
-export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
-
-cd $ZIGDIR
-
-# Make the `zig version` number consistent.
-# This will affect the cmake command below.
-git config core.abbrev 9
-git fetch --unshallow || true
-git fetch --tags
-
-mkdir build
-cd build
-cmake .. \
- -DCMAKE_INSTALL_PREFIX="stage3-release" \
- -DCMAKE_PREFIX_PATH="$PREFIX" \
- -DCMAKE_BUILD_TYPE=Release \
- -DZIG_TARGET_TRIPLE="$TARGET" \
- -DZIG_TARGET_MCPU="$MCPU" \
- -DZIG_STATIC=ON
-
-# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
-# so that installation and testing do not get affected by them.
-unset CC
-unset CXX
-
-make $JOBS install
-
-stage3-release/bin/zig build test docs \
- --zig-lib-dir "$(pwd)/../lib" \
- -Denable-macos-sdk \
- -Dstatic-llvm \
- -Dskip-non-native \
- --search-prefix "$PREFIX"
-
-# Produce the experimental std lib documentation.
-mkdir -p "stage3-release/doc/std"
-stage3-release/bin/zig test "$(pwd)/../lib/std/std.zig" \
- --zig-lib-dir "$(pwd)/../lib" \
- -femit-docs="$(pwd)/stage3-release/doc/std" \
- -fno-emit-bin
-
-if [ "${BUILD_REASON}" != "PullRequest" ]; then
- # Remove the unnecessary bin dir in stage3-release/bin/zig
- mv stage3-release/bin/zig stage3-release/
- rmdir stage3-release/bin
-
- # Remove the unnecessary zig dir in stage3-release/lib/zig/std/std.zig
- mv stage3-release/lib/zig stage3-release/lib2
- rmdir stage3-release/lib
- mv stage3-release/lib2 stage3-release/lib
-
- mv ../LICENSE stage3-release/
- mv ../zig-cache/langref.html stage3-release/doc
-
- VERSION=$(stage3-release/zig version)
- DIRNAME="zig-macos-$ARCH-$VERSION"
- TARBALL="$DIRNAME.tar.xz"
- mv stage3-release "$DIRNAME"
- tar cfJ "$TARBALL" "$DIRNAME"
-
- mv "$DOWNLOADSECUREFILE_SECUREFILEPATH" "$HOME/.s3cfg"
- s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/
-
- SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1)
- BYTESIZE=$(wc -c < $TARBALL)
-
- JSONFILE="macos-$GITBRANCH.json"
- touch $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.
- # See https://developercommunity.visualstudio.com/content/problem/375679/pipeline-variable-incorrectly-inserts-single-quote.html
- set +x
- echo "##vso[task.setvariable variable=tarball;isOutput=true]$TARBALL"
- echo "##vso[task.setvariable variable=shasum;isOutput=true]$SHASUM"
- echo "##vso[task.setvariable variable=bytesize;isOutput=true]$BYTESIZE"
- echo "##vso[task.setvariable variable=version;isOutput=true]$VERSION"
-fi
diff --git a/ci/azure/on_master_success b/ci/azure/on_master_success
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-# We do not set -x because this would leak the oauth access token.
-set +x
-
-set -e
-
-sudo apt-get update -y
-sudo apt-get install -y curl jq
-
-OAUTH_TOKEN="$(cat "$DOWNLOADSECUREFILE_SECUREFILEPATH")"
-./ci/srht/on_master_success "$VERSION" "$OAUTH_TOKEN"
diff --git a/ci/azure/pipelines.yml b/ci/azure/pipelines.yml
@@ -1,169 +0,0 @@
-jobs:
-- job: BuildMacOS
- pool:
- vmImage: 'macOS-11'
- timeoutInMinutes: 360
- steps:
- - task: DownloadSecureFile@1
- inputs:
- secureFile: s3cfg
- - script: ci/azure/macos_script
- name: main
- displayName: 'Build and test'
-- job: BuildWindows
- timeoutInMinutes: 360
- pool:
- vmImage: 'windows-2019'
- variables:
- TARGET: 'x86_64-windows-gnu'
- ZIG_LLVM_CLANG_LLD_NAME: 'zig+llvm+lld+clang-${{ variables.TARGET }}-0.11.0-dev.25+499dddb4c'
- ZIG_LLVM_CLANG_LLD_URL: 'https://ziglang.org/deps/${{ variables.ZIG_LLVM_CLANG_LLD_NAME }}.zip'
- steps:
- - pwsh: |
- (New-Object Net.WebClient).DownloadFile("$(ZIG_LLVM_CLANG_LLD_URL)", "${ZIG_LLVM_CLANG_LLD_NAME}.zip")
- & 'C:\Program Files\7-Zip\7z.exe' x "${ZIG_LLVM_CLANG_LLD_NAME}.zip"
- name: install
- displayName: 'Install ZIG/LLVM/CLANG/LLD'
-
- - pwsh: |
- Set-Variable -Name ZIGLIBDIR -Value "$(Get-Location)\lib"
- Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\stage3-release"
- Set-Variable -Name ZIGPREFIXPATH -Value "$(Get-Location)\$(ZIG_LLVM_CLANG_LLD_NAME)"
-
- function CheckLastExitCode {
- if (!$?) {
- exit 1
- }
- return 0
- }
-
- # Make the `zig version` number consistent.
- # This will affect the `zig build` command below which uses `git describe`.
- git config core.abbrev 9
- git fetch --tags
- if ((git rev-parse --is-shallow-repository) -eq "true") {
- git fetch --unshallow # `git describe` won't work on a shallow repo
- }
-
- & "$ZIGPREFIXPATH\bin\zig.exe" build `
- --prefix "$ZIGINSTALLDIR" `
- --search-prefix "$ZIGPREFIXPATH" `
- --zig-lib-dir "$ZIGLIBDIR" `
- -Denable-stage1 `
- -Dstatic-llvm `
- -Drelease `
- -Dstrip `
- -Duse-zig-libcxx `
- -Dtarget=$(TARGET)
- CheckLastExitCode
- name: build
- displayName: 'Build'
-
- - pwsh: |
- Set-Variable -Name ZIGLIBDIR -Value "$(Get-Location)\lib"
- Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\stage3-release"
- Set-Variable -Name ZIGPREFIXPATH -Value "$(Get-Location)\$(ZIG_LLVM_CLANG_LLD_NAME)"
-
- function CheckLastExitCode {
- if (!$?) {
- exit 1
- }
- return 0
- }
-
- & "$ZIGINSTALLDIR\bin\zig.exe" build test docs `
- --search-prefix "$ZIGPREFIXPATH" `
- -Dstatic-llvm `
- -Dskip-non-native
- CheckLastExitCode
-
- # Produce the experimental std lib documentation.
- mkdir "$ZIGINSTALLDIR\doc\std" -force
- & "$ZIGINSTALLDIR\bin\zig.exe" test "$ZIGLIBDIR\std\std.zig" `
- --zig-lib-dir "$ZIGLIBDIR" `
- -femit-docs="$ZIGINSTALLDIR\doc\std" `
- -fno-emit-bin
-
- name: test
- displayName: 'Test'
-
- - task: DownloadSecureFile@1
- inputs:
- name: aws_credentials
- secureFile: aws_credentials
-
- - pwsh: |
- $Env:AWS_SHARED_CREDENTIALS_FILE = "$Env:DOWNLOADSECUREFILE_SECUREFILEPATH"
-
- # Workaround Azure networking issue
- # https://github.com/aws/aws-cli/issues/5749
- $Env:AWS_EC2_METADATA_DISABLED = "true"
- $Env:AWS_REGION = "us-west-2"
-
- mv LICENSE stage3-release/
- mv zig-cache/langref.html stage3-release/
- mv stage3-release/bin/zig.exe stage3-release/
- rmdir stage3-release/bin
-
- # Remove the unnecessary zig dir in $prefix/lib/zig/std/std.zig
- mv stage3-release/lib/zig stage3-release/lib2
- rmdir stage3-release/lib
- mv stage3-release/lib2 stage3-release/lib
-
- Set-Variable -Name VERSION -Value $(./stage3-release/zig.exe version)
- Set-Variable -Name DIRNAME -Value "zig-windows-x86_64-$VERSION"
- Set-Variable -Name TARBALL -Value "$DIRNAME.zip"
- mv stage3-release "$DIRNAME"
- 7z a "$TARBALL" "$DIRNAME"
-
- aws s3 cp `
- "$TARBALL" `
- s3://ziglang.org/builds/ `
- --acl public-read `
- --cache-control 'public, max-age=31536000, immutable'
-
- Set-Variable -Name SHASUM -Value (Get-FileHash "$TARBALL" -Algorithm SHA256 | select-object -ExpandProperty Hash).ToLower()
- Set-Variable -Name BYTESIZE -Value (Get-Item "$TARBALL").length
-
- Set-Variable -Name JSONFILE -Value "windows-${Env:BUILD_SOURCEBRANCHNAME}.json"
- echo $null > $JSONFILE
- echo ('{"tarball": "' + $TARBALL + '",') >> $JSONFILE
- echo ('"shasum": "' + $SHASUM + '",') >> $JSONFILE
- echo ('"size": ' + $BYTESIZE + '}' ) >> $JSONFILE
-
- aws s3 cp `
- "$JSONFILE" `
- s3://ziglang.org/builds/ `
- --acl public-read `
- --cache-control 'max-age=0, must-revalidate'
-
- aws s3 cp `
- "$JSONFILE" `
- "s3://ziglang.org/builds/x86_64-windows-${VERSION}.json" `
- --acl public-read
-
- echo "##vso[task.setvariable variable=tarball;isOutput=true]$TARBALL"
- echo "##vso[task.setvariable variable=shasum;isOutput=true]$SHASUM"
- echo "##vso[task.setvariable variable=bytesize;isOutput=true]$BYTESIZE"
-
- name: upload
- condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
- displayName: 'Upload'
-
-- job: OnMasterSuccess
- dependsOn:
- - BuildMacOS
- - BuildWindows
- condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
- strategy:
- maxParallel: 1
- pool:
- vmImage: 'ubuntu-20.04'
- variables:
- version: $[ dependencies.BuildMacOS.outputs['main.version'] ]
- steps:
- - task: DownloadSecureFile@1
- inputs:
- secureFile: oauth_token
- - script: ci/azure/on_master_success
- displayName: 'master branch success hook'
diff --git a/ci/index.json b/ci/index.json
@@ -0,0 +1,696 @@
+{
+ "master": {
+ "version": "{{MASTER_VERSION}}",
+ "date": "{{MASTER_DATE}}",
+ "docs": "https://ziglang.org/documentation/master/",
+ "stdDocs": "https://ziglang.org/documentation/master/std/",
+ "src": {
+ "tarball": "https://ziglang.org/builds/{{SRC_TARBALL}}",
+ "shasum": "{{SRC_SHASUM}}",
+ "size": "{{SRC_BYTESIZE}}"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/builds/{{X86_64_FREEBSD_TARBALL}}",
+ "shasum": "{{X86_64_FREEBSD_SHASUM}}",
+ "size": "{{X86_64_FREEBSD_BYTESIZE}}"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/builds/{{X86_64_MACOS_TARBALL}}",
+ "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}}",
+ "size": "{{X86_64_WINDOWS_BYTESIZE}}"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/builds/{{X86_64_LINUX_TARBALL}}",
+ "shasum": "{{X86_64_LINUX_SHASUM}}",
+ "size": "{{X86_64_LINUX_BYTESIZE}}"
+ },
+ "aarch64-linux": {
+ "tarball": "https://ziglang.org/builds/{{AARCH64_LINUX_TARBALL}}",
+ "shasum": "{{AARCH64_LINUX_SHASUM}}",
+ "size": "{{AARCH64_LINUX_BYTESIZE}}"
+ }
+ },
+ "0.10.0": {
+ "date": "2022-10-31",
+ "docs": "https://ziglang.org/documentation/0.10.0/",
+ "stdDocs": "https://ziglang.org/documentation/0.10.0/std/",
+ "notes": "https://ziglang.org/download/0.10.0/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-0.10.0.tar.xz",
+ "shasum": "d8409f7aafc624770dcd050c8fa7e62578be8e6a10956bca3c86e8531c64c136",
+ "size": "14530912"
+ },
+ "bootstrap": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-bootstrap-0.10.0.tar.xz",
+ "shasum": "c13dc70c4ff4c09f749adc0d473cbd3942991dd4d1bd2d860fbf257d8c1bbabf",
+ "size": "45625516"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-freebsd-x86_64-0.10.0.tar.xz",
+ "shasum": "dd77afa2a8676afbf39f7d6068eda81b0723afd728642adaac43cb2106253d65",
+ "size": "44056504"
+ },
+ "aarch64-linux": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-linux-aarch64-0.10.0.tar.xz",
+ "shasum": "09ef50c8be73380799804169197820ee78760723b0430fa823f56ed42b06ea0f",
+ "size": "40387688"
+ },
+ "armv7a-linux": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-linux-armv7a-0.10.0.tar.xz",
+ "shasum": "7201b2e89cd7cc2dde95d39485fd7d5641ba67dc6a9a58c036cb4c308d2e82de",
+ "size": "50805936"
+ },
+ "i386-linux": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-linux-i386-0.10.0.tar.xz",
+ "shasum": "dac8134f1328c50269f3e50b334298ec7916cb3b0ef76927703ddd1c96fd0115",
+ "size": "48451732"
+ },
+ "riscv64-linux": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-linux-riscv64-0.10.0.tar.xz",
+ "shasum": "2a126f3401a7a7efc4b454f0a85c133db1af5a9dfee117f172213b7cbd47bfba",
+ "size": "42272968"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz",
+ "shasum": "631ec7bcb649cd6795abe40df044d2473b59b44e10be689c15632a0458ddea55",
+ "size": "44142400"
+ },
+ "aarch64-macos": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-macos-aarch64-0.10.0.tar.xz",
+ "shasum": "02f7a7839b6a1e127eeae22ea72c87603fb7298c58bc35822a951479d53c7557",
+ "size": "40602664"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-macos-x86_64-0.10.0.tar.xz",
+ "shasum": "3a22cb6c4749884156a94ea9b60f3a28cf4e098a69f08c18fbca81c733ebfeda",
+ "size": "45175104"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-windows-x86_64-0.10.0.zip",
+ "shasum": "a66e2ff555c6e48781de1bcb0662ef28ee4b88af3af2a577f7b1950e430897ee",
+ "size": "73181558"
+ },
+ "aarch64-windows": {
+ "tarball": "https://ziglang.org/download/0.10.0/zig-windows-aarch64-0.10.0.zip",
+ "shasum": "1bbda8d123d44f3ae4fa90d0da04b1e9093c3f9ddae3429a4abece1e1c0bf19a",
+ "size": "69332389"
+ }
+ },
+ "0.9.1": {
+ "date": "2022-02-14",
+ "docs": "https://ziglang.org/documentation/0.9.1/",
+ "stdDocs": "https://ziglang.org/documentation/0.9.1/std/",
+ "notes": "https://ziglang.org/download/0.9.1/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-0.9.1.tar.xz",
+ "shasum": "38cf4e84481f5facc766ba72783e7462e08d6d29a5d47e3b75c8ee3142485210",
+ "size": "13940828"
+ },
+ "bootstrap": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-bootstrap-0.9.1.tar.xz",
+ "shasum": "0a8e221c71860d8975c15662b3ed3bd863e81c4fe383455a596e5e0e490d6109",
+ "size": "42488812"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-freebsd-x86_64-0.9.1.tar.xz",
+ "shasum": "4e06009bd3ede34b72757eec1b5b291b30aa0d5046dadd16ecb6b34a02411254",
+ "size": "39028848"
+ },
+ "aarch64-linux": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-linux-aarch64-0.9.1.tar.xz",
+ "shasum": "5d99a39cded1870a3fa95d4de4ce68ac2610cca440336cfd252ffdddc2b90e66",
+ "size": "37034860"
+ },
+ "armv7a-linux": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-linux-armv7a-0.9.1.tar.xz",
+ "shasum": "6de64456cb4757a555816611ea697f86fba7681d8da3e1863fa726a417de49be",
+ "size": "37974652"
+ },
+ "i386-linux": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-linux-i386-0.9.1.tar.xz",
+ "shasum": "e776844fecd2e62fc40d94718891057a1dbca1816ff6013369e9a38c874374ca",
+ "size": "44969172"
+ },
+ "riscv64-linux": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-linux-riscv64-0.9.1.tar.xz",
+ "shasum": "208dea53662c2c52777bd9e3076115d2126a4f71aed7f2ff3b8fe224dc3881aa",
+ "size": "39390868"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz",
+ "shasum": "be8da632c1d3273f766b69244d80669fe4f5e27798654681d77c992f17c237d7",
+ "size": "41011464"
+ },
+ "aarch64-macos": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-macos-aarch64-0.9.1.tar.xz",
+ "shasum": "8c473082b4f0f819f1da05de2dbd0c1e891dff7d85d2c12b6ee876887d438287",
+ "size": "38995640"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-macos-x86_64-0.9.1.tar.xz",
+ "shasum": "2d94984972d67292b55c1eb1c00de46580e9916575d083003546e9a01166754c",
+ "size": "43713044"
+ },
+ "i386-windows": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-windows-i386-0.9.1.zip",
+ "shasum": "74a640ed459914b96bcc572183a8db687bed0af08c30d2ea2f8eba03ae930f69",
+ "size": "67929868"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-windows-x86_64-0.9.1.zip",
+ "shasum": "443da53387d6ae8ba6bac4b3b90e9fef4ecbe545e1c5fa3a89485c36f5c0e3a2",
+ "size": "65047697"
+ },
+ "aarch64-windows": {
+ "tarball": "https://ziglang.org/download/0.9.1/zig-windows-aarch64-0.9.1.zip",
+ "shasum": "621bf95f54dc3ff71466c5faae67479419951d7489e40e87fd26d195825fb842",
+ "size": "61478151"
+ }
+ },
+ "0.9.0": {
+ "date": "2021-12-20",
+ "docs": "https://ziglang.org/documentation/0.9.0/",
+ "stdDocs": "https://ziglang.org/documentation/0.9.0/std/",
+ "notes": "https://ziglang.org/download/0.9.0/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-0.9.0.tar.xz",
+ "shasum": "cd1be83b12f8269cc5965e59877b49fdd8fa638efb6995ac61eb4cea36a2e381",
+ "size": "13928772"
+ },
+ "bootstrap": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-bootstrap-0.9.0.tar.xz",
+ "shasum": "16b0bdf0bc0a5ed1e0950e08481413d806192e06443a512347526647b2baeabc",
+ "size": "42557736"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-freebsd-x86_64-0.9.0.tar.xz",
+ "shasum": "c95afe679b7cc4110dc2ecd3606c83a699718b7a958d6627f74c20886333e194",
+ "size": "41293236"
+ },
+ "aarch64-linux": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-linux-aarch64-0.9.0.tar.xz",
+ "shasum": "1524fedfdbade2dbc9bae1ed98ad38fa7f2114c9a3e94da0d652573c75efbc5a",
+ "size": "40008396"
+ },
+ "armv7a-linux": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-linux-armv7a-0.9.0.tar.xz",
+ "shasum": "50225dee6e6448a63ee96383a34d9fe3bba34ae8da1a0c8619bde2cdfc1df87d",
+ "size": "41196876"
+ },
+ "i386-linux": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-linux-i386-0.9.0.tar.xz",
+ "shasum": "b0dcf688349268c883292acdd55eaa3c13d73b9146e4b990fad95b84a2ac528b",
+ "size": "47408656"
+ },
+ "riscv64-linux": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-linux-riscv64-0.9.0.tar.xz",
+ "shasum": "85466de07504767ed37f59782672ad41bbdf43d6480fafd07f45543278b07620",
+ "size": "44171420"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-linux-x86_64-0.9.0.tar.xz",
+ "shasum": "5c55344a877d557fb1b28939785474eb7f4f2f327aab55293998f501f7869fa6",
+ "size": "43420796"
+ },
+ "aarch64-macos": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-macos-aarch64-0.9.0.tar.xz",
+ "shasum": "3991c70594d61d09fb4b316157a7c1d87b1d4ec159e7a5ecd11169ff74cad832",
+ "size": "39013392"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-macos-x86_64-0.9.0.tar.xz",
+ "shasum": "c5280eeec4d6e5ea5ce5b448dc9a7c4bdd85ecfed4c1b96aa0835e48b36eccf0",
+ "size": "43764596"
+ },
+ "i386-windows": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-windows-i386-0.9.0.zip",
+ "shasum": "bb839434afc75092015cf4c33319d31463c18512bc01dd719aedf5dcbc368466",
+ "size": "67946715"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-windows-x86_64-0.9.0.zip",
+ "shasum": "084ea2646850aaf068234b0f1a92b914ed629be47075e835f8a67d55c21d880e",
+ "size": "65045849"
+ },
+ "aarch64-windows": {
+ "tarball": "https://ziglang.org/download/0.9.0/zig-windows-aarch64-0.9.0.zip",
+ "shasum": "f9018725e3fb2e8992b17c67034726971156eb190685018a9ac8c3a9f7a22340",
+ "size": "61461921"
+ }
+ },
+ "0.8.1": {
+ "date": "2021-09-06",
+ "docs": "https://ziglang.org/documentation/0.8.1/",
+ "stdDocs": "https://ziglang.org/documentation/0.8.1/std/",
+ "notes": "https://ziglang.org/download/0.8.1/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-0.8.1.tar.xz",
+ "shasum": "8c428e14a0a89cb7a15a6768424a37442292858cdb695e2eb503fa3c7bf47f1a",
+ "size": "12650228"
+ },
+ "bootstrap": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-bootstrap-0.8.1.tar.xz",
+ "shasum": "fa1239247f830ecd51c42537043f5220e4d1dfefdc54356fa419616a0efb3902",
+ "size": "43613464"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-freebsd-x86_64-0.8.1.tar.xz",
+ "shasum": "fc4f6478bcf3a9fce1b8ef677a91694f476dd35be6d6c9c4f44a8b76eedbe176",
+ "size": "39150924"
+ },
+ "aarch64-linux": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-linux-aarch64-0.8.1.tar.xz",
+ "shasum": "2166dc9f2d8df387e8b4122883bb979d739281e1ff3f3d5483fec3a23b957510",
+ "size": "37605932"
+ },
+ "armv7a-linux": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-linux-armv7a-0.8.1.tar.xz",
+ "shasum": "5ba58141805e2519f38cf8e715933cbf059f4f3dade92c71838cce341045de05",
+ "size": "39185876"
+ },
+ "i386-linux": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-linux-i386-0.8.1.tar.xz",
+ "shasum": "2f3e84f30492b5f1c5f97cecc0166f07a8a8d50c5f85dbb3a6ef2a4ee6f915e6",
+ "size": "44782932"
+ },
+ "riscv64-linux": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-linux-riscv64-0.8.1.tar.xz",
+ "shasum": "4adfaf147b025917c03367462fe5018aaa9edbc6439ef9cd0da2b074ae960554",
+ "size": "41234480"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-linux-x86_64-0.8.1.tar.xz",
+ "shasum": "6c032fc61b5d77a3f3cf781730fa549f8f059ffdb3b3f6ad1c2994d2b2d87983",
+ "size": "41250060"
+ },
+ "aarch64-macos": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-macos-aarch64-0.8.1.tar.xz",
+ "shasum": "5351297e3b8408213514b29c0a938002c5cf9f97eee28c2f32920e1227fd8423",
+ "size": "35340712"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-macos-x86_64-0.8.1.tar.xz",
+ "shasum": "16b0e1defe4c1807f2e128f72863124bffdd906cefb21043c34b673bf85cd57f",
+ "size": "39946200"
+ },
+ "i386-windows": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-windows-i386-0.8.1.zip",
+ "shasum": "099605051eb0452a947c8eab8fbbc7e43833c8376d267e94e41131c289a1c535",
+ "size": "64152358"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.8.1/zig-windows-x86_64-0.8.1.zip",
+ "shasum": "43573db14cd238f7111d6bdf37492d363f11ecd1eba802567a172f277d003926",
+ "size": "61897838"
+ }
+ },
+ "0.8.0": {
+ "date": "2021-06-04",
+ "docs": "https://ziglang.org/documentation/0.8.0/",
+ "stdDocs": "https://ziglang.org/documentation/0.8.0/std/",
+ "notes": "https://ziglang.org/download/0.8.0/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-0.8.0.tar.xz",
+ "shasum": "03a828d00c06b2e3bb8b7ff706997fd76bf32503b08d759756155b6e8c981e77",
+ "size": "12614896"
+ },
+ "bootstrap": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-bootstrap-0.8.0.tar.xz",
+ "shasum": "10600bc9c01f92e343f40d6ecc0ad05d67d27c3e382bce75524c0639cd8ca178",
+ "size": "43574248"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-freebsd-x86_64-0.8.0.tar.xz",
+ "shasum": "0d3ccc436c8c0f50fd55462f72f8492d98723c7218ffc2a8a1831967d81b4bdc",
+ "size": "39125332"
+ },
+ "aarch64-linux": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-linux-aarch64-0.8.0.tar.xz",
+ "shasum": "ee204ca2c2037952cf3f8b10c609373a08a291efa4af7b3c73be0f2b27720470",
+ "size": "37575428"
+ },
+ "armv7a-linux": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-linux-armv7a-0.8.0.tar.xz",
+ "shasum": "d00b8bd97b79f45d6f5da956983bafeaa082e6c2ae8c6e1c6d4faa22fa29b320",
+ "size": "38884212"
+ },
+ "i386-linux": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-linux-i386-0.8.0.tar.xz",
+ "shasum": "96e43ee6ed81c3c63401f456bd1c58ee6d42373a43cb324f5cf4974ca0998865",
+ "size": "42136032"
+ },
+ "riscv64-linux": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-linux-riscv64-0.8.0.tar.xz",
+ "shasum": "75997527a78cdab64c40c43d9df39c01c4cdb557bb3992a869838371a204cfea",
+ "size": "40016268"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-linux-x86_64-0.8.0.tar.xz",
+ "shasum": "502625d3da3ae595c5f44a809a87714320b7a40e6dff4a895b5fa7df3391d01e",
+ "size": "41211184"
+ },
+ "aarch64-macos": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-macos-aarch64-0.8.0.tar.xz",
+ "shasum": "b32d13f66d0e1ff740b3326d66a469ee6baddbd7211fa111c066d3bd57683111",
+ "size": "35292180"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-macos-x86_64-0.8.0.tar.xz",
+ "shasum": "279f9360b5cb23103f0395dc4d3d0d30626e699b1b4be55e98fd985b62bc6fbe",
+ "size": "39969312"
+ },
+ "i386-windows": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-windows-i386-0.8.0.zip",
+ "shasum": "b6ec9aa6cd6f3872fcb30d43ff411802d82008a0c4142ee49e208a09b2c1c5fe",
+ "size": "61507213"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.8.0/zig-windows-x86_64-0.8.0.zip",
+ "shasum": "8580fbbf3afb72e9b495c7f8aeac752a03475ae0bbcf5d787f3775c7e1f4f807",
+ "size": "61766193"
+ }
+ },
+ "0.7.1": {
+ "date": "2020-12-13",
+ "docs": "https://ziglang.org/documentation/0.7.1/",
+ "stdDocs": "https://ziglang.org/documentation/0.7.1/std/",
+ "notes": "https://ziglang.org/download/0.7.1/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-0.7.1.tar.xz",
+ "shasum": "2db3b944ab368d955b48743d9f7c963b8f96de1a441ba5a35e197237cc6dae44",
+ "size": "10711824"
+ },
+ "bootstrap": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-bootstrap-0.7.1.tar.xz",
+ "shasum": "040f27c1fae4b0cac0a2782aecdb691f6a2f8e89db6a6ed35024c31c304fd9b2",
+ "size": "40232612"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-freebsd-x86_64-0.7.1.tar.xz",
+ "shasum": "e73c1dca35791a3183fdd5ecde0443ebbe180942efceafe651886034fb8def09",
+ "size": "39066808"
+ },
+ "aarch64-linux": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-linux-aarch64-0.7.1.tar.xz",
+ "shasum": "48ec90eba407e4587ddef7eecef25fec7e13587eb98e3b83c5f2f5fff2a5cbe7",
+ "size": "33780552"
+ },
+ "armv7a-linux": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-linux-armv7a-0.7.1.tar.xz",
+ "shasum": "5a0662e07b4c4968665e1f97558f8591f6facec45d2e0ff5715e661743107ceb",
+ "size": "35813504"
+ },
+ "i386-linux": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-linux-i386-0.7.1.tar.xz",
+ "shasum": "4882e052e5f83690bd0334bb4fc1702b5403cb3a3d2aa63fd7d6043d8afecba3",
+ "size": "39230912"
+ },
+ "riscv64-linux": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-linux-riscv64-0.7.1.tar.xz",
+ "shasum": "187294bfd35983348c3fe042901b42e67e7e36ab7f77a5f969d21c0051f4d21f",
+ "size": "37454812"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-linux-x86_64-0.7.1.tar.xz",
+ "shasum": "18c7b9b200600f8bcde1cd8d7f1f578cbc3676241ce36d771937ce19a8159b8d",
+ "size": "37848176"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-macos-x86_64-0.7.1.tar.xz",
+ "shasum": "845cb17562978af0cf67e3993f4e33330525eaf01ead9386df9105111e3bc519",
+ "size": "36211076"
+ },
+ "i386-windows": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-windows-i386-0.7.1.zip",
+ "shasum": "a1b9a7421e13153e07fd2e2c93ff29aad64d83105b8fcdafa633dbe689caf1c0",
+ "size": "54374983"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.7.1/zig-windows-x86_64-0.7.1.zip",
+ "shasum": "4818a8a65b4672bc52c0ae7f14d014e0eb8caf10f12c0745176820384cea296a",
+ "size": "54909997"
+ }
+ },
+ "0.7.0": {
+ "date": "2020-11-08",
+ "docs": "https://ziglang.org/documentation/0.7.0/",
+ "stdDocs": "https://ziglang.org/documentation/0.7.0/std/",
+ "notes": "https://ziglang.org/download/0.7.0/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-0.7.0.tar.xz",
+ "shasum": "0efd2cf6c3b05723db80e9cf193bc55150bba84ca41f855a90f53fc756445f83",
+ "size": "10683920"
+ },
+ "bootstrap": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-bootstrap-0.7.0.tar.xz",
+ "shasum": "f073beaf5c53c8c57c0d374cbfcb332ef92ad703173edba0d9e0f2ed28401b72",
+ "size": "40200436"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-freebsd-x86_64-0.7.0.tar.xz",
+ "shasum": "a0c926272ee4ae720034b4a6a1dc98399d76156dd84182554740f0ca8a41fc99",
+ "size": "34798992"
+ },
+ "aarch64-linux": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-linux-aarch64-0.7.0.tar.xz",
+ "shasum": "f89933bac87d44be82325754ff88423020c81c7032a6fc41cfeb81e982eeab9b",
+ "size": "33096140"
+ },
+ "armv7a-linux": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-linux-armv7a-0.7.0.tar.xz",
+ "shasum": "011c267e25a96ee160505a560c441daa045359a9d50e13ab1bada9d75c95db2d",
+ "size": "35157584"
+ },
+ "i386-linux": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-linux-i386-0.7.0.tar.xz",
+ "shasum": "4bb2072cd363bcb1cbeb4872ff5cbc1f683b02d0cc1f90c46e3ea7422ce53222",
+ "size": "38530596"
+ },
+ "riscv64-linux": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-linux-riscv64-0.7.0.tar.xz",
+ "shasum": "40dff81faa6f232ac40abbf88b9371f3cc932b6e09c423b94387c9ea580cb7be",
+ "size": "36759992"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-linux-x86_64-0.7.0.tar.xz",
+ "shasum": "e619b1c6094c095b932767f527aee2507f847ea981513ff8a08aab0fd730e0ac",
+ "size": "37154432"
+ },
+ "aarch64-macos": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-macos-aarch64-0.7.0.tar.xz",
+ "shasum": "338238035734db74ea4f30e500a4893bf741d38305c10952d5e39fa05bdb057d",
+ "size": "33739424"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-macos-x86_64-0.7.0.tar.xz",
+ "shasum": "94063f9a311cbbf7a2e0a12295e09437182cf950f18cb0eb30ea9893f3677f24",
+ "size": "35258328"
+ },
+ "i386-windows": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-windows-i386-0.7.0.zip",
+ "shasum": "b1e520aacbfbd645ff3521b3eb4d44166d9a0288b8725e4b001f8b50a425eb2e",
+ "size": "53390517"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.7.0/zig-windows-x86_64-0.7.0.zip",
+ "shasum": "965f56c0a36f9cda2125e3a348bc654f7f155e2804c3667d231775ec228f8553",
+ "size": "53943784"
+ }
+ },
+ "0.6.0": {
+ "date": "2020-04-13",
+ "docs": "https://ziglang.org/documentation/0.6.0/",
+ "stdDocs": "https://ziglang.org/documentation/0.6.0/std/",
+ "notes": "https://ziglang.org/download/0.6.0/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-0.6.0.tar.xz",
+ "shasum": "5d167dc19354282dd35dd17b38e99e1763713b9be8a4ba9e9e69284e059e7204",
+ "size": "10349552"
+ },
+ "bootstrap": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-bootstrap-0.6.0.tar.xz",
+ "shasum": "5e0e4dc878b3dd0c1852a442b174f0732e8c07869a8fcd226b71a93b89b381ab",
+ "size": "38469948"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-freebsd-x86_64-0.6.0.tar.xz",
+ "shasum": "190ff79c1eb56805a315d7c7a51082e32f62926250c0702b36760c225e1634a3",
+ "size": "36974604"
+ },
+ "aarch64-linux": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-linux-aarch64-0.6.0.tar.xz",
+ "shasum": "e7520efd42cfa02be48c2e430d08fe1f3cbb999d21d9f0d3ffd0febb976b2f41",
+ "size": "37090044"
+ },
+ "armv6kz-linux": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv6kz-0.6.0.tar.xz",
+ "shasum": "36b6493b3fed43eb1f0000e765798ad31a6bb7d7fd3f553ac1c3761dbc919b82",
+ "size": "39133452"
+ },
+ "armv7a-linux": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv7a-0.6.0.tar.xz",
+ "shasum": "946969abe357def95ca9cbbfcebfcf2d90cf967bcd3f48ee87662e32d91d8f35",
+ "size": "39143748"
+ },
+ "i386-linux": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-linux-i386-0.6.0.tar.xz",
+ "shasum": "a97a2f9ae21575743cdd763c1917d49400d83fc562ef64582b18bade43eb24ce",
+ "size": "44877640"
+ },
+ "riscv64-linux": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-linux-riscv64-0.6.0.tar.xz",
+ "shasum": "68ddee43f7503c8ae5f26a921f3602c34719a02ed2241f528c0b8b888cc14b38",
+ "size": "41993144"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-linux-x86_64-0.6.0.tar.xz",
+ "shasum": "08fd3c757963630645441c2772362e9c2294020c44f14fce1b89f45de0dc1253",
+ "size": "44766320"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-macos-x86_64-0.6.0.tar.xz",
+ "shasum": "17270360e87ddc49f737e760047b2fac49f1570a824a306119b1194ac4093895",
+ "size": "42573184"
+ },
+ "i386-windows": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-windows-i386-0.6.0.zip",
+ "shasum": "3b0a02618743e92175990dc6d1a787bb95ff62c4cda016f1c14c7786f575f8ca",
+ "size": "60446431"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.6.0/zig-windows-x86_64-0.6.0.zip",
+ "shasum": "c3b897832523e1026e10b2d8d55d7f895185c0a27a63681f3a23219c3f1c38f4",
+ "size": "49065511"
+ }
+ },
+ "0.5.0": {
+ "date": "2019-09-30",
+ "docs": "https://ziglang.org/documentation/0.5.0/",
+ "notes": "https://ziglang.org/download/0.5.0/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.5.0/zig-0.5.0.tar.xz",
+ "shasum": "55ae16960f152bcb9cf98b4f8570902d0e559a141abf927f0d3555b7cc838a31",
+ "size": "10956132"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.5.0/zig-freebsd-x86_64-0.5.0.tar.xz",
+ "shasum": "9e1f4d36c3d584c0aa01f20eb4cd0a0eef3eee5af23e483b8414de55feab6ab6",
+ "size": "33650744"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.5.0/zig-macos-x86_64-0.5.0.tar.xz",
+ "shasum": "28702cc05745c7c0bd450487d5f4091bf0a1ad279b35eb9a640ce3e3a15b300d",
+ "size": "37898664"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.5.0/zig-windows-x86_64-0.5.0.zip",
+ "shasum": "58141323db8d84a5af62746be5f9140bc161ee760ef33dc91a887bf9ac021976",
+ "size": "44871804"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.5.0/zig-linux-x86_64-0.5.0.tar.xz",
+ "shasum": "43e8f8a8b8556edd373ddf9c1ef3ca6cf852d4d09fe07d5736d12fefedd2b4f7",
+ "size": "40895068"
+ }
+ },
+ "0.4.0": {
+ "date": "2019-04-08",
+ "docs": "https://ziglang.org/documentation/0.4.0/",
+ "notes": "https://ziglang.org/download/0.4.0/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.4.0/zig-0.4.0.tar.xz",
+ "shasum": "fec1f3f6b359a3d942e0a7f9157b3b30cde83927627a0e1ea95c54de3c526cfc",
+ "size": "5348776"
+ },
+ "x86_64-freebsd": {
+ "tarball": "https://ziglang.org/download/0.4.0/zig-freebsd-x86_64-0.4.0.tar.xz",
+ "shasum": "3d557c91ac36d8262eb1733bb5f261c95944f9b635e43386e3d00a3272818c30",
+ "size": "27269672"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.4.0/zig-macos-x86_64-0.4.0.tar.xz",
+ "shasum": "67c932982484d017c5111e54af9f33f15e8e05c6bc5346a55e04052159c964a8",
+ "size": "30841504"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.4.0/zig-windows-x86_64-0.4.0.zip",
+ "shasum": "fbc3dd205e064c263063f69f600bedb18e3d0aa2efa747a63ef6cafb6d73f127",
+ "size": "35800101"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.4.0/zig-linux-x86_64-0.4.0.tar.xz",
+ "shasum": "fb1954e2fb556a01f8079a08130e88f70084e08978ff853bb2b1986d8c39d84e",
+ "size": "32876100"
+ }
+ },
+ "0.3.0": {
+ "date": "2018-09-28",
+ "docs": "https://ziglang.org/documentation/0.3.0/",
+ "notes": "https://ziglang.org/download/0.3.0/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.3.0/zig-0.3.0.tar.xz",
+ "shasum": "d70af604f3a8622f3393d93abb3e056bf60351e32d121e6fa4fe03d8d41e1f5a",
+ "size": "2335592"
+ },
+ "x86_64-macos": {
+ "tarball": "https://ziglang.org/download/0.3.0/zig-macos-x86_64-0.3.0.tar.xz",
+ "shasum": "19dec1f1943ab7be26823376d466f7e456143deb34e17502778a949034dc2e7e",
+ "size": "23712696"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.3.0/zig-windows-x86_64-0.3.0.zip",
+ "shasum": "bb568c03950958f8bb3472139c3ab5ed74547c8c694ab50f404c202faf51baf4",
+ "size": "22524425"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.3.0/zig-linux-x86_64-0.3.0.tar.xz",
+ "shasum": "b378d0aae30cb54f28494e7bc4efbc9bfb6326f47bfb302e8b5287af777b2f3c",
+ "size": "25209304"
+ }
+ },
+ "0.2.0": {
+ "date": "2018-03-15",
+ "docs": "https://ziglang.org/documentation/0.2.0/",
+ "notes": "https://ziglang.org/download/0.2.0/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.2.0/zig-0.2.0.tar.xz",
+ "shasum": "29c9beb172737f4d5019b88ceae829ae8bc6512fb4386cfbf895ae2b42aa6965",
+ "size": "1940832"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.2.0/zig-win64-0.2.0.zip",
+ "shasum": "4f8a2979941a1f081ec8e545cca0b72608c0db1c5a3fd377a94db40649dcd3d4",
+ "size": "21076274"
+ },
+ "x86_64-linux": {
+ "tarball": "https://ziglang.org/download/0.2.0/zig-linux-x86_64-0.2.0.tar.xz",
+ "shasum": "209c6fb745d42474c0a73d6f291c7ae3a38b6a1b6b641eea285a7f840cc1a890",
+ "size": "22551928"
+ }
+ },
+ "0.1.1": {
+ "date": "2017-10-17",
+ "docs": "https://ziglang.org/documentation/0.1.1/",
+ "notes": "https://ziglang.org/download/0.1.1/release-notes.html",
+ "src": {
+ "tarball": "https://ziglang.org/download/0.1.1/zig-0.1.1.tar.xz",
+ "shasum": "ffca0cfb263485287e19cc997b08701fcd5f24b700345bcdc3dd8074f5a104e0",
+ "size": "1659716"
+ },
+ "x86_64-windows": {
+ "tarball": "https://ziglang.org/download/0.1.1/zig-win64-0.1.1.zip",
+ "shasum": "6fc88bef531af7e567fe30bf60da1487b86833cbee84c7a2f3e317030aa5b660",
+ "size": "19757776"
+ }
+ }
+}
diff --git a/ci/linux/build-aarch64.sh b/ci/linux/build-aarch64.sh
@@ -1,12 +1,10 @@
#!/bin/sh
-
# Requires cmake ninja-build
set -x
set -e
-ZIGDIR="$(pwd)"
ARCH="$(uname -m)"
TARGET="$ARCH-linux-musl"
MCPU="baseline"
@@ -16,19 +14,32 @@ ZIG="$PREFIX/bin/zig"
export PATH="$HOME/deps/wasmtime-v2.0.2-aarch64-linux:$PATH"
+# Make the `zig version` number consistent.
+# This will affect the cmake command below.
+git config core.abbrev 9
+git fetch --unshallow || true
+git fetch --tags
+
+export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
+export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
+
+rm -rf build-release
mkdir build-release
cd build-release
cmake .. \
-DCMAKE_INSTALL_PREFIX="stage3-release" \
-DCMAKE_PREFIX_PATH="$PREFIX" \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_C_COMPILER="$ZIG;cc;-target;$TARGET;-mcpu=$MCPU" \
- -DCMAKE_CXX_COMPILER="$ZIG;c++;-target;$TARGET;-mcpu=$MCPU" \
-DZIG_TARGET_TRIPLE="$TARGET" \
-DZIG_TARGET_MCPU="$MCPU" \
-DZIG_STATIC=ON \
-GNinja
+# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
+# so that installation and testing do not get affected by them.
+unset CC
+unset CXX
+
ninja install
# TODO: add -fqemu back to this line
diff --git a/ci/linux/build-tarballs.sh b/ci/linux/build-tarballs.sh
@@ -0,0 +1,332 @@
+#!/bin/sh
+
+# Requires cmake ninja-build
+
+set -x
+set -e
+
+ZIGDIR="$(pwd)"
+REL_SRC_BUILD="$ZIGDIR/build-release"
+cd ../..
+WORKDIR="$(pwd)"
+ARCH="$(uname -m)"
+TARGET="$ARCH-linux-musl"
+MCPU="baseline"
+CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.11.0-dev.256+271cc52a1"
+PREFIX="$HOME/deps/$CACHE_BASENAME"
+ZIG="$PREFIX/bin/zig"
+
+# Make the `zig version` number consistent.
+# This will affect the cmake command below.
+cd "$ZIGDIR"
+git config core.abbrev 9
+git fetch --unshallow || true
+git fetch --tags
+
+export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
+export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
+
+rm -rf "$REL_SRC_BUILD"
+mkdir "$REL_SRC_BUILD"
+cd "$REL_SRC_BUILD"
+cmake .. \
+ -DCMAKE_INSTALL_PREFIX="stage3-release" \
+ -DCMAKE_PREFIX_PATH="$PREFIX" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DZIG_TARGET_TRIPLE="$TARGET" \
+ -DZIG_TARGET_MCPU="$MCPU" \
+ -DZIG_STATIC=ON \
+ -GNinja
+
+# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
+# so that installation and testing do not get affected by them.
+unset CC
+unset CXX
+
+ninja install
+
+ZIG_VERSION="$(stage3-release/bin/zig version)"
+BOOTSTRAP_SRC="$WORKDIR/zig-bootstrap"
+TARBALLS_DIR="$WORKDIR/tarballs"
+
+cd "$BOOTSTRAP_SRC"
+git pull
+rm -rf zig
+cp -r "$ZIGDIR" ./
+sed -i "/^ZIG_VERSION=\".*\"\$/c\\ZIG_VERSION=\"$ZIG_VERSION\"" build
+
+# Unfortunately Debian's cmake (3.14.4) is too old for zig-bootstrap.
+PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build aarch64-linux-musl baseline
+PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86_64-linux-musl baseline
+#PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86-linux-musl baseline
+#PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build riscv64-linux-musl baseline
+#PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build arm-linux-musleabihf generic+v7a
+PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86_64-macos-none baseline
+PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build aarch64-macos-none apple_a14
+PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86_64-windows-gnu baseline
+#PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86-windows-gnu baseline
+#PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build aarch64-windows-gnu baseline
+
+ZIG="$BOOTSTRAP_SRC/out/host/bin/zig"
+
+rm -rf "$TARBALLS_DIR"
+mkdir "$TARBALLS_DIR"
+cd "$TARBALLS_DIR"
+
+cp -r "$ZIGDIR" ./
+rm -rf \
+ "zig/.github" \
+ "zig/.gitignore" \
+ "zig/.git" \
+ "zig/ci" \
+ "zig/CODE_OF_CONDUCT.md" \
+ "zig/CONTRIBUTING.md" \
+ "zig/.builds" \
+ "zig/build" \
+ "zig/build-release" \
+ "zig/build-debug" \
+ "zig/zig-cache"
+mv zig "zig-$ZIG_VERSION"
+tar cfJ "zig-$ZIG_VERSION.tar.xz" "zig-$ZIG_VERSION"
+
+cd "$BOOTSTRAP_SRC"
+"$ZIG" build --build-file zig/build.zig docs
+LANGREF_HTML="$BOOTSTRAP_SRC/zig/zig-cache/langref.html"
+# Look for HTML errors.
+tidy --drop-empty-elements no -qe "$LANGREF_HTML"
+
+cd "$TARBALLS_DIR"
+
+cp -r $BOOTSTRAP_SRC/out/zig-aarch64-linux-musl-baseline zig-linux-aarch64-$ZIG_VERSION/
+cp -r $BOOTSTRAP_SRC/out/zig-aarch64-macos-none-apple_a14 zig-macos-aarch64-$ZIG_VERSION/
+#cp -r $BOOTSTRAP_SRC/out/zig-aarch64-windows-gnu-baseline zig-windows-aarch64-$ZIG_VERSION/
+#cp -r $BOOTSTRAP_SRC/out/zig-arm-linux-musleabihf-generic+v7a zig-linux-armv7a-$ZIG_VERSION/
+#cp -r $BOOTSTRAP_SRC/out/zig-x86-linux-musl-baseline zig-linux-x86-$ZIG_VERSION/
+#cp -r $BOOTSTRAP_SRC/out/zig-x86-windows-gnu-baseline zig-windows-x86-$ZIG_VERSION/
+#cp -r $BOOTSTRAP_SRC/out/zig-riscv64-linux-musl-baseline zig-linux-riscv64-$ZIG_VERSION/
+#cp -r $BOOTSTRAP_SRC/out/zig-x86_64-freebsd-gnu-baseline zig-freebsd-x86_64-$ZIG_VERSION/
+cp -r $BOOTSTRAP_SRC/out/zig-x86_64-linux-musl-baseline zig-linux-x86_64-$ZIG_VERSION/
+cp -r $BOOTSTRAP_SRC/out/zig-x86_64-macos-none-baseline zig-macos-x86_64-$ZIG_VERSION/
+cp -r $BOOTSTRAP_SRC/out/zig-x86_64-windows-gnu-baseline zig-windows-x86_64-$ZIG_VERSION/
+
+mv zig-linux-aarch64-$ZIG_VERSION/{bin/,}zig
+#mv zig-linux-armv7a-$ZIG_VERSION/{bin/,}zig
+#mv zig-linux-x86-$ZIG_VERSION/{bin/,}zig
+#mv zig-linux-riscv64-$ZIG_VERSION/{bin/,}zig
+mv zig-linux-x86_64-$ZIG_VERSION/{bin/,}zig
+#mv zig-windows-x86-$ZIG_VERSION/{bin/,}zig.exe
+mv zig-windows-x86_64-$ZIG_VERSION/{bin/,}zig.exe
+#mv zig-windows-aarch64-$ZIG_VERSION/{bin/,}zig.exe
+mv zig-macos-aarch64-$ZIG_VERSION/{bin/,}zig
+mv zig-macos-x86_64-$ZIG_VERSION/{bin/,}zig
+#mv zig-freebsd-x86_64-$ZIG_VERSION/{bin/,}zig
+
+mv zig-linux-aarch64-$ZIG_VERSION/{lib,lib2}
+#mv zig-linux-armv7a-$ZIG_VERSION/{lib,lib2}
+#mv zig-linux-x86-$ZIG_VERSION/{lib,lib2}
+#mv zig-linux-riscv64-$ZIG_VERSION/{lib,lib2}
+mv zig-linux-x86_64-$ZIG_VERSION/{lib,lib2}
+#mv zig-windows-x86-$ZIG_VERSION/{lib,lib2}
+mv zig-windows-x86_64-$ZIG_VERSION/{lib,lib2}
+#mv zig-windows-aarch64-$ZIG_VERSION/{lib,lib2}
+mv zig-macos-aarch64-$ZIG_VERSION/{lib,lib2}
+mv zig-macos-x86_64-$ZIG_VERSION/{lib,lib2}
+#mv zig-freebsd-x86_64-$ZIG_VERSION/{lib,lib2}
+
+mv zig-linux-aarch64-$ZIG_VERSION/{lib2/zig,lib}
+#mv zig-linux-armv7a-$ZIG_VERSION/{lib2/zig,lib}
+#mv zig-linux-x86-$ZIG_VERSION/{lib2/zig,lib}
+#mv zig-linux-riscv64-$ZIG_VERSION/{lib2/zig,lib}
+mv zig-linux-x86_64-$ZIG_VERSION/{lib2/zig,lib}
+#mv zig-windows-x86-$ZIG_VERSION/{lib2/zig,lib}
+mv zig-windows-x86_64-$ZIG_VERSION/{lib2/zig,lib}
+#mv zig-windows-aarch64-$ZIG_VERSION/{lib2/zig,lib}
+mv zig-macos-aarch64-$ZIG_VERSION/{lib2/zig,lib}
+mv zig-macos-x86_64-$ZIG_VERSION/{lib2/zig,lib}
+#mv zig-freebsd-x86_64-$ZIG_VERSION/{lib2/zig,lib}
+
+rmdir zig-linux-aarch64-$ZIG_VERSION/{bin,lib2}
+#rmdir zig-linux-armv7a-$ZIG_VERSION/{bin,lib2}
+#rmdir zig-linux-x86-$ZIG_VERSION/{bin,lib2}
+#rmdir zig-linux-riscv64-$ZIG_VERSION/{bin,lib2}
+rmdir zig-linux-x86_64-$ZIG_VERSION/{bin,lib2}
+#rmdir zig-windows-x86-$ZIG_VERSION/{bin,lib2}
+rmdir zig-windows-x86_64-$ZIG_VERSION/{bin,lib2}
+#rmdir zig-windows-aarch64-$ZIG_VERSION/{bin,lib2}
+rmdir zig-macos-aarch64-$ZIG_VERSION/{bin,lib2}
+rmdir zig-macos-x86_64-$ZIG_VERSION/{bin,lib2}
+#rmdir zig-freebsd-x86_64-$ZIG_VERSION/{bin,lib2}
+
+cp $REL_SRC_BUILD/../LICENSE zig-linux-aarch64-$ZIG_VERSION/
+#cp $REL_SRC_BUILD/../LICENSE zig-linux-armv7a-$ZIG_VERSION/
+#cp $REL_SRC_BUILD/../LICENSE zig-linux-x86-$ZIG_VERSION/
+#cp $REL_SRC_BUILD/../LICENSE zig-linux-riscv64-$ZIG_VERSION/
+cp $REL_SRC_BUILD/../LICENSE zig-linux-x86_64-$ZIG_VERSION/
+#cp $REL_SRC_BUILD/../LICENSE zig-windows-x86-$ZIG_VERSION/
+cp $REL_SRC_BUILD/../LICENSE zig-windows-x86_64-$ZIG_VERSION/
+#cp $REL_SRC_BUILD/../LICENSE zig-windows-aarch64-$ZIG_VERSION/
+cp $REL_SRC_BUILD/../LICENSE zig-macos-aarch64-$ZIG_VERSION/
+cp $REL_SRC_BUILD/../LICENSE zig-macos-x86_64-$ZIG_VERSION/
+#cp $REL_SRC_BUILD/../LICENSE zig-freebsd-x86_64-$ZIG_VERSION/
+
+mkdir zig-linux-aarch64-$ZIG_VERSION/doc/
+#mkdir zig-linux-armv7a-$ZIG_VERSION/doc/
+#mkdir zig-linux-x86-$ZIG_VERSION/doc/
+#mkdir zig-linux-riscv64-$ZIG_VERSION/doc/
+mkdir zig-linux-x86_64-$ZIG_VERSION/doc/
+#mkdir zig-windows-x86-$ZIG_VERSION/doc/
+mkdir zig-windows-x86_64-$ZIG_VERSION/doc/
+#mkdir zig-windows-aarch64-$ZIG_VERSION/doc/
+mkdir zig-macos-aarch64-$ZIG_VERSION/doc/
+mkdir zig-macos-x86_64-$ZIG_VERSION/doc/
+#mkdir zig-freebsd-x86_64-$ZIG_VERSION/doc/
+
+cd $REL_SRC_BUILD
+stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-linux-aarch64 -target aarch64-linux-musl -fno-emit-bin --zig-lib-dir ../lib
+#stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-linux-armv7a -target arm-linux-musl -mcpu=generic+v7a -fno-emit-bin --zig-lib-dir ../lib
+#stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-linux-x86 -target x86-linux-musl -fno-emit-bin --zig-lib-dir ../lib
+#stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-linux-riscv64 -target riscv64-linux-musl -fno-emit-bin --zig-lib-dir ../lib
+stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-linux-x86_64 -target x86_64-linux-musl -fno-emit-bin --zig-lib-dir ../lib
+#stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-windows-x86 -target x86-windows-gnu -fno-emit-bin --zig-lib-dir ../lib
+stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-windows-x86_64 -target x86_64-windows-gnu -fno-emit-bin --zig-lib-dir ../lib
+#stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-windows-aarch64 -target aarch64-windows-gnu -fno-emit-bin --zig-lib-dir ../lib
+stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-macos-x86_64 -target x86_64-macos -fno-emit-bin --zig-lib-dir ../lib
+stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-macos-aarch64 -target aarch64-macos -fno-emit-bin --zig-lib-dir ../lib
+#stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-freebsd-x86_64 -target x86_64-freebsd -fno-emit-bin --zig-lib-dir ../lib
+
+cd "$TARBALLS_DIR"
+cp -r $REL_SRC_BUILD/doc-linux-aarch64 zig-linux-aarch64-$ZIG_VERSION/doc/std
+#cp -r $REL_SRC_BUILD/doc-linux-armv7a zig-linux-armv7a-$ZIG_VERSION/doc/std
+#cp -r $REL_SRC_BUILD/doc-linux-x86 zig-linux-x86-$ZIG_VERSION/doc/std
+#cp -r $REL_SRC_BUILD/doc-linux-riscv64 zig-linux-riscv64-$ZIG_VERSION/doc/std
+cp -r $REL_SRC_BUILD/doc-linux-x86_64 zig-linux-x86_64-$ZIG_VERSION/doc/std
+#cp -r $REL_SRC_BUILD/doc-windows-x86 zig-windows-x86-$ZIG_VERSION/doc/std
+cp -r $REL_SRC_BUILD/doc-windows-x86_64 zig-windows-x86_64-$ZIG_VERSION/doc/std
+#cp -r $REL_SRC_BUILD/doc-windows-aarch64 zig-windows-aarch64-$ZIG_VERSION/doc/std
+cp -r $REL_SRC_BUILD/doc-macos-aarch64 zig-macos-aarch64-$ZIG_VERSION/doc/std
+cp -r $REL_SRC_BUILD/doc-macos-x86_64 zig-macos-x86_64-$ZIG_VERSION/doc/std
+#cp -r $REL_SRC_BUILD/doc-freebsd-x86_64 zig-freebsd-x86_64-$ZIG_VERSION/doc/std
+
+cp $LANGREF_HTML zig-linux-aarch64-$ZIG_VERSION/doc/
+#cp $LANGREF_HTML zig-linux-armv7a-$ZIG_VERSION/doc/
+#cp $LANGREF_HTML zig-linux-x86-$ZIG_VERSION/doc/
+#cp $LANGREF_HTML zig-linux-riscv64-$ZIG_VERSION/doc/
+cp $LANGREF_HTML zig-linux-x86_64-$ZIG_VERSION/doc/
+#cp $LANGREF_HTML zig-windows-x86-$ZIG_VERSION/doc/
+cp $LANGREF_HTML zig-windows-x86_64-$ZIG_VERSION/doc/
+#cp $LANGREF_HTML zig-windows-aarch64-$ZIG_VERSION/doc/
+cp $LANGREF_HTML zig-macos-aarch64-$ZIG_VERSION/doc/
+cp $LANGREF_HTML zig-macos-x86_64-$ZIG_VERSION/doc/
+#cp $LANGREF_HTML zig-freebsd-x86_64-$ZIG_VERSION/doc/
+
+tar cJf zig-linux-aarch64-$ZIG_VERSION.tar.xz zig-linux-aarch64-$ZIG_VERSION/
+#tar cJf zig-linux-armv7a-$ZIG_VERSION.tar.xz zig-linux-armv7a-$ZIG_VERSION/
+#tar cJf zig-linux-x86-$ZIG_VERSION.tar.xz zig-linux-x86-$ZIG_VERSION/
+#tar cJf zig-linux-riscv64-$ZIG_VERSION.tar.xz zig-linux-riscv64-$ZIG_VERSION/
+tar cJf zig-linux-x86_64-$ZIG_VERSION.tar.xz zig-linux-x86_64-$ZIG_VERSION/
+#7z a zig-windows-x86-$ZIG_VERSION.zip zig-windows-x86-$ZIG_VERSION/
+7z a zig-windows-x86_64-$ZIG_VERSION.zip zig-windows-x86_64-$ZIG_VERSION/
+#7z a zig-windows-aarch64-$ZIG_VERSION.zip zig-windows-aarch64-$ZIG_VERSION/
+tar cJf zig-macos-aarch64-$ZIG_VERSION.tar.xz zig-macos-aarch64-$ZIG_VERSION/
+tar cJf zig-macos-x86_64-$ZIG_VERSION.tar.xz zig-macos-x86_64-$ZIG_VERSION/
+#tar cJf zig-freebsd-x86_64-$ZIG_VERSION.tar.xz zig-freebsd-x86_64-$ZIG_VERSION/
+
+s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+#s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-bootstrap-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-linux-aarch64-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+#s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-linux-armv7a-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+#s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-linux-x86-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+#s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-linux-riscv64-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-linux-x86_64-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+#s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-windows-x86-$ZIG_VERSION.zip s3://ziglang.org/builds/$ZIG_VERSION/
+s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-windows-x86_64-$ZIG_VERSION.zip s3://ziglang.org/builds/$ZIG_VERSION/
+#s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-windows-aarch64-$ZIG_VERSION.zip s3://ziglang.org/builds/$ZIG_VERSION/
+s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-macos-aarch64-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-macos-x86_64-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+#s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-freebsd-x86_64-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/
+
+export SRC_TARBALL="zig-$ZIG_VERSION.tar.xz"
+export SRC_SHASUM=$(sha256sum "zig-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)
+export SRC_BYTESIZE=$(wc -c < "zig-$ZIG_VERSION.tar.xz")
+
+export X86_64_WINDOWS_TARBALL="zig-windows-x86_64-$ZIG_VERSION.zip"
+export X86_64_WINDOWS_BYTESIZE=$(wc -c < "zig-windows-x86_64-$ZIG_VERSION.zip")
+export X86_64_WINDOWS_SHASUM="$(sha256sum "zig-windows-x86_64-$ZIG_VERSION.zip" | cut '-d ' -f1)"
+
+export AARCH64_MACOS_TARBALL="zig-macos-aarch64-$ZIG_VERSION.tar.xz"
+export AARCH64_MACOS_BYTESIZE=$(wc -c < "zig-macos-aarch64-$ZIG_VERSION.tar.xz")
+export AARCH64_MACOS_SHASUM="$(sha256sum "zig-macos-aarch64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)"
+
+export X86_64_MACOS_TARBALL="zig-macos-x86_64-$ZIG_VERSION.tar.xz"
+export X86_64_MACOS_BYTESIZE=$(wc -c < "zig-macos-x86_64-$ZIG_VERSION.tar.xz")
+export X86_64_MACOS_SHASUM="$(sha256sum "zig-macos-x86_64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)"
+
+export X86_64_LINUX_TARBALL="zig-linux-x86_64-$ZIG_VERSION.tar.xz"
+export X86_64_LINUX_BYTESIZE=$(wc -c < "zig-linux-x86_64-$ZIG_VERSION.tar.xz")
+export X86_64_LINUX_SHASUM="$(sha256sum "zig-linux-x86_64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)"
+
+export AARCH64_LINUX_TARBALL="zig-linux-aarch64-$ZIG_VERSION.tar.xz"
+export AARCH64_LINUX_BYTESIZE=$(wc -c < "zig-linux-aarch64-$ZIG_VERSION.tar.xz")
+export AARCH64_LINUX_SHASUM="$(sha256sum "zig-linux-aarch64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)"
+
+#export X86_64_FREEBSD_TARBALL="zig-freebsd-x86_64-$ZIG_VERSION.tar.xz"
+#export X86_64_FREEBSD_BYTESIZE=$(wc -c < "zig-freebsd-x86_64-$ZIG_VERSION.tar.xz")
+#export X86_64_FREEBSD_SHASUM="$(sha256sum "zig-freebsd-x86_64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)"
+
+#export X86_64_NETBSD_TARBALL="zig-netbsd-x86_64-$ZIG_VERSION.tar.xz"
+#export X86_64_NETBSD_BYTESIZE=$(wc -c < "zig-netbsd-x86_64-$ZIG_VERSION.tar.xz")
+#export X86_64_NETBSD_SHASUM="$(sha256sum "zig-netbsd-x86_64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)"
+
+export MASTER_DATE="$(date +%Y-%m-%d)"
+export MASTER_VERSION="$ZIG_VERSION"
+
+# Create index.json and update the website repo.
+cd "$ZIGDIR/ci"
+"$ZIG" run update-download-page.zig
+mv out "$TARBALLS_DIR/out"
+
+cd "$WORKDIR/www.ziglang.org"
+# This is the user when pushing to the website repo.
+git config user.email "ziggy@ziglang.org"
+git config user.name "Ziggy"
+git pull
+
+cp "$TARBALLS_DIR/out/index.json" data/releases.json
+git add data/releases.json
+git commit -m "CI: update releases"
+git push origin master
+
+# Update autodocs and langref directly to S3 in order to prevent the
+# www.ziglang.org git repo from growing too big.
+
+# Please do not edit this script to pre-compress the artifacts before they hit
+# S3. This prevents the website from working on browsers that do not support gzip
+# encoding. Cloudfront will automatically compress files if they are less than
+# 9.5 MiB, and the client advertises itself as capable of decompressing.
+# The data.js file is currently 16 MiB. In order to fix this problem, we need to do
+# one of the following things:
+# * Reduce the size of data.js to less than 9.5 MiB.
+# * Figure out how to adjust the Cloudfront settings to increase the max size for
+# auto-compressed objects.
+# * Migrate to fastly.
+DOCDIR="$TARBALLS_DIR/zig-linux-aarch64-$ZIG_VERSION/doc"
+s3cmd put -P --no-mime-magic \
+ --add-header="Cache-Control: max-age=0, must-revalidate" \
+ "$LANGREF_HTML" s3://ziglang.org/documentation/master/index.html
+
+s3cmd put -P --no-mime-magic \
+ --add-header="Cache-Control: max-age=0, must-revalidate" \
+ "$DOCDIR/std/index.html" s3://ziglang.org/documentation/master/std/index.html
+
+s3cmd put -P --no-mime-magic \
+ --add-header="Cache-Control: max-age=0, must-revalidate" \
+ "$DOCDIR/std/main.js" s3://ziglang.org/documentation/master/std/main.js
+
+s3cmd put -P --no-mime-magic \
+ --add-header="Cache-Control: max-age=0, must-revalidate" \
+ "$DOCDIR/std/data.js" s3://ziglang.org/documentation/master/std/data.js
+
+s3cmd put -P --no-mime-magic --recursive \
+ --add-header="Cache-Control: max-age=0, must-revalidate" \
+ -m "text/html" \
+ "$DOCDIR/std/src/" s3://ziglang.org/documentation/master/std/src/
diff --git a/ci/linux/build-x86_64-debug.sh b/ci/linux/build-x86_64-debug.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+set -x
+set -e
+
+ZIGDIR="$(pwd)"
+ARCH="$(uname -m)"
+DEPS_LOCAL="$HOME/local"
+OLD_ZIG="$DEPS_LOCAL/bin/zig"
+TARGET="${ARCH}-linux-musl"
+MCPU="baseline"
+
+mkdir -p "$DEPS_LOCAL"
+cd "$DEPS_LOCAL"
+
+wget https://ziglang.org/deps/zig+llvm+lld+clang-x86_64-linux-musl-0.10.0-dev.4560+828735ac0.tar.xz
+tar x --strip-components=1 -f zig+llvm+lld+clang-x86_64-linux-musl-0.10.0-dev.4560+828735ac0.tar.xz
+
+wget https://ziglang.org/deps/qemu-linux-x86_64-6.1.0.1.tar.xz
+tar x --strip-components=1 -f qemu-linux-x86_64-6.1.0.1.tar.xz
+
+wget https://github.com/bytecodealliance/wasmtime/releases/download/v2.0.2/wasmtime-v2.0.2-x86_64-linux.tar.xz
+tar x --strip-components=1 -f wasmtime-v2.0.2-x86_64-linux.tar.xz
+rm -f LICENSE README.md
+mv wasmtime bin/
+
+export PATH=$DEPS_LOCAL/bin:$PATH
+
+cd "$ZIGDIR"
+echo "building stage3-debug with zig version $($OLD_ZIG version)"
+
+export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU"
+export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU"
+
+mkdir build
+cd build
+cmake .. \
+ -DCMAKE_INSTALL_PREFIX="$(pwd)/stage3" \
+ -DCMAKE_PREFIX_PATH="$DEPS_LOCAL" \
+ -DCMAKE_BUILD_TYPE=Debug \
+ -DZIG_STATIC=ON \
+ -DZIG_USE_LLVM_CONFIG=OFF
+
+# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
+# so that installation and testing do not get affected by them.
+unset CC
+unset CXX
+
+make -j2 install
+
+echo "Looking for non-conforming code formatting..."
+stage3/bin/zig fmt --check .. \
+ --exclude ../test/cases/ \
+ --exclude ../build
+
+# simultaneously test building self-hosted without LLVM and with 32-bit arm
+stage3/bin/zig build -Dtarget=arm-linux-musleabihf
+
+stage3/bin/zig build test \
+ -fqemu \
+ -fwasmtime \
+ -Dstatic-llvm \
+ -Dtarget=native-native-musl \
+ --search-prefix "$DEPS_LOCAL" \
+ --zig-lib-dir "$(pwd)/../lib"
diff --git a/ci/linux/build-x86_64-release.sh b/ci/linux/build-x86_64-release.sh
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+set -x
+set -e
+
+ZIGDIR="$(pwd)"
+ARCH="$(uname -m)"
+DEPS_LOCAL="$HOME/local"
+OLD_ZIG="$DEPS_LOCAL/bin/zig"
+TARGET="${ARCH}-linux-musl"
+MCPU="baseline"
+
+mkdir -p "$DEPS_LOCAL"
+cd "$DEPS_LOCAL"
+
+wget https://ziglang.org/deps/zig+llvm+lld+clang-x86_64-linux-musl-0.10.0-dev.4560+828735ac0.tar.xz
+tar x --strip-components=1 -f zig+llvm+lld+clang-x86_64-linux-musl-0.10.0-dev.4560+828735ac0.tar.xz
+
+wget https://ziglang.org/deps/qemu-linux-x86_64-6.1.0.1.tar.xz
+tar x --strip-components=1 -f qemu-linux-x86_64-6.1.0.1.tar.xz
+
+wget https://github.com/bytecodealliance/wasmtime/releases/download/v2.0.2/wasmtime-v2.0.2-x86_64-linux.tar.xz
+tar x --strip-components=1 -f wasmtime-v2.0.2-x86_64-linux.tar.xz
+rm -f LICENSE README.md
+mv wasmtime bin/
+
+export PATH=$DEPS_LOCAL/bin:$PATH
+
+cd "$ZIGDIR"
+echo "building stage3-release with zig version $($OLD_ZIG version)"
+
+export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU"
+export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU"
+
+mkdir build
+cd build
+cmake .. \
+ -DCMAKE_INSTALL_PREFIX="$(pwd)/stage3" \
+ -DCMAKE_PREFIX_PATH="$DEPS_LOCAL" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DZIG_TARGET_TRIPLE="$TARGET" \
+ -DZIG_TARGET_MCPU="$MCPU" \
+ -DZIG_STATIC=ON
+
+# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
+# so that installation and testing do not get affected by them.
+unset CC
+unset CXX
+
+make -j2 install
+
+"stage3/bin/zig" build test \
+ -fqemu \
+ -fwasmtime \
+ -Dstatic-llvm \
+ -Dtarget=native-native-musl \
+ --search-prefix "$DEPS_LOCAL" \
+ --zig-lib-dir "$(pwd)/../lib"
+
+"stage3/bin/zig" build \
+ --prefix stage4 \
+ -Dconfig_h="build/config.h" \
+ -Denable-llvm \
+ -Denable-stage1 \
+ -Dno-lib \
+ -Drelease \
+ -Dstrip \
+ -Dtarget=x86_64-linux-musl \
+ -Duse-zig-libcxx \
+ -Dversion-string="$(stage3/bin/zig version)"
+
+# diff returns an error code if the files differ.
+echo "If the following command fails, it means nondeterminism has been"
+echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."
+diff stage3/bin/zig stage4/bin/zig
diff --git a/ci/srht/freebsd_script b/ci/srht/freebsd_script
@@ -1,114 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-sudo pkg update -fq
-sudo pkg install -y cmake py39-s3cmd wget curl jq samurai
-
-ZIGDIR="$(pwd)"
-TARGET="x86_64-freebsd-gnu"
-MCPU="baseline"
-CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.10.0-dev.4560+828735ac0"
-PREFIX="$HOME/$CACHE_BASENAME"
-
-cd $HOME
-wget -nv "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz"
-tar xf "$CACHE_BASENAME.tar.xz"
-
-cd $ZIGDIR
-
-# Make the `zig version` number consistent.
-# This will affect the cmake command below.
-git config core.abbrev 9
-git fetch --unshallow || true
-git fetch --tags
-
-# SourceHut reports that it is a terminal that supports escape codes, but it
-# is a filthy liar. Here we tell Zig to not try to send any terminal escape
-# codes to show progress.
-export TERM=dumb
-
-mkdir build
-cd build
-
-
-cmake .. \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_PREFIX_PATH=$PREFIX \
- -DZIG_TARGET_TRIPLE="$TARGET" \
- -DZIG_TARGET_MCPU="$MCPU" \
- -DZIG_STATIC=ON \
- -GNinja
-
-# TODO: eliminate this workaround. Without this, zig does not end up passing
-# -isystem /usr/include when building libc++, resulting in #include <sys/endian.h>
-# "file not found" errors.
-echo "include_dir=/usr/include" >>libc.txt
-echo "sys_include_dir=/usr/include" >>libc.txt
-echo "crt_dir=/usr/lib" >>libc.txt
-echo "msvc_lib_dir=" >>libc.txt
-echo "kernel32_lib_dir=" >>libc.txt
-echo "gcc_dir=" >>libc.txt
-ZIG_LIBC_TXT="$(pwd)/libc.txt"
-
-ZIG_LIBC="$ZIG_LIBC_TXT" samu install
-
-# Here we skip some tests to save time.
-stage3/bin/zig build test docs \
- --zig-lib-dir "$(pwd)/../lib" \
- -Dstatic-llvm \
- --search-prefix "$PREFIX" \
- -Dskip-stage1 \
- -Dskip-non-native
-
-# Produce the experimental std lib documentation.
-mkdir -p "stage3/doc/std"
-stage3/bin/zig test "$(pwd)/../lib/std/std.zig" \
- --zig-lib-dir "$(pwd)/../lib" \
- -femit-docs="$(pwd)/stage3/doc/std/" \
- -fno-emit-bin
-
-if [ -f ~/.s3cfg ]; then
- # Remove the unnecessary bin dir in stage3/bin/zig
- mv stage3/bin/zig stage3/
- rmdir stage3/bin
-
- # Remove the unnecessary zig dir in stage3/lib/zig/std/std.zig
- mv stage3/lib/zig stage3/lib2
- rmdir stage3/lib
- mv stage3/lib2 stage3/lib
-
- mv ../LICENSE stage3/
- mv ../zig-cache/langref.html stage3/doc/
-
- GITBRANCH=$(basename $GITHUB_REF)
- VERSION=$(stage3/zig version)
- DIRNAME="zig-freebsd-x86_64-$VERSION"
- TARBALL="$DIRNAME.tar.xz"
- mv stage3 "$DIRNAME"
- tar cfJ "$TARBALL" "$DIRNAME"
-
- s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/
-
- SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1)
- BYTESIZE=$(wc -c < $TARBALL)
-
- JSONFILE="freebsd-$GITBRANCH.json"
- touch $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/x86_64-freebsd-$VERSION.json"
-
- if [ "$GITBRANCH" = "master" ]; then
- # avoid leaking oauth token
- set +x
-
- OAUTH_TOKEN="$(cat ~/.oauth_token)"
- cd "$ZIGDIR"
- ./ci/srht/on_master_success "$VERSION" "$OAUTH_TOKEN"
- fi
-fi
diff --git a/ci/srht/index.json b/ci/srht/index.json
@@ -1,691 +0,0 @@
-{
- "master": {
- "version": "{{MASTER_VERSION}}",
- "date": "{{MASTER_DATE}}",
- "docs": "https://ziglang.org/documentation/master/",
- "stdDocs": "https://ziglang.org/documentation/master/std/",
- "src": {
- "tarball": "https://ziglang.org/builds/{{SRC_TARBALL}}",
- "shasum": "{{SRC_SHASUM}}",
- "size": "{{SRC_BYTESIZE}}"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/builds/{{X86_64_FREEBSD_TARBALL}}",
- "shasum": "{{X86_64_FREEBSD_SHASUM}}",
- "size": "{{X86_64_FREEBSD_BYTESIZE}}"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/builds/{{X86_64_MACOS_TARBALL}}",
- "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}}",
- "size": "{{X86_64_WINDOWS_BYTESIZE}}"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/builds/{{X86_64_LINUX_TARBALL}}",
- "shasum": "{{X86_64_LINUX_SHASUM}}",
- "size": "{{X86_64_LINUX_BYTESIZE}}"
- }
- },
- "0.10.0": {
- "date": "2022-10-31",
- "docs": "https://ziglang.org/documentation/0.10.0/",
- "stdDocs": "https://ziglang.org/documentation/0.10.0/std/",
- "notes": "https://ziglang.org/download/0.10.0/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-0.10.0.tar.xz",
- "shasum": "d8409f7aafc624770dcd050c8fa7e62578be8e6a10956bca3c86e8531c64c136",
- "size": "14530912"
- },
- "bootstrap": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-bootstrap-0.10.0.tar.xz",
- "shasum": "c13dc70c4ff4c09f749adc0d473cbd3942991dd4d1bd2d860fbf257d8c1bbabf",
- "size": "45625516"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-freebsd-x86_64-0.10.0.tar.xz",
- "shasum": "dd77afa2a8676afbf39f7d6068eda81b0723afd728642adaac43cb2106253d65",
- "size": "44056504"
- },
- "aarch64-linux": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-linux-aarch64-0.10.0.tar.xz",
- "shasum": "09ef50c8be73380799804169197820ee78760723b0430fa823f56ed42b06ea0f",
- "size": "40387688"
- },
- "armv7a-linux": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-linux-armv7a-0.10.0.tar.xz",
- "shasum": "7201b2e89cd7cc2dde95d39485fd7d5641ba67dc6a9a58c036cb4c308d2e82de",
- "size": "50805936"
- },
- "i386-linux": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-linux-i386-0.10.0.tar.xz",
- "shasum": "dac8134f1328c50269f3e50b334298ec7916cb3b0ef76927703ddd1c96fd0115",
- "size": "48451732"
- },
- "riscv64-linux": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-linux-riscv64-0.10.0.tar.xz",
- "shasum": "2a126f3401a7a7efc4b454f0a85c133db1af5a9dfee117f172213b7cbd47bfba",
- "size": "42272968"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz",
- "shasum": "631ec7bcb649cd6795abe40df044d2473b59b44e10be689c15632a0458ddea55",
- "size": "44142400"
- },
- "aarch64-macos": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-macos-aarch64-0.10.0.tar.xz",
- "shasum": "02f7a7839b6a1e127eeae22ea72c87603fb7298c58bc35822a951479d53c7557",
- "size": "40602664"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-macos-x86_64-0.10.0.tar.xz",
- "shasum": "3a22cb6c4749884156a94ea9b60f3a28cf4e098a69f08c18fbca81c733ebfeda",
- "size": "45175104"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-windows-x86_64-0.10.0.zip",
- "shasum": "a66e2ff555c6e48781de1bcb0662ef28ee4b88af3af2a577f7b1950e430897ee",
- "size": "73181558"
- },
- "aarch64-windows": {
- "tarball": "https://ziglang.org/download/0.10.0/zig-windows-aarch64-0.10.0.zip",
- "shasum": "1bbda8d123d44f3ae4fa90d0da04b1e9093c3f9ddae3429a4abece1e1c0bf19a",
- "size": "69332389"
- }
- },
- "0.9.1": {
- "date": "2022-02-14",
- "docs": "https://ziglang.org/documentation/0.9.1/",
- "stdDocs": "https://ziglang.org/documentation/0.9.1/std/",
- "notes": "https://ziglang.org/download/0.9.1/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-0.9.1.tar.xz",
- "shasum": "38cf4e84481f5facc766ba72783e7462e08d6d29a5d47e3b75c8ee3142485210",
- "size": "13940828"
- },
- "bootstrap": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-bootstrap-0.9.1.tar.xz",
- "shasum": "0a8e221c71860d8975c15662b3ed3bd863e81c4fe383455a596e5e0e490d6109",
- "size": "42488812"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-freebsd-x86_64-0.9.1.tar.xz",
- "shasum": "4e06009bd3ede34b72757eec1b5b291b30aa0d5046dadd16ecb6b34a02411254",
- "size": "39028848"
- },
- "aarch64-linux": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-linux-aarch64-0.9.1.tar.xz",
- "shasum": "5d99a39cded1870a3fa95d4de4ce68ac2610cca440336cfd252ffdddc2b90e66",
- "size": "37034860"
- },
- "armv7a-linux": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-linux-armv7a-0.9.1.tar.xz",
- "shasum": "6de64456cb4757a555816611ea697f86fba7681d8da3e1863fa726a417de49be",
- "size": "37974652"
- },
- "i386-linux": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-linux-i386-0.9.1.tar.xz",
- "shasum": "e776844fecd2e62fc40d94718891057a1dbca1816ff6013369e9a38c874374ca",
- "size": "44969172"
- },
- "riscv64-linux": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-linux-riscv64-0.9.1.tar.xz",
- "shasum": "208dea53662c2c52777bd9e3076115d2126a4f71aed7f2ff3b8fe224dc3881aa",
- "size": "39390868"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz",
- "shasum": "be8da632c1d3273f766b69244d80669fe4f5e27798654681d77c992f17c237d7",
- "size": "41011464"
- },
- "aarch64-macos": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-macos-aarch64-0.9.1.tar.xz",
- "shasum": "8c473082b4f0f819f1da05de2dbd0c1e891dff7d85d2c12b6ee876887d438287",
- "size": "38995640"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-macos-x86_64-0.9.1.tar.xz",
- "shasum": "2d94984972d67292b55c1eb1c00de46580e9916575d083003546e9a01166754c",
- "size": "43713044"
- },
- "i386-windows": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-windows-i386-0.9.1.zip",
- "shasum": "74a640ed459914b96bcc572183a8db687bed0af08c30d2ea2f8eba03ae930f69",
- "size": "67929868"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-windows-x86_64-0.9.1.zip",
- "shasum": "443da53387d6ae8ba6bac4b3b90e9fef4ecbe545e1c5fa3a89485c36f5c0e3a2",
- "size": "65047697"
- },
- "aarch64-windows": {
- "tarball": "https://ziglang.org/download/0.9.1/zig-windows-aarch64-0.9.1.zip",
- "shasum": "621bf95f54dc3ff71466c5faae67479419951d7489e40e87fd26d195825fb842",
- "size": "61478151"
- }
- },
- "0.9.0": {
- "date": "2021-12-20",
- "docs": "https://ziglang.org/documentation/0.9.0/",
- "stdDocs": "https://ziglang.org/documentation/0.9.0/std/",
- "notes": "https://ziglang.org/download/0.9.0/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-0.9.0.tar.xz",
- "shasum": "cd1be83b12f8269cc5965e59877b49fdd8fa638efb6995ac61eb4cea36a2e381",
- "size": "13928772"
- },
- "bootstrap": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-bootstrap-0.9.0.tar.xz",
- "shasum": "16b0bdf0bc0a5ed1e0950e08481413d806192e06443a512347526647b2baeabc",
- "size": "42557736"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-freebsd-x86_64-0.9.0.tar.xz",
- "shasum": "c95afe679b7cc4110dc2ecd3606c83a699718b7a958d6627f74c20886333e194",
- "size": "41293236"
- },
- "aarch64-linux": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-linux-aarch64-0.9.0.tar.xz",
- "shasum": "1524fedfdbade2dbc9bae1ed98ad38fa7f2114c9a3e94da0d652573c75efbc5a",
- "size": "40008396"
- },
- "armv7a-linux": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-linux-armv7a-0.9.0.tar.xz",
- "shasum": "50225dee6e6448a63ee96383a34d9fe3bba34ae8da1a0c8619bde2cdfc1df87d",
- "size": "41196876"
- },
- "i386-linux": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-linux-i386-0.9.0.tar.xz",
- "shasum": "b0dcf688349268c883292acdd55eaa3c13d73b9146e4b990fad95b84a2ac528b",
- "size": "47408656"
- },
- "riscv64-linux": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-linux-riscv64-0.9.0.tar.xz",
- "shasum": "85466de07504767ed37f59782672ad41bbdf43d6480fafd07f45543278b07620",
- "size": "44171420"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-linux-x86_64-0.9.0.tar.xz",
- "shasum": "5c55344a877d557fb1b28939785474eb7f4f2f327aab55293998f501f7869fa6",
- "size": "43420796"
- },
- "aarch64-macos": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-macos-aarch64-0.9.0.tar.xz",
- "shasum": "3991c70594d61d09fb4b316157a7c1d87b1d4ec159e7a5ecd11169ff74cad832",
- "size": "39013392"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-macos-x86_64-0.9.0.tar.xz",
- "shasum": "c5280eeec4d6e5ea5ce5b448dc9a7c4bdd85ecfed4c1b96aa0835e48b36eccf0",
- "size": "43764596"
- },
- "i386-windows": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-windows-i386-0.9.0.zip",
- "shasum": "bb839434afc75092015cf4c33319d31463c18512bc01dd719aedf5dcbc368466",
- "size": "67946715"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-windows-x86_64-0.9.0.zip",
- "shasum": "084ea2646850aaf068234b0f1a92b914ed629be47075e835f8a67d55c21d880e",
- "size": "65045849"
- },
- "aarch64-windows": {
- "tarball": "https://ziglang.org/download/0.9.0/zig-windows-aarch64-0.9.0.zip",
- "shasum": "f9018725e3fb2e8992b17c67034726971156eb190685018a9ac8c3a9f7a22340",
- "size": "61461921"
- }
- },
- "0.8.1": {
- "date": "2021-09-06",
- "docs": "https://ziglang.org/documentation/0.8.1/",
- "stdDocs": "https://ziglang.org/documentation/0.8.1/std/",
- "notes": "https://ziglang.org/download/0.8.1/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-0.8.1.tar.xz",
- "shasum": "8c428e14a0a89cb7a15a6768424a37442292858cdb695e2eb503fa3c7bf47f1a",
- "size": "12650228"
- },
- "bootstrap": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-bootstrap-0.8.1.tar.xz",
- "shasum": "fa1239247f830ecd51c42537043f5220e4d1dfefdc54356fa419616a0efb3902",
- "size": "43613464"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-freebsd-x86_64-0.8.1.tar.xz",
- "shasum": "fc4f6478bcf3a9fce1b8ef677a91694f476dd35be6d6c9c4f44a8b76eedbe176",
- "size": "39150924"
- },
- "aarch64-linux": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-linux-aarch64-0.8.1.tar.xz",
- "shasum": "2166dc9f2d8df387e8b4122883bb979d739281e1ff3f3d5483fec3a23b957510",
- "size": "37605932"
- },
- "armv7a-linux": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-linux-armv7a-0.8.1.tar.xz",
- "shasum": "5ba58141805e2519f38cf8e715933cbf059f4f3dade92c71838cce341045de05",
- "size": "39185876"
- },
- "i386-linux": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-linux-i386-0.8.1.tar.xz",
- "shasum": "2f3e84f30492b5f1c5f97cecc0166f07a8a8d50c5f85dbb3a6ef2a4ee6f915e6",
- "size": "44782932"
- },
- "riscv64-linux": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-linux-riscv64-0.8.1.tar.xz",
- "shasum": "4adfaf147b025917c03367462fe5018aaa9edbc6439ef9cd0da2b074ae960554",
- "size": "41234480"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-linux-x86_64-0.8.1.tar.xz",
- "shasum": "6c032fc61b5d77a3f3cf781730fa549f8f059ffdb3b3f6ad1c2994d2b2d87983",
- "size": "41250060"
- },
- "aarch64-macos": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-macos-aarch64-0.8.1.tar.xz",
- "shasum": "5351297e3b8408213514b29c0a938002c5cf9f97eee28c2f32920e1227fd8423",
- "size": "35340712"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-macos-x86_64-0.8.1.tar.xz",
- "shasum": "16b0e1defe4c1807f2e128f72863124bffdd906cefb21043c34b673bf85cd57f",
- "size": "39946200"
- },
- "i386-windows": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-windows-i386-0.8.1.zip",
- "shasum": "099605051eb0452a947c8eab8fbbc7e43833c8376d267e94e41131c289a1c535",
- "size": "64152358"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.8.1/zig-windows-x86_64-0.8.1.zip",
- "shasum": "43573db14cd238f7111d6bdf37492d363f11ecd1eba802567a172f277d003926",
- "size": "61897838"
- }
- },
- "0.8.0": {
- "date": "2021-06-04",
- "docs": "https://ziglang.org/documentation/0.8.0/",
- "stdDocs": "https://ziglang.org/documentation/0.8.0/std/",
- "notes": "https://ziglang.org/download/0.8.0/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-0.8.0.tar.xz",
- "shasum": "03a828d00c06b2e3bb8b7ff706997fd76bf32503b08d759756155b6e8c981e77",
- "size": "12614896"
- },
- "bootstrap": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-bootstrap-0.8.0.tar.xz",
- "shasum": "10600bc9c01f92e343f40d6ecc0ad05d67d27c3e382bce75524c0639cd8ca178",
- "size": "43574248"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-freebsd-x86_64-0.8.0.tar.xz",
- "shasum": "0d3ccc436c8c0f50fd55462f72f8492d98723c7218ffc2a8a1831967d81b4bdc",
- "size": "39125332"
- },
- "aarch64-linux": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-linux-aarch64-0.8.0.tar.xz",
- "shasum": "ee204ca2c2037952cf3f8b10c609373a08a291efa4af7b3c73be0f2b27720470",
- "size": "37575428"
- },
- "armv7a-linux": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-linux-armv7a-0.8.0.tar.xz",
- "shasum": "d00b8bd97b79f45d6f5da956983bafeaa082e6c2ae8c6e1c6d4faa22fa29b320",
- "size": "38884212"
- },
- "i386-linux": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-linux-i386-0.8.0.tar.xz",
- "shasum": "96e43ee6ed81c3c63401f456bd1c58ee6d42373a43cb324f5cf4974ca0998865",
- "size": "42136032"
- },
- "riscv64-linux": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-linux-riscv64-0.8.0.tar.xz",
- "shasum": "75997527a78cdab64c40c43d9df39c01c4cdb557bb3992a869838371a204cfea",
- "size": "40016268"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-linux-x86_64-0.8.0.tar.xz",
- "shasum": "502625d3da3ae595c5f44a809a87714320b7a40e6dff4a895b5fa7df3391d01e",
- "size": "41211184"
- },
- "aarch64-macos": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-macos-aarch64-0.8.0.tar.xz",
- "shasum": "b32d13f66d0e1ff740b3326d66a469ee6baddbd7211fa111c066d3bd57683111",
- "size": "35292180"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-macos-x86_64-0.8.0.tar.xz",
- "shasum": "279f9360b5cb23103f0395dc4d3d0d30626e699b1b4be55e98fd985b62bc6fbe",
- "size": "39969312"
- },
- "i386-windows": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-windows-i386-0.8.0.zip",
- "shasum": "b6ec9aa6cd6f3872fcb30d43ff411802d82008a0c4142ee49e208a09b2c1c5fe",
- "size": "61507213"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.8.0/zig-windows-x86_64-0.8.0.zip",
- "shasum": "8580fbbf3afb72e9b495c7f8aeac752a03475ae0bbcf5d787f3775c7e1f4f807",
- "size": "61766193"
- }
- },
- "0.7.1": {
- "date": "2020-12-13",
- "docs": "https://ziglang.org/documentation/0.7.1/",
- "stdDocs": "https://ziglang.org/documentation/0.7.1/std/",
- "notes": "https://ziglang.org/download/0.7.1/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-0.7.1.tar.xz",
- "shasum": "2db3b944ab368d955b48743d9f7c963b8f96de1a441ba5a35e197237cc6dae44",
- "size": "10711824"
- },
- "bootstrap": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-bootstrap-0.7.1.tar.xz",
- "shasum": "040f27c1fae4b0cac0a2782aecdb691f6a2f8e89db6a6ed35024c31c304fd9b2",
- "size": "40232612"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-freebsd-x86_64-0.7.1.tar.xz",
- "shasum": "e73c1dca35791a3183fdd5ecde0443ebbe180942efceafe651886034fb8def09",
- "size": "39066808"
- },
- "aarch64-linux": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-linux-aarch64-0.7.1.tar.xz",
- "shasum": "48ec90eba407e4587ddef7eecef25fec7e13587eb98e3b83c5f2f5fff2a5cbe7",
- "size": "33780552"
- },
- "armv7a-linux": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-linux-armv7a-0.7.1.tar.xz",
- "shasum": "5a0662e07b4c4968665e1f97558f8591f6facec45d2e0ff5715e661743107ceb",
- "size": "35813504"
- },
- "i386-linux": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-linux-i386-0.7.1.tar.xz",
- "shasum": "4882e052e5f83690bd0334bb4fc1702b5403cb3a3d2aa63fd7d6043d8afecba3",
- "size": "39230912"
- },
- "riscv64-linux": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-linux-riscv64-0.7.1.tar.xz",
- "shasum": "187294bfd35983348c3fe042901b42e67e7e36ab7f77a5f969d21c0051f4d21f",
- "size": "37454812"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-linux-x86_64-0.7.1.tar.xz",
- "shasum": "18c7b9b200600f8bcde1cd8d7f1f578cbc3676241ce36d771937ce19a8159b8d",
- "size": "37848176"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-macos-x86_64-0.7.1.tar.xz",
- "shasum": "845cb17562978af0cf67e3993f4e33330525eaf01ead9386df9105111e3bc519",
- "size": "36211076"
- },
- "i386-windows": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-windows-i386-0.7.1.zip",
- "shasum": "a1b9a7421e13153e07fd2e2c93ff29aad64d83105b8fcdafa633dbe689caf1c0",
- "size": "54374983"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.7.1/zig-windows-x86_64-0.7.1.zip",
- "shasum": "4818a8a65b4672bc52c0ae7f14d014e0eb8caf10f12c0745176820384cea296a",
- "size": "54909997"
- }
- },
- "0.7.0": {
- "date": "2020-11-08",
- "docs": "https://ziglang.org/documentation/0.7.0/",
- "stdDocs": "https://ziglang.org/documentation/0.7.0/std/",
- "notes": "https://ziglang.org/download/0.7.0/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-0.7.0.tar.xz",
- "shasum": "0efd2cf6c3b05723db80e9cf193bc55150bba84ca41f855a90f53fc756445f83",
- "size": "10683920"
- },
- "bootstrap": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-bootstrap-0.7.0.tar.xz",
- "shasum": "f073beaf5c53c8c57c0d374cbfcb332ef92ad703173edba0d9e0f2ed28401b72",
- "size": "40200436"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-freebsd-x86_64-0.7.0.tar.xz",
- "shasum": "a0c926272ee4ae720034b4a6a1dc98399d76156dd84182554740f0ca8a41fc99",
- "size": "34798992"
- },
- "aarch64-linux": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-linux-aarch64-0.7.0.tar.xz",
- "shasum": "f89933bac87d44be82325754ff88423020c81c7032a6fc41cfeb81e982eeab9b",
- "size": "33096140"
- },
- "armv7a-linux": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-linux-armv7a-0.7.0.tar.xz",
- "shasum": "011c267e25a96ee160505a560c441daa045359a9d50e13ab1bada9d75c95db2d",
- "size": "35157584"
- },
- "i386-linux": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-linux-i386-0.7.0.tar.xz",
- "shasum": "4bb2072cd363bcb1cbeb4872ff5cbc1f683b02d0cc1f90c46e3ea7422ce53222",
- "size": "38530596"
- },
- "riscv64-linux": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-linux-riscv64-0.7.0.tar.xz",
- "shasum": "40dff81faa6f232ac40abbf88b9371f3cc932b6e09c423b94387c9ea580cb7be",
- "size": "36759992"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-linux-x86_64-0.7.0.tar.xz",
- "shasum": "e619b1c6094c095b932767f527aee2507f847ea981513ff8a08aab0fd730e0ac",
- "size": "37154432"
- },
- "aarch64-macos": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-macos-aarch64-0.7.0.tar.xz",
- "shasum": "338238035734db74ea4f30e500a4893bf741d38305c10952d5e39fa05bdb057d",
- "size": "33739424"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-macos-x86_64-0.7.0.tar.xz",
- "shasum": "94063f9a311cbbf7a2e0a12295e09437182cf950f18cb0eb30ea9893f3677f24",
- "size": "35258328"
- },
- "i386-windows": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-windows-i386-0.7.0.zip",
- "shasum": "b1e520aacbfbd645ff3521b3eb4d44166d9a0288b8725e4b001f8b50a425eb2e",
- "size": "53390517"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.7.0/zig-windows-x86_64-0.7.0.zip",
- "shasum": "965f56c0a36f9cda2125e3a348bc654f7f155e2804c3667d231775ec228f8553",
- "size": "53943784"
- }
- },
- "0.6.0": {
- "date": "2020-04-13",
- "docs": "https://ziglang.org/documentation/0.6.0/",
- "stdDocs": "https://ziglang.org/documentation/0.6.0/std/",
- "notes": "https://ziglang.org/download/0.6.0/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-0.6.0.tar.xz",
- "shasum": "5d167dc19354282dd35dd17b38e99e1763713b9be8a4ba9e9e69284e059e7204",
- "size": "10349552"
- },
- "bootstrap": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-bootstrap-0.6.0.tar.xz",
- "shasum": "5e0e4dc878b3dd0c1852a442b174f0732e8c07869a8fcd226b71a93b89b381ab",
- "size": "38469948"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-freebsd-x86_64-0.6.0.tar.xz",
- "shasum": "190ff79c1eb56805a315d7c7a51082e32f62926250c0702b36760c225e1634a3",
- "size": "36974604"
- },
- "aarch64-linux": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-linux-aarch64-0.6.0.tar.xz",
- "shasum": "e7520efd42cfa02be48c2e430d08fe1f3cbb999d21d9f0d3ffd0febb976b2f41",
- "size": "37090044"
- },
- "armv6kz-linux": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv6kz-0.6.0.tar.xz",
- "shasum": "36b6493b3fed43eb1f0000e765798ad31a6bb7d7fd3f553ac1c3761dbc919b82",
- "size": "39133452"
- },
- "armv7a-linux": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv7a-0.6.0.tar.xz",
- "shasum": "946969abe357def95ca9cbbfcebfcf2d90cf967bcd3f48ee87662e32d91d8f35",
- "size": "39143748"
- },
- "i386-linux": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-linux-i386-0.6.0.tar.xz",
- "shasum": "a97a2f9ae21575743cdd763c1917d49400d83fc562ef64582b18bade43eb24ce",
- "size": "44877640"
- },
- "riscv64-linux": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-linux-riscv64-0.6.0.tar.xz",
- "shasum": "68ddee43f7503c8ae5f26a921f3602c34719a02ed2241f528c0b8b888cc14b38",
- "size": "41993144"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-linux-x86_64-0.6.0.tar.xz",
- "shasum": "08fd3c757963630645441c2772362e9c2294020c44f14fce1b89f45de0dc1253",
- "size": "44766320"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-macos-x86_64-0.6.0.tar.xz",
- "shasum": "17270360e87ddc49f737e760047b2fac49f1570a824a306119b1194ac4093895",
- "size": "42573184"
- },
- "i386-windows": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-windows-i386-0.6.0.zip",
- "shasum": "3b0a02618743e92175990dc6d1a787bb95ff62c4cda016f1c14c7786f575f8ca",
- "size": "60446431"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.6.0/zig-windows-x86_64-0.6.0.zip",
- "shasum": "c3b897832523e1026e10b2d8d55d7f895185c0a27a63681f3a23219c3f1c38f4",
- "size": "49065511"
- }
- },
- "0.5.0": {
- "date": "2019-09-30",
- "docs": "https://ziglang.org/documentation/0.5.0/",
- "notes": "https://ziglang.org/download/0.5.0/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.5.0/zig-0.5.0.tar.xz",
- "shasum": "55ae16960f152bcb9cf98b4f8570902d0e559a141abf927f0d3555b7cc838a31",
- "size": "10956132"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.5.0/zig-freebsd-x86_64-0.5.0.tar.xz",
- "shasum": "9e1f4d36c3d584c0aa01f20eb4cd0a0eef3eee5af23e483b8414de55feab6ab6",
- "size": "33650744"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.5.0/zig-macos-x86_64-0.5.0.tar.xz",
- "shasum": "28702cc05745c7c0bd450487d5f4091bf0a1ad279b35eb9a640ce3e3a15b300d",
- "size": "37898664"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.5.0/zig-windows-x86_64-0.5.0.zip",
- "shasum": "58141323db8d84a5af62746be5f9140bc161ee760ef33dc91a887bf9ac021976",
- "size": "44871804"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.5.0/zig-linux-x86_64-0.5.0.tar.xz",
- "shasum": "43e8f8a8b8556edd373ddf9c1ef3ca6cf852d4d09fe07d5736d12fefedd2b4f7",
- "size": "40895068"
- }
- },
- "0.4.0": {
- "date": "2019-04-08",
- "docs": "https://ziglang.org/documentation/0.4.0/",
- "notes": "https://ziglang.org/download/0.4.0/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.4.0/zig-0.4.0.tar.xz",
- "shasum": "fec1f3f6b359a3d942e0a7f9157b3b30cde83927627a0e1ea95c54de3c526cfc",
- "size": "5348776"
- },
- "x86_64-freebsd": {
- "tarball": "https://ziglang.org/download/0.4.0/zig-freebsd-x86_64-0.4.0.tar.xz",
- "shasum": "3d557c91ac36d8262eb1733bb5f261c95944f9b635e43386e3d00a3272818c30",
- "size": "27269672"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.4.0/zig-macos-x86_64-0.4.0.tar.xz",
- "shasum": "67c932982484d017c5111e54af9f33f15e8e05c6bc5346a55e04052159c964a8",
- "size": "30841504"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.4.0/zig-windows-x86_64-0.4.0.zip",
- "shasum": "fbc3dd205e064c263063f69f600bedb18e3d0aa2efa747a63ef6cafb6d73f127",
- "size": "35800101"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.4.0/zig-linux-x86_64-0.4.0.tar.xz",
- "shasum": "fb1954e2fb556a01f8079a08130e88f70084e08978ff853bb2b1986d8c39d84e",
- "size": "32876100"
- }
- },
- "0.3.0": {
- "date": "2018-09-28",
- "docs": "https://ziglang.org/documentation/0.3.0/",
- "notes": "https://ziglang.org/download/0.3.0/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.3.0/zig-0.3.0.tar.xz",
- "shasum": "d70af604f3a8622f3393d93abb3e056bf60351e32d121e6fa4fe03d8d41e1f5a",
- "size": "2335592"
- },
- "x86_64-macos": {
- "tarball": "https://ziglang.org/download/0.3.0/zig-macos-x86_64-0.3.0.tar.xz",
- "shasum": "19dec1f1943ab7be26823376d466f7e456143deb34e17502778a949034dc2e7e",
- "size": "23712696"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.3.0/zig-windows-x86_64-0.3.0.zip",
- "shasum": "bb568c03950958f8bb3472139c3ab5ed74547c8c694ab50f404c202faf51baf4",
- "size": "22524425"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.3.0/zig-linux-x86_64-0.3.0.tar.xz",
- "shasum": "b378d0aae30cb54f28494e7bc4efbc9bfb6326f47bfb302e8b5287af777b2f3c",
- "size": "25209304"
- }
- },
- "0.2.0": {
- "date": "2018-03-15",
- "docs": "https://ziglang.org/documentation/0.2.0/",
- "notes": "https://ziglang.org/download/0.2.0/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.2.0/zig-0.2.0.tar.xz",
- "shasum": "29c9beb172737f4d5019b88ceae829ae8bc6512fb4386cfbf895ae2b42aa6965",
- "size": "1940832"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.2.0/zig-win64-0.2.0.zip",
- "shasum": "4f8a2979941a1f081ec8e545cca0b72608c0db1c5a3fd377a94db40649dcd3d4",
- "size": "21076274"
- },
- "x86_64-linux": {
- "tarball": "https://ziglang.org/download/0.2.0/zig-linux-x86_64-0.2.0.tar.xz",
- "shasum": "209c6fb745d42474c0a73d6f291c7ae3a38b6a1b6b641eea285a7f840cc1a890",
- "size": "22551928"
- }
- },
- "0.1.1": {
- "date": "2017-10-17",
- "docs": "https://ziglang.org/documentation/0.1.1/",
- "notes": "https://ziglang.org/download/0.1.1/release-notes.html",
- "src": {
- "tarball": "https://ziglang.org/download/0.1.1/zig-0.1.1.tar.xz",
- "shasum": "ffca0cfb263485287e19cc997b08701fcd5f24b700345bcdc3dd8074f5a104e0",
- "size": "1659716"
- },
- "x86_64-windows": {
- "tarball": "https://ziglang.org/download/0.1.1/zig-win64-0.1.1.zip",
- "shasum": "6fc88bef531af7e567fe30bf60da1487b86833cbee84c7a2f3e317030aa5b660",
- "size": "19757776"
- }
- }
-}
diff --git a/ci/srht/netbsd_script b/ci/srht/netbsd_script
@@ -1,97 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-sudo pkgin -y update
-sudo pkgin -y upgrade
-sudo pkgin -y install cmake samurai curl jq py27-s3cmd wget clang
-
-ZIGDIR="$(pwd)"
-CACHE_BASENAME="zig+llvm+lld+clang-x86_64-netbsd-gnu-0.8.0"
-PREFIX="$HOME/$CACHE_BASENAME"
-
-cd $HOME
-wget -nv "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz"
-tar xf "$CACHE_BASENAME.tar.xz"
-
-cd $ZIGDIR
-
-# Make the `zig version` number consistent.
-# This will affect the cmake command below.
-git config core.abbrev 9
-git fetch --unshallow || true
-git fetch --tags
-
-# SourceHut reports that it is a terminal that supports escape codes, but it
-# is a filthy liar. Here we tell Zig to not try to send any terminal escape
-# codes to show progress.
-export TERM=dumb
-
-mkdir build
-cd build
-export CC="$PREFIX/bin/zigcc"
-export CXX="$PREFIX/bin/zigcxx"
-echo "#!/bin/sh
-env CC=\"clang\" $PREFIX/bin/zig cc \"\$@\"" > $CC
-echo "#!/bin/sh
-env CC=\"clang\" $PREFIX/bin/zig c++ \"\$@\"" > $CXX
-chmod +x $CC
-chmod +x $CXX
-
-cmake .. \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_PREFIX_PATH=$PREFIX \
- "-DCMAKE_INSTALL_PREFIX=$(pwd)/release" \
- -DZIG_STATIC=ON \
- -DZIG_TARGET_TRIPLE=x86_64-netbsd-none \
- -GNinja
-samu install
-
-unset CC
-unset CXX
-
-# TODO ld.lld: error: undefined symbol: main
-#>>> referenced by crt0-common.c
-#>>> /usr/lib/crt0.o:(___start)
-#release/bin/zig test ../test/behavior.zig -fno-stage1 -fLLVM -I ../test
-
-# Here we skip some tests to save time.
-release/bin/zig build test -Dskip-stage1 -Dskip-non-native
-
-if [ -f ~/.s3cfg ]; then
- mv ../LICENSE release/
- mv ../zig-cache/langref.html release/
- mv release/bin/zig release/
- rmdir release/bin
-
- GITBRANCH=$(basename $GITHUB_REF)
- VERSION=$(release/zig version)
- DIRNAME="zig-netbsd-x86_64-$VERSION"
- TARBALL="$DIRNAME.tar.xz"
- mv release "$DIRNAME"
- tar cfJ "$TARBALL" "$DIRNAME"
-
- s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/
-
- SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1)
- BYTESIZE=$(wc -c < $TARBALL)
-
- JSONFILE="netbsd-$GITBRANCH.json"
- touch $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/x86_64-netbsd-$VERSION.json"
-
- if [ "$GITBRANCH" = "master" ]; then
- # avoid leaking oauth token
- set +x
-
- OAUTH_TOKEN="$(cat ~/.oauth_token)"
- cd "$ZIGDIR"
- ./ci/srht/on_master_success "$VERSION" "$OAUTH_TOKEN"
- fi
-fi
diff --git a/ci/srht/on_master_success b/ci/srht/on_master_success
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-# This script must run on a lot of different platforms.
-# It assumes that the following things are installed:
-# * curl
-# * jq
-# * cat
-
-# We do not set -x because this would leak the oauth access token.
-set +x
-
-set -e
-
-VERSION="$1"
-OAUTH_TOKEN="$2"
-YML_FILE="tmp.yml"
-
-if [ -z "$VERSION" ]; then
- echo "missing VERSION parameter"
- exit 1
-fi
-
-if [ -z "$OAUTH_TOKEN" ]; then
- echo "missing OAUTH_TOKEN parameter"
- exit 1
-fi
-
-cat <<EOF >"$YML_FILE"
-image: alpine/latest
-packages:
- - py3-pip
- - curl
- - jq
- - xz
-secrets:
- - 51bfddf5-86a6-4e01-8576-358c72a4a0a4
- - 44e2bd57-1d07-42bf-925e-22a36119041d
-sources:
- - https://github.com/ziglang/zig
-tasks:
- - build: cd zig && ./ci/srht/update_download_page $VERSION
-EOF
-
-jq <$YML_FILE -sR '{
- "manifest": .,
- }' | curl \
- -H Authorization:"token $OAUTH_TOKEN" \
- -H Content-Type:application/json \
- -X POST \
- -d @- "https://builds.hut.lavatech.top/api/jobs"
diff --git a/ci/srht/update_download_page b/ci/srht/update_download_page
@@ -1,150 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-VERSION="$1"
-SRCDIR="$(pwd)"
-NATIVE_TARBALL="zig-linux-$(uname -m)-$VERSION.tar.xz"
-
-# Check for all the builds being completed. It's expected that this script is run several times
-# before they are all complete.
-#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"
-#X86_64_NETBSD_JSON_URL="https://ziglang.org/builds/x86_64-netbsd-$VERSION.json"
-
-# If any of these fail, it's not really this job failing; rather we have detected
-# that this job will be called again later when other jobs have completed.
-#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
-#curl --fail -I "$X86_64_NETBSD_JSON_URL" >/dev/null || exit 0
-
-# Without --user, this gave me:
-# ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied
-pip3 install s3cmd --user
-S3CMD="$HOME/.local/bin/s3cmd"
-
-# This is the user when pushing to the website repo.
-git config --global user.email "ziggy@ziglang.org"
-git config --global user.name "Ziggy"
-
-# Refresh this with `ssh-keyscan github.com` from a trusted Internet connection.
-# We hard code the public key here to detect man-in-the-middle attacks.
-echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" >> ~/.ssh/known_hosts
-
-# We don't want the .git folder inside the tarball.
-rm -rf .git
-
-cd "$HOME"
-wget "https://ziglang.org/builds/$NATIVE_TARBALL"
-tar xf "$NATIVE_TARBALL"
-ZIGDIR="$(pwd)/$(basename $NATIVE_TARBALL .tar.xz)"
-ZIG="$ZIGDIR/zig"
-LANGREF="$ZIGDIR/doc/langref.html"
-SRCTARBALLDIR="zig-$VERSION"
-export SRC_TARBALL="$SRCTARBALLDIR.tar.xz"
-mv "$SRCDIR" "$SRCTARBALLDIR"
-tar cfJ "$SRC_TARBALL" "$SRCTARBALLDIR"
-export SRC_SHASUM=$(sha256sum $SRC_TARBALL | cut '-d ' -f1)
-export SRC_BYTESIZE=$(wc -c < $SRC_TARBALL)
-
-X86_64_WINDOWS_JSON=$(curl --fail "$X86_64_WINDOWS_JSON_URL" || exit 1)
-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)"
-export X86_64_MACOS_SHASUM="$(echo "$X86_64_MACOS_JSON" | jq .shasum -r)"
-
-X86_64_LINUX_JSON=$(curl --fail "$X86_64_LINUX_JSON_URL" || exit 1)
-export X86_64_LINUX_TARBALL="$(echo "$X86_64_LINUX_JSON" | jq .tarball -r)"
-export X86_64_LINUX_BYTESIZE="$(echo "$X86_64_LINUX_JSON" | jq .size -r)"
-export X86_64_LINUX_SHASUM="$(echo "$X86_64_LINUX_JSON" | jq .shasum -r)"
-
-#AARCH64_LINUX_JSON=$(curl --fail "$AARCH64_LINUX_JSON_URL" || exit 1)
-#export AARCH64_LINUX_TARBALL="$(echo "$AARCH64_LINUX_JSON" | jq .tarball -r)"
-#export AARCH64_LINUX_BYTESIZE="$(echo "$AARCH64_LINUX_JSON" | jq .size -r)"
-#export AARCH64_LINUX_SHASUM="$(echo "$AARCH64_LINUX_JSON" | jq .shasum -r)"
-
-X86_64_FREEBSD_JSON=$(curl --fail "$X86_64_FREEBSD_JSON_URL" || exit 1)
-export X86_64_FREEBSD_TARBALL="$(echo "$X86_64_FREEBSD_JSON" | jq .tarball -r)"
-export X86_64_FREEBSD_BYTESIZE="$(echo "$X86_64_FREEBSD_JSON" | jq .size -r)"
-export X86_64_FREEBSD_SHASUM="$(echo "$X86_64_FREEBSD_JSON" | jq .shasum -r)"
-
-#X86_64_NETBSD_JSON=$(curl --fail "$X86_64_NETBSD_JSON_URL" || exit 1)
-#export X86_64_NETBSD_TARBALL="$(echo "$X86_64_NETBSD_JSON" | jq .tarball -r)"
-#export X86_64_NETBSD_BYTESIZE="$(echo "$X86_64_NETBSD_JSON" | jq .size -r)"
-#export X86_64_NETBSD_SHASUM="$(echo "$X86_64_NETBSD_JSON" | jq .shasum -r)"
-
-export MASTER_DATE="$(date +%Y-%m-%d)"
-export MASTER_VERSION="$VERSION"
-
-# Create index.json and update the website repo.
-cd "$SRCTARBALLDIR/ci/srht"
-"$ZIG" run update-download-page.zig
-CIDIR="$(pwd)"
-
-cd "$HOME"
-
-# Update autodocs and langref directly to S3 in order to prevent the
-# www.ziglang.org git repo from growing too big.
-
-# Please do not edit this script to pre-compress the artifacts before they hit
-# S3. This prevents the website from working on browsers that do not support gzip
-# encoding. Cloudfront will automatically compress files if they are less than
-# 9.5 MiB, and the client advertises itself as capable of decompressing.
-# The data.js file is currently 16 MiB. In order to fix this problem, we need to do
-# one of the following things:
-# * Reduce the size of data.js to less than 9.5 MiB.
-# * Figure out how to adjust the Cloudfront settings to increase the max size for
-# auto-compressed objects.
-# * Migrate to fastly.
-$S3CMD put -P --no-mime-magic \
- --add-header="Cache-Control: max-age=0, must-revalidate" \
- "$LANGREF" s3://ziglang.org/documentation/master/index.html
-
-$S3CMD put -P --no-mime-magic \
- --add-header="Cache-Control: max-age=0, must-revalidate" \
- "$ZIGDIR/doc/std/index.html" s3://ziglang.org/documentation/master/std/index.html
-
-$S3CMD put -P --no-mime-magic \
- --add-header="Cache-Control: max-age=0, must-revalidate" \
- "$ZIGDIR/doc/std/main.js" s3://ziglang.org/documentation/master/std/main.js
-
-$S3CMD put -P --no-mime-magic \
- --add-header="Cache-Control: max-age=0, must-revalidate" \
- "$ZIGDIR/doc/std/data.js" s3://ziglang.org/documentation/master/std/data.js
-
-$S3CMD put -P --no-mime-magic --recursive \
- --add-header="Cache-Control: max-age=0, must-revalidate" \
- -m "text/html" \
- "$ZIGDIR/doc/std/src/" s3://ziglang.org/documentation/master/std/src/
-
-$S3CMD put -P --no-mime-magic \
- --add-header="cache-control: public, max-age=31536000, immutable" \
- "$HOME/$SRC_TARBALL" s3://ziglang.org/builds/
-
-git clone --depth 1 git@github.com:ziglang/www.ziglang.org.git
-cd www.ziglang.org
-WWWDIR="$(pwd)"
-
-cd "$WWWDIR"
-cp "$CIDIR/out/index.json" data/releases.json
-git add data/releases.json
-git commit -m "CI: update releases"
-git push origin master
diff --git a/ci/srht/update-download-page.zig b/ci/update-download-page.zig
diff --git a/ci/zinc/build_aarch64_macos b/ci/zinc/build_aarch64_macos
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-RELEASE_STAGING="$DRONE_WORKSPACE/_release/staging"
-TARGET="aarch64-macos-none"
-MCPU="apple_a14"
-INSTALL_PREFIX="$DRONE_WORKSPACE/$TARGET"
-SEARCH_PREFIX="/deps/$TARGET"
-
-"$RELEASE_STAGING/bin/zig" build \
- --prefix "$INSTALL_PREFIX" \
- --search-prefix "$SEARCH_PREFIX" \
- -Dstatic-llvm \
- -Drelease \
- -Dstrip \
- -Dtarget="$TARGET" \
- -Dcpu="$MCPU" \
- -Denable-stage1
diff --git a/ci/zinc/configure_git b/ci/zinc/configure_git
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-# Make the `zig version` number consistent.
-# This will affect the cmake commands that follow.
-# This is in its own script because git does not support this command
-# being run concurrently with itself.
-git config core.abbrev 9
diff --git a/ci/zinc/drone.yml b/ci/zinc/drone.yml
@@ -1,96 +0,0 @@
----
-kind: pipeline
-type: docker
-name: x86_64-linux
-platform:
- os: linux
- arch: amd64
-workspace:
- path: /workspace
-
-steps:
-- name: configure_git
- image: ci/debian-amd64:11.1-12
- commands:
- - ./ci/zinc/configure_git
-
-- name: test_stage3_debug
- depends_on:
- - configure_git
- image: ci/debian-amd64:11.1-12
- commands:
- - ./ci/zinc/linux_test_stage3_debug
-
-- name: test_stage3_release
- depends_on:
- - configure_git
- image: ci/debian-amd64:11.1-12
- commands:
- - ./ci/zinc/linux_test_stage3_release
-
-- name: build_aarch64_macos
- depends_on:
- - test_stage3_release
- image: ci/debian-amd64:11.1-12
- commands:
- - ./ci/zinc/build_aarch64_macos
-
-- name: test_determinism
- depends_on:
- - test_stage3_release
- image: ci/debian-amd64:11.1-12
- commands:
- - ./ci/zinc/linux_test_determinism
-
-- name: linux_package
- depends_on:
- - test_stage3_debug
- - test_stage3_release
- - test_determinism
- when:
- branch:
- - master
- event:
- - push
- image: ci/debian-amd64:11.1-12
- environment:
- AWS_ACCESS_KEY_ID:
- from_secret: AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY:
- from_secret: AWS_SECRET_ACCESS_KEY
- commands:
- - ./ci/zinc/linux_package
-
-- name: macos_package
- depends_on:
- - test_stage3_debug
- - build_aarch64_macos
- when:
- branch:
- - master
- event:
- - push
- image: ci/debian-amd64:11.1-12
- environment:
- AWS_ACCESS_KEY_ID:
- from_secret: AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY:
- from_secret: AWS_SECRET_ACCESS_KEY
- commands:
- - ./ci/zinc/macos_package
-
-- name: notify_lavahut
- depends_on:
- - macos_package
- - linux_package
- when:
- branch:
- - master
- event:
- - push
- image: ci/debian-amd64:11.1-12
- environment:
- SRHT_OAUTH_TOKEN:
- from_secret: SRHT_OAUTH_TOKEN
- commands:
- - ./ci/zinc/notify_lavahut
diff --git a/ci/zinc/linux_package b/ci/zinc/linux_package
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-ARCH="$(uname -m)"
-OS="linux"
-RELEASE_STAGING="$DRONE_WORKSPACE/_release/staging"
-VERSION=$($RELEASE_STAGING/bin/zig version)
-BASENAME="zig-$OS-$ARCH-$VERSION"
-TARBALL="$BASENAME.tar.xz"
-
-# This runs concurrently with the macos_package script, so it should not make
-# any changes to the filesystem that will cause problems for the other script.
-
-cp -r "$RELEASE_STAGING" "$BASENAME"
-
-# Remove the unnecessary bin dir in $prefix/bin/zig
-mv $BASENAME/bin/zig $BASENAME/
-rmdir $BASENAME/bin
-
-# Remove the unnecessary zig dir in $prefix/lib/zig/std/std.zig
-mv $BASENAME/lib/zig $BASENAME/lib2
-rmdir $BASENAME/lib
-mv $BASENAME/lib2 $BASENAME/lib
-
-tar cfJ "$TARBALL" "$BASENAME"
-
-SHASUM=$(sha256sum $TARBALL | cut '-d ' -f1)
-BYTESIZE=$(wc -c < $TARBALL)
-
-MANIFEST="manifest-$TARGET.json"
-touch $MANIFEST
-echo "{\"tarball\": \"$TARBALL\"," >>$MANIFEST
-echo "\"shasum\": \"$SHASUM\"," >>$MANIFEST
-echo "\"size\": \"$BYTESIZE\"}" >>$MANIFEST
-
-# Publish artifact.
-s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/
-
-# Publish manifest.
-s3cmd put -P --add-header="cache-control: max-age=0, must-revalidate" "$MANIFEST" "s3://ziglang.org/builds/$ARCH-$OS-$VERSION.json"
-
-# Explicit exit helps show last command duration.
-exit
diff --git a/ci/zinc/linux_test_determinism b/ci/zinc/linux_test_determinism
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-DEPS_LOCAL="/deps/local"
-ZIG_PREFIX="$DRONE_WORKSPACE/_release/staging"
-VERSION=$($ZIG_PREFIX/bin/zig version)
-
-"$ZIG_PREFIX/bin/zig" build \
- --prefix stage4 \
- -Dconfig_h="build-release/config.h" \
- -Denable-llvm \
- -Denable-stage1 \
- -Dno-lib \
- -Drelease \
- -Dstrip \
- -Dtarget=x86_64-linux-musl \
- -Duse-zig-libcxx \
- -Dversion-string="$VERSION"
-
-# diff returns an error code if the files differ.
-echo "If the following command fails, it means nondeterminism has been"
-echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."
-diff "$ZIG_PREFIX/bin/zig" "stage4/bin/zig"
-
-# Explicit exit helps show last command duration.
-exit
diff --git a/ci/zinc/linux_test_stage3_debug b/ci/zinc/linux_test_stage3_debug
@@ -1,62 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-ARCH="$(uname -m)"
-DEPS_LOCAL="/deps/local"
-OLD_ZIG="$DEPS_LOCAL/bin/zig"
-TARGET="${ARCH}-linux-musl"
-MCPU="baseline"
-
-export PATH=$DEPS_LOCAL/bin:$PATH
-
-echo "building stage3-debug with zig version $($OLD_ZIG version)"
-
-# Override the cache directories so that we don't clobber with the release
-# testing script which is running concurrently and in the same directory.
-# Normally we want processes to cooperate, but in this case we want them isolated.
-export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-cache-local-debug"
-export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-cache-global-debug"
-
-export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU"
-export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU"
-
-mkdir build-debug
-cd build-debug
-cmake .. \
- -DCMAKE_INSTALL_PREFIX="$(pwd)/stage3" \
- -DCMAKE_PREFIX_PATH="$DEPS_LOCAL" \
- -DCMAKE_BUILD_TYPE=Debug \
- -DZIG_STATIC=ON \
- -DZIG_USE_LLVM_CONFIG=OFF \
- -GNinja
-
-# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
-# so that installation and testing do not get affected by them.
-unset CC
-unset CXX
-
-ninja install
-
-echo "Looking for non-conforming code formatting..."
-stage3/bin/zig fmt --check .. \
- --exclude ../test/cases/ \
- --exclude ../build-debug \
- --exclude ../build-release \
- --exclude "$ZIG_LOCAL_CACHE_DIR" \
- --exclude "$ZIG_GLOBAL_CACHE_DIR"
-
-# simultaneously test building self-hosted without LLVM and with 32-bit arm
-stage3/bin/zig build -Dtarget=arm-linux-musleabihf
-
-stage3/bin/zig build test \
- -fqemu \
- -fwasmtime \
- -Dstatic-llvm \
- -Dtarget=native-native-musl \
- --search-prefix "$DEPS_LOCAL" \
- --zig-lib-dir "$(pwd)/../lib"
-
-# Explicit exit helps show last command duration.
-exit
diff --git a/ci/zinc/linux_test_stage3_release b/ci/zinc/linux_test_stage3_release
@@ -1,60 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-ARCH="$(uname -m)"
-DEPS_LOCAL="/deps/local"
-RELEASE_STAGING="$DRONE_WORKSPACE/_release/staging"
-OLD_ZIG="$DEPS_LOCAL/bin/zig"
-TARGET="${ARCH}-linux-musl"
-MCPU="baseline"
-
-export PATH=$DEPS_LOCAL/bin:$PATH
-
-echo "building stage3-release with zig version $($OLD_ZIG version)"
-
-export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU"
-export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU"
-
-mkdir build-release
-cd build-release
-cmake .. \
- -DCMAKE_INSTALL_PREFIX="$RELEASE_STAGING" \
- -DCMAKE_PREFIX_PATH="$DEPS_LOCAL" \
- -DCMAKE_BUILD_TYPE=Release \
- -DZIG_TARGET_TRIPLE="$TARGET" \
- -DZIG_TARGET_MCPU="$MCPU" \
- -DZIG_STATIC=ON \
- -GNinja
-
-# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
-# so that installation and testing do not get affected by them.
-unset CC
-unset CXX
-
-ninja install
-
-"$RELEASE_STAGING/bin/zig" build test docs \
- -fqemu \
- -fwasmtime \
- -Dstatic-llvm \
- -Dtarget=native-native-musl \
- --search-prefix "$DEPS_LOCAL" \
- --zig-lib-dir "$(pwd)/../lib"
-
-# Produce the experimental std lib documentation.
-mkdir -p "$RELEASE_STAGING/doc/std"
-"$RELEASE_STAGING/bin/zig" test ../lib/std/std.zig \
- -femit-docs=$RELEASE_STAGING/doc/std \
- -fno-emit-bin \
- --zig-lib-dir "$(pwd)/../lib"
-
-cp ../LICENSE $RELEASE_STAGING/
-cp ../zig-cache/langref.html $RELEASE_STAGING/doc/
-
-# Look for HTML errors.
-tidy --drop-empty-elements no -qe $RELEASE_STAGING/doc/langref.html
-
-# Explicit exit helps show last command duration.
-exit
diff --git a/ci/zinc/macos_package b/ci/zinc/macos_package
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-ARCH="aarch64"
-OS=macos
-ZIG_PREFIX="$DRONE_WORKSPACE/_release/staging"
-VERSION=$($ZIG_PREFIX/bin/zig version)
-TARGET="$ARCH-$OS-none"
-INSTALL_PREFIX="$DRONE_WORKSPACE/$TARGET"
-BASENAME="zig-$OS-$ARCH-$VERSION"
-TARBALL="$BASENAME.tar.xz"
-
-# This runs concurrently with the linux_package script, so it should not make
-# any changes to the filesystem that will cause problems for the other script.
-
-# Remove the unnecessary bin dir in $prefix/bin/zig
-mv $INSTALL_PREFIX/bin/zig $INSTALL_PREFIX/
-rmdir $INSTALL_PREFIX/bin
-
-# Remove the unnecessary zig dir in $prefix/lib/zig/std/std.zig
-mv $INSTALL_PREFIX/lib/zig $INSTALL_PREFIX/lib2
-rmdir $INSTALL_PREFIX/lib
-mv $INSTALL_PREFIX/lib2 $INSTALL_PREFIX/lib
-
-cp -r "$ZIG_PREFIX/doc" "$INSTALL_PREFIX/"
-cp "$ZIG_PREFIX/LICENSE" "$INSTALL_PREFIX/"
-
-mv "$INSTALL_PREFIX" "$BASENAME"
-tar cfJ "$TARBALL" "$BASENAME"
-
-SHASUM=$(sha256sum $TARBALL | cut '-d ' -f1)
-BYTESIZE=$(wc -c < $TARBALL)
-
-MANIFEST="manifest-$TARGET.json"
-touch $MANIFEST
-echo "{\"tarball\": \"$TARBALL\"," >>$MANIFEST
-echo "\"shasum\": \"$SHASUM\"," >>$MANIFEST
-echo "\"size\": \"$BYTESIZE\"}" >>$MANIFEST
-
-# Publish artifact.
-s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/
-
-# Publish manifest.
-s3cmd put -P --add-header="cache-control: max-age=0, must-revalidate" "$MANIFEST" "s3://ziglang.org/builds/$ARCH-$OS-$VERSION.json"
-
-# Explicit exit helps show last command duration.
-exit
diff --git a/ci/zinc/notify_lavahut b/ci/zinc/notify_lavahut
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set +x # Avoid leaking oauth token.
-set -e
-
-ZIG_PREFIX="$DRONE_WORKSPACE/_release/staging"
-VERSION=$($ZIG_PREFIX/bin/zig version)
-cd $DRONE_WORKSPACE
-./ci/srht/on_master_success "$VERSION" "$SRHT_OAUTH_TOKEN"
diff --git a/src/stage1/zig0.cpp b/src/stage1/zig0.cpp
@@ -186,7 +186,7 @@ static Error target_parse_triple(struct ZigTarget *target, const char *zig_tripl
if (zig_triple == nullptr) {
get_native_target(target);
- if (mcpu == nullptr) {
+ if (mcpu == nullptr || strcmp(mcpu, "native") == 0) {
target->llvm_cpu_name = ZigLLVMGetHostCPUName();
target->llvm_cpu_features = ZigLLVMGetNativeFeatures();
} else if (strcmp(mcpu, "baseline") == 0) {