| author | |
| committer | |
| log | 14d77108b8c7ba8d88eaa4a1b27d88d170f1caa8 |
| tree | c316aa4c36833db50e63445e35ed0e0051c9d613 |
| parent | 670b4c5c02edc8fdfb4a73e72388ac0a140f8856 |
| parent | e21b6a712d7e5c7acb19a7d522406a705223d325 |
This is a merge commit.28 files changed, 1356 insertions(+), 1883 deletions(-)
.builds/freebsd.yml deleted-8| ... | @@ -1,8 +0,0 @@ | ||
| 1 | image: freebsd/latest | ||
| 2 | secrets: | ||
| 3 | - 51bfddf5-86a6-4e01-8576-358c72a4a0a4 | ||
| 4 | - be22288f-b1bc-4243-abe3-43d8f0e7079b | ||
| 5 | sources: | ||
| 6 | - https://github.com/ziglang/zig | ||
| 7 | tasks: | ||
| 8 | - build: cd zig && ./ci/srht/freebsd_script | ||
.github/workflows/ci.yaml created+70| ... | @@ -0,0 +1,70 @@ | ||
| 1 | name: push_ci | ||
| 2 | run-name: Push CI | ||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: | ||
| 6 | - master | ||
| 7 | jobs: | ||
| 8 | aarch64-linux: | ||
| 9 | runs-on: [self-hosted, Linux, aarch64] | ||
| 10 | steps: | ||
| 11 | - name: Checkout | ||
| 12 | uses: actions/checkout@v3 | ||
| 13 | - name: Build and Test | ||
| 14 | run: sh ./ci/linux/build-aarch64.sh | ||
| 15 | x86_64-linux-debug: | ||
| 16 | runs-on: ubuntu-latest | ||
| 17 | steps: | ||
| 18 | - name: Checkout | ||
| 19 | uses: actions/checkout@v3 | ||
| 20 | - name: Build and Test | ||
| 21 | run: sh ./ci/linux/build-x86_64-debug.sh | ||
| 22 | x86_64-linux-release: | ||
| 23 | runs-on: ubuntu-latest | ||
| 24 | steps: | ||
| 25 | - name: Checkout | ||
| 26 | uses: actions/checkout@v3 | ||
| 27 | - name: Build and Test | ||
| 28 | run: sh ./ci/linux/build-x86_64-release.sh | ||
| 29 | x86_64-macos: | ||
| 30 | strategy: | ||
| 31 | matrix: | ||
| 32 | version: ["11", "12"] | ||
| 33 | runs-on: "macos-${{ matrix.version }}" | ||
| 34 | env: | ||
| 35 | ARCH: "x86_64" | ||
| 36 | MACOS_VERSION: ${{ matrix.version }} | ||
| 37 | steps: | ||
| 38 | - name: Checkout | ||
| 39 | uses: actions/checkout@v3 | ||
| 40 | |||
| 41 | - name: Run Build Script | ||
| 42 | run: ./ci/macos/build-x86_64.sh | ||
| 43 | aarch64-macos: | ||
| 44 | runs-on: [self-hosted, macOS, aarch64] | ||
| 45 | env: | ||
| 46 | ARCH: "aarch64" | ||
| 47 | steps: | ||
| 48 | - name: Checkout | ||
| 49 | uses: actions/checkout@v3 | ||
| 50 | |||
| 51 | - name: Run Build Script | ||
| 52 | run: ./ci/macos/build-aarch64.sh | ||
| 53 | x86_64-windows: | ||
| 54 | runs-on: windows-latest | ||
| 55 | env: | ||
| 56 | ARCH: "x86_64" | ||
| 57 | steps: | ||
| 58 | - name: Checkout | ||
| 59 | uses: actions/checkout@v3 | ||
| 60 | |||
| 61 | - name: Run Build Script | ||
| 62 | run: ./ci/windows/build.ps1 | ||
| 63 | build-tarballs: | ||
| 64 | needs: [aarch64-linux, x86_64-macos, aarch64-macos, x86_64-windows, x86_64-linux-debug, x86_64-linux-release] | ||
| 65 | runs-on: [self-hosted, Linux, aarch64] | ||
| 66 | steps: | ||
| 67 | - name: Checkout | ||
| 68 | uses: actions/checkout@v3 | ||
| 69 | - name: Build Tarballs | ||
| 70 | run: sh ./ci/linux/build-tarballs.sh | ||
CMakeLists.txt+3-3| ... | @@ -121,7 +121,7 @@ string(REGEX REPLACE "\\\\" "\\\\\\\\" ZIG_LIBC_INCLUDE_DIR_ESCAPED "${ZIG_LIBC_ | ... | @@ -121,7 +121,7 @@ string(REGEX REPLACE "\\\\" "\\\\\\\\" ZIG_LIBC_INCLUDE_DIR_ESCAPED "${ZIG_LIBC_ |
| 121 | option(ZIG_TEST_COVERAGE "Build Zig with test coverage instrumentation" OFF) | 121 | option(ZIG_TEST_COVERAGE "Build Zig with test coverage instrumentation" OFF) |
| 122 | 122 | ||
| 123 | set(ZIG_TARGET_TRIPLE "native" CACHE STRING "arch-os-abi to output binaries for") | 123 | set(ZIG_TARGET_TRIPLE "native" CACHE STRING "arch-os-abi to output binaries for") |
| 124 | set(ZIG_TARGET_MCPU "baseline" CACHE STRING "-mcpu parameter to output binaries for") | 124 | set(ZIG_TARGET_MCPU "native" CACHE STRING "-mcpu parameter to output binaries for") |
| 125 | set(ZIG_EXECUTABLE "" CACHE STRING "(when cross compiling) path to already-built zig binary") | 125 | set(ZIG_EXECUTABLE "" CACHE STRING "(when cross compiling) path to already-built zig binary") |
| 126 | set(ZIG_SINGLE_THREADED off CACHE BOOL "limit the zig compiler to use only 1 thread") | 126 | set(ZIG_SINGLE_THREADED off CACHE BOOL "limit the zig compiler to use only 1 thread") |
| 127 | set(ZIG_OMIT_STAGE2 off CACHE BOOL "omit the stage2 backend from stage1") | 127 | set(ZIG_OMIT_STAGE2 off CACHE BOOL "omit the stage2 backend from stage1") |
| ... | @@ -1036,8 +1036,8 @@ set(BUILD_ZIG2_ARGS | ... | @@ -1036,8 +1036,8 @@ set(BUILD_ZIG2_ARGS |
| 1036 | "-femit-bin=${ZIG2_OBJECT}" | 1036 | "-femit-bin=${ZIG2_OBJECT}" |
| 1037 | -fcompiler-rt | 1037 | -fcompiler-rt |
| 1038 | ${ZIG_SINGLE_THREADED_ARG} | 1038 | ${ZIG_SINGLE_THREADED_ARG} |
| 1039 | -target "${ZIG_TARGET_TRIPLE}" | 1039 | -target native |
| 1040 | -mcpu "${ZIG_TARGET_MCPU}" | 1040 | -mcpu native |
| 1041 | -lc | 1041 | -lc |
| 1042 | --pkg-begin build_options "${ZIG_CONFIG_ZIG_OUT}" | 1042 | --pkg-begin build_options "${ZIG_CONFIG_ZIG_OUT}" |
| 1043 | --pkg-end | 1043 | --pkg-end |
ci/azure/macos_script deleted-106| ... | @@ -1,106 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | brew update && brew install ncurses s3cmd | ||
| 7 | |||
| 8 | ZIGDIR="$(pwd)" | ||
| 9 | ARCH="x86_64" | ||
| 10 | TARGET="$ARCH-macos-none" | ||
| 11 | MCPU="baseline" | ||
| 12 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.10.0-dev.4560+828735ac0" | ||
| 13 | PREFIX="$HOME/$CACHE_BASENAME" | ||
| 14 | JOBS="-j2" | ||
| 15 | |||
| 16 | rm -rf $PREFIX | ||
| 17 | cd $HOME | ||
| 18 | |||
| 19 | wget -nv "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz" | ||
| 20 | tar xf "$CACHE_BASENAME.tar.xz" | ||
| 21 | |||
| 22 | ZIG="$PREFIX/bin/zig" | ||
| 23 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 24 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 25 | |||
| 26 | cd $ZIGDIR | ||
| 27 | |||
| 28 | # Make the `zig version` number consistent. | ||
| 29 | # This will affect the cmake command below. | ||
| 30 | git config core.abbrev 9 | ||
| 31 | git fetch --unshallow || true | ||
| 32 | git fetch --tags | ||
| 33 | |||
| 34 | mkdir build | ||
| 35 | cd build | ||
| 36 | cmake .. \ | ||
| 37 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | ||
| 38 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | ||
| 39 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 40 | -DZIG_TARGET_TRIPLE="$TARGET" \ | ||
| 41 | -DZIG_TARGET_MCPU="$MCPU" \ | ||
| 42 | -DZIG_STATIC=ON | ||
| 43 | |||
| 44 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables | ||
| 45 | # so that installation and testing do not get affected by them. | ||
| 46 | unset CC | ||
| 47 | unset CXX | ||
| 48 | |||
| 49 | make $JOBS install | ||
| 50 | |||
| 51 | stage3-release/bin/zig build test docs \ | ||
| 52 | --zig-lib-dir "$(pwd)/../lib" \ | ||
| 53 | -Denable-macos-sdk \ | ||
| 54 | -Dstatic-llvm \ | ||
| 55 | -Dskip-non-native \ | ||
| 56 | --search-prefix "$PREFIX" | ||
| 57 | |||
| 58 | # Produce the experimental std lib documentation. | ||
| 59 | mkdir -p "stage3-release/doc/std" | ||
| 60 | stage3-release/bin/zig test "$(pwd)/../lib/std/std.zig" \ | ||
| 61 | --zig-lib-dir "$(pwd)/../lib" \ | ||
| 62 | -femit-docs="$(pwd)/stage3-release/doc/std" \ | ||
| 63 | -fno-emit-bin | ||
| 64 | |||
| 65 | if [ "${BUILD_REASON}" != "PullRequest" ]; then | ||
| 66 | # Remove the unnecessary bin dir in stage3-release/bin/zig | ||
| 67 | mv stage3-release/bin/zig stage3-release/ | ||
| 68 | rmdir stage3-release/bin | ||
| 69 | |||
| 70 | # Remove the unnecessary zig dir in stage3-release/lib/zig/std/std.zig | ||
| 71 | mv stage3-release/lib/zig stage3-release/lib2 | ||
| 72 | rmdir stage3-release/lib | ||
| 73 | mv stage3-release/lib2 stage3-release/lib | ||
| 74 | |||
| 75 | mv ../LICENSE stage3-release/ | ||
| 76 | mv ../zig-cache/langref.html stage3-release/doc | ||
| 77 | |||
| 78 | VERSION=$(stage3-release/zig version) | ||
| 79 | DIRNAME="zig-macos-$ARCH-$VERSION" | ||
| 80 | TARBALL="$DIRNAME.tar.xz" | ||
| 81 | mv stage3-release "$DIRNAME" | ||
| 82 | tar cfJ "$TARBALL" "$DIRNAME" | ||
| 83 | |||
| 84 | mv "$DOWNLOADSECUREFILE_SECUREFILEPATH" "$HOME/.s3cfg" | ||
| 85 | s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/ | ||
| 86 | |||
| 87 | SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1) | ||
| 88 | BYTESIZE=$(wc -c < $TARBALL) | ||
| 89 | |||
| 90 | JSONFILE="macos-$GITBRANCH.json" | ||
| 91 | touch $JSONFILE | ||
| 92 | echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE | ||
| 93 | echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE | ||
| 94 | echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE | ||
| 95 | |||
| 96 | s3cmd put -P --add-header="Cache-Control: max-age=0, must-revalidate" "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE" | ||
| 97 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$ARCH-macos-$VERSION.json" | ||
| 98 | |||
| 99 | # `set -x` causes these variables to be mangled. | ||
| 100 | # See https://developercommunity.visualstudio.com/content/problem/375679/pipeline-variable-incorrectly-inserts-single-quote.html | ||
| 101 | set +x | ||
| 102 | echo "##vso[task.setvariable variable=tarball;isOutput=true]$TARBALL" | ||
| 103 | echo "##vso[task.setvariable variable=shasum;isOutput=true]$SHASUM" | ||
| 104 | echo "##vso[task.setvariable variable=bytesize;isOutput=true]$BYTESIZE" | ||
| 105 | echo "##vso[task.setvariable variable=version;isOutput=true]$VERSION" | ||
| 106 | fi | ||
ci/azure/on_master_success deleted-12| ... | @@ -1,12 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # We do not set -x because this would leak the oauth access token. | ||
| 4 | set +x | ||
| 5 | |||
| 6 | set -e | ||
| 7 | |||
| 8 | sudo apt-get update -y | ||
| 9 | sudo apt-get install -y curl jq | ||
| 10 | |||
| 11 | OAUTH_TOKEN="$(cat "$DOWNLOADSECUREFILE_SECUREFILEPATH")" | ||
| 12 | ./ci/srht/on_master_success "$VERSION" "$OAUTH_TOKEN" | ||
ci/azure/pipelines.yml deleted-169| ... | @@ -1,169 +0,0 @@ | ||
| 1 | jobs: | ||
| 2 | - job: BuildMacOS | ||
| 3 | pool: | ||
| 4 | vmImage: 'macOS-11' | ||
| 5 | timeoutInMinutes: 360 | ||
| 6 | steps: | ||
| 7 | - task: DownloadSecureFile@1 | ||
| 8 | inputs: | ||
| 9 | secureFile: s3cfg | ||
| 10 | - script: ci/azure/macos_script | ||
| 11 | name: main | ||
| 12 | displayName: 'Build and test' | ||
| 13 | - job: BuildWindows | ||
| 14 | timeoutInMinutes: 360 | ||
| 15 | pool: | ||
| 16 | vmImage: 'windows-2019' | ||
| 17 | variables: | ||
| 18 | TARGET: 'x86_64-windows-gnu' | ||
| 19 | ZIG_LLVM_CLANG_LLD_NAME: 'zig+llvm+lld+clang-${{ variables.TARGET }}-0.11.0-dev.25+499dddb4c' | ||
| 20 | ZIG_LLVM_CLANG_LLD_URL: 'https://ziglang.org/deps/${{ variables.ZIG_LLVM_CLANG_LLD_NAME }}.zip' | ||
| 21 | steps: | ||
| 22 | - pwsh: | | ||
| 23 | (New-Object Net.WebClient).DownloadFile("$(ZIG_LLVM_CLANG_LLD_URL)", "${ZIG_LLVM_CLANG_LLD_NAME}.zip") | ||
| 24 | & 'C:\Program Files\7-Zip\7z.exe' x "${ZIG_LLVM_CLANG_LLD_NAME}.zip" | ||
| 25 | name: install | ||
| 26 | displayName: 'Install ZIG/LLVM/CLANG/LLD' | ||
| 27 | |||
| 28 | - pwsh: | | ||
| 29 | Set-Variable -Name ZIGLIBDIR -Value "$(Get-Location)\lib" | ||
| 30 | Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\stage3-release" | ||
| 31 | Set-Variable -Name ZIGPREFIXPATH -Value "$(Get-Location)\$(ZIG_LLVM_CLANG_LLD_NAME)" | ||
| 32 | |||
| 33 | function CheckLastExitCode { | ||
| 34 | if (!$?) { | ||
| 35 | exit 1 | ||
| 36 | } | ||
| 37 | return 0 | ||
| 38 | } | ||
| 39 | |||
| 40 | # Make the `zig version` number consistent. | ||
| 41 | # This will affect the `zig build` command below which uses `git describe`. | ||
| 42 | git config core.abbrev 9 | ||
| 43 | git fetch --tags | ||
| 44 | if ((git rev-parse --is-shallow-repository) -eq "true") { | ||
| 45 | git fetch --unshallow # `git describe` won't work on a shallow repo | ||
| 46 | } | ||
| 47 | |||
| 48 | & "$ZIGPREFIXPATH\bin\zig.exe" build ` | ||
| 49 | --prefix "$ZIGINSTALLDIR" ` | ||
| 50 | --search-prefix "$ZIGPREFIXPATH" ` | ||
| 51 | --zig-lib-dir "$ZIGLIBDIR" ` | ||
| 52 | -Denable-stage1 ` | ||
| 53 | -Dstatic-llvm ` | ||
| 54 | -Drelease ` | ||
| 55 | -Dstrip ` | ||
| 56 | -Duse-zig-libcxx ` | ||
| 57 | -Dtarget=$(TARGET) | ||
| 58 | CheckLastExitCode | ||
| 59 | name: build | ||
| 60 | displayName: 'Build' | ||
| 61 | |||
| 62 | - pwsh: | | ||
| 63 | Set-Variable -Name ZIGLIBDIR -Value "$(Get-Location)\lib" | ||
| 64 | Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\stage3-release" | ||
| 65 | Set-Variable -Name ZIGPREFIXPATH -Value "$(Get-Location)\$(ZIG_LLVM_CLANG_LLD_NAME)" | ||
| 66 | |||
| 67 | function CheckLastExitCode { | ||
| 68 | if (!$?) { | ||
| 69 | exit 1 | ||
| 70 | } | ||
| 71 | return 0 | ||
| 72 | } | ||
| 73 | |||
| 74 | & "$ZIGINSTALLDIR\bin\zig.exe" build test docs ` | ||
| 75 | --search-prefix "$ZIGPREFIXPATH" ` | ||
| 76 | -Dstatic-llvm ` | ||
| 77 | -Dskip-non-native | ||
| 78 | CheckLastExitCode | ||
| 79 | |||
| 80 | # Produce the experimental std lib documentation. | ||
| 81 | mkdir "$ZIGINSTALLDIR\doc\std" -force | ||
| 82 | & "$ZIGINSTALLDIR\bin\zig.exe" test "$ZIGLIBDIR\std\std.zig" ` | ||
| 83 | --zig-lib-dir "$ZIGLIBDIR" ` | ||
| 84 | -femit-docs="$ZIGINSTALLDIR\doc\std" ` | ||
| 85 | -fno-emit-bin | ||
| 86 | |||
| 87 | name: test | ||
| 88 | displayName: 'Test' | ||
| 89 | |||
| 90 | - task: DownloadSecureFile@1 | ||
| 91 | inputs: | ||
| 92 | name: aws_credentials | ||
| 93 | secureFile: aws_credentials | ||
| 94 | |||
| 95 | - pwsh: | | ||
| 96 | $Env:AWS_SHARED_CREDENTIALS_FILE = "$Env:DOWNLOADSECUREFILE_SECUREFILEPATH" | ||
| 97 | |||
| 98 | # Workaround Azure networking issue | ||
| 99 | # https://github.com/aws/aws-cli/issues/5749 | ||
| 100 | $Env:AWS_EC2_METADATA_DISABLED = "true" | ||
| 101 | $Env:AWS_REGION = "us-west-2" | ||
| 102 | |||
| 103 | mv LICENSE stage3-release/ | ||
| 104 | mv zig-cache/langref.html stage3-release/ | ||
| 105 | mv stage3-release/bin/zig.exe stage3-release/ | ||
| 106 | rmdir stage3-release/bin | ||
| 107 | |||
| 108 | # Remove the unnecessary zig dir in $prefix/lib/zig/std/std.zig | ||
| 109 | mv stage3-release/lib/zig stage3-release/lib2 | ||
| 110 | rmdir stage3-release/lib | ||
| 111 | mv stage3-release/lib2 stage3-release/lib | ||
| 112 | |||
| 113 | Set-Variable -Name VERSION -Value $(./stage3-release/zig.exe version) | ||
| 114 | Set-Variable -Name DIRNAME -Value "zig-windows-x86_64-$VERSION" | ||
| 115 | Set-Variable -Name TARBALL -Value "$DIRNAME.zip" | ||
| 116 | mv stage3-release "$DIRNAME" | ||
| 117 | 7z a "$TARBALL" "$DIRNAME" | ||
| 118 | |||
| 119 | aws s3 cp ` | ||
| 120 | "$TARBALL" ` | ||
| 121 | s3://ziglang.org/builds/ ` | ||
| 122 | --acl public-read ` | ||
| 123 | --cache-control 'public, max-age=31536000, immutable' | ||
| 124 | |||
| 125 | Set-Variable -Name SHASUM -Value (Get-FileHash "$TARBALL" -Algorithm SHA256 | select-object -ExpandProperty Hash).ToLower() | ||
| 126 | Set-Variable -Name BYTESIZE -Value (Get-Item "$TARBALL").length | ||
| 127 | |||
| 128 | Set-Variable -Name JSONFILE -Value "windows-${Env:BUILD_SOURCEBRANCHNAME}.json" | ||
| 129 | echo $null > $JSONFILE | ||
| 130 | echo ('{"tarball": "' + $TARBALL + '",') >> $JSONFILE | ||
| 131 | echo ('"shasum": "' + $SHASUM + '",') >> $JSONFILE | ||
| 132 | echo ('"size": ' + $BYTESIZE + '}' ) >> $JSONFILE | ||
| 133 | |||
| 134 | aws s3 cp ` | ||
| 135 | "$JSONFILE" ` | ||
| 136 | s3://ziglang.org/builds/ ` | ||
| 137 | --acl public-read ` | ||
| 138 | --cache-control 'max-age=0, must-revalidate' | ||
| 139 | |||
| 140 | aws s3 cp ` | ||
| 141 | "$JSONFILE" ` | ||
| 142 | "s3://ziglang.org/builds/x86_64-windows-${VERSION}.json" ` | ||
| 143 | --acl public-read | ||
| 144 | |||
| 145 | echo "##vso[task.setvariable variable=tarball;isOutput=true]$TARBALL" | ||
| 146 | echo "##vso[task.setvariable variable=shasum;isOutput=true]$SHASUM" | ||
| 147 | echo "##vso[task.setvariable variable=bytesize;isOutput=true]$BYTESIZE" | ||
| 148 | |||
| 149 | name: upload | ||
| 150 | condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) | ||
| 151 | displayName: 'Upload' | ||
| 152 | |||
| 153 | - job: OnMasterSuccess | ||
| 154 | dependsOn: | ||
| 155 | - BuildMacOS | ||
| 156 | - BuildWindows | ||
| 157 | condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
| 158 | strategy: | ||
| 159 | maxParallel: 1 | ||
| 160 | pool: | ||
| 161 | vmImage: 'ubuntu-20.04' | ||
| 162 | variables: | ||
| 163 | version: $[ dependencies.BuildMacOS.outputs['main.version'] ] | ||
| 164 | steps: | ||
| 165 | - task: DownloadSecureFile@1 | ||
| 166 | inputs: | ||
| 167 | secureFile: oauth_token | ||
| 168 | - script: ci/azure/on_master_success | ||
| 169 | displayName: 'master branch success hook' | ||
ci/index.json created+696| ... | @@ -0,0 +1,696 @@ | ||
| 1 | { | ||
| 2 | "master": { | ||
| 3 | "version": "{{MASTER_VERSION}}", | ||
| 4 | "date": "{{MASTER_DATE}}", | ||
| 5 | "docs": "https://ziglang.org/documentation/master/", | ||
| 6 | "stdDocs": "https://ziglang.org/documentation/master/std/", | ||
| 7 | "src": { | ||
| 8 | "tarball": "https://ziglang.org/builds/{{SRC_TARBALL}}", | ||
| 9 | "shasum": "{{SRC_SHASUM}}", | ||
| 10 | "size": "{{SRC_BYTESIZE}}" | ||
| 11 | }, | ||
| 12 | "x86_64-freebsd": { | ||
| 13 | "tarball": "https://ziglang.org/builds/{{X86_64_FREEBSD_TARBALL}}", | ||
| 14 | "shasum": "{{X86_64_FREEBSD_SHASUM}}", | ||
| 15 | "size": "{{X86_64_FREEBSD_BYTESIZE}}" | ||
| 16 | }, | ||
| 17 | "x86_64-macos": { | ||
| 18 | "tarball": "https://ziglang.org/builds/{{X86_64_MACOS_TARBALL}}", | ||
| 19 | "shasum": "{{X86_64_MACOS_SHASUM}}", | ||
| 20 | "size": "{{X86_64_MACOS_BYTESIZE}}" | ||
| 21 | }, | ||
| 22 | "aarch64-macos": { | ||
| 23 | "tarball": "https://ziglang.org/builds/{{AARCH64_MACOS_TARBALL}}", | ||
| 24 | "shasum": "{{AARCH64_MACOS_SHASUM}}", | ||
| 25 | "size": "{{AARCH64_MACOS_BYTESIZE}}" | ||
| 26 | }, | ||
| 27 | "x86_64-windows": { | ||
| 28 | "tarball": "https://ziglang.org/builds/{{X86_64_WINDOWS_TARBALL}}", | ||
| 29 | "shasum": "{{X86_64_WINDOWS_SHASUM}}", | ||
| 30 | "size": "{{X86_64_WINDOWS_BYTESIZE}}" | ||
| 31 | }, | ||
| 32 | "x86_64-linux": { | ||
| 33 | "tarball": "https://ziglang.org/builds/{{X86_64_LINUX_TARBALL}}", | ||
| 34 | "shasum": "{{X86_64_LINUX_SHASUM}}", | ||
| 35 | "size": "{{X86_64_LINUX_BYTESIZE}}" | ||
| 36 | }, | ||
| 37 | "aarch64-linux": { | ||
| 38 | "tarball": "https://ziglang.org/builds/{{AARCH64_LINUX_TARBALL}}", | ||
| 39 | "shasum": "{{AARCH64_LINUX_SHASUM}}", | ||
| 40 | "size": "{{AARCH64_LINUX_BYTESIZE}}" | ||
| 41 | } | ||
| 42 | }, | ||
| 43 | "0.10.0": { | ||
| 44 | "date": "2022-10-31", | ||
| 45 | "docs": "https://ziglang.org/documentation/0.10.0/", | ||
| 46 | "stdDocs": "https://ziglang.org/documentation/0.10.0/std/", | ||
| 47 | "notes": "https://ziglang.org/download/0.10.0/release-notes.html", | ||
| 48 | "src": { | ||
| 49 | "tarball": "https://ziglang.org/download/0.10.0/zig-0.10.0.tar.xz", | ||
| 50 | "shasum": "d8409f7aafc624770dcd050c8fa7e62578be8e6a10956bca3c86e8531c64c136", | ||
| 51 | "size": "14530912" | ||
| 52 | }, | ||
| 53 | "bootstrap": { | ||
| 54 | "tarball": "https://ziglang.org/download/0.10.0/zig-bootstrap-0.10.0.tar.xz", | ||
| 55 | "shasum": "c13dc70c4ff4c09f749adc0d473cbd3942991dd4d1bd2d860fbf257d8c1bbabf", | ||
| 56 | "size": "45625516" | ||
| 57 | }, | ||
| 58 | "x86_64-freebsd": { | ||
| 59 | "tarball": "https://ziglang.org/download/0.10.0/zig-freebsd-x86_64-0.10.0.tar.xz", | ||
| 60 | "shasum": "dd77afa2a8676afbf39f7d6068eda81b0723afd728642adaac43cb2106253d65", | ||
| 61 | "size": "44056504" | ||
| 62 | }, | ||
| 63 | "aarch64-linux": { | ||
| 64 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-aarch64-0.10.0.tar.xz", | ||
| 65 | "shasum": "09ef50c8be73380799804169197820ee78760723b0430fa823f56ed42b06ea0f", | ||
| 66 | "size": "40387688" | ||
| 67 | }, | ||
| 68 | "armv7a-linux": { | ||
| 69 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-armv7a-0.10.0.tar.xz", | ||
| 70 | "shasum": "7201b2e89cd7cc2dde95d39485fd7d5641ba67dc6a9a58c036cb4c308d2e82de", | ||
| 71 | "size": "50805936" | ||
| 72 | }, | ||
| 73 | "i386-linux": { | ||
| 74 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-i386-0.10.0.tar.xz", | ||
| 75 | "shasum": "dac8134f1328c50269f3e50b334298ec7916cb3b0ef76927703ddd1c96fd0115", | ||
| 76 | "size": "48451732" | ||
| 77 | }, | ||
| 78 | "riscv64-linux": { | ||
| 79 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-riscv64-0.10.0.tar.xz", | ||
| 80 | "shasum": "2a126f3401a7a7efc4b454f0a85c133db1af5a9dfee117f172213b7cbd47bfba", | ||
| 81 | "size": "42272968" | ||
| 82 | }, | ||
| 83 | "x86_64-linux": { | ||
| 84 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz", | ||
| 85 | "shasum": "631ec7bcb649cd6795abe40df044d2473b59b44e10be689c15632a0458ddea55", | ||
| 86 | "size": "44142400" | ||
| 87 | }, | ||
| 88 | "aarch64-macos": { | ||
| 89 | "tarball": "https://ziglang.org/download/0.10.0/zig-macos-aarch64-0.10.0.tar.xz", | ||
| 90 | "shasum": "02f7a7839b6a1e127eeae22ea72c87603fb7298c58bc35822a951479d53c7557", | ||
| 91 | "size": "40602664" | ||
| 92 | }, | ||
| 93 | "x86_64-macos": { | ||
| 94 | "tarball": "https://ziglang.org/download/0.10.0/zig-macos-x86_64-0.10.0.tar.xz", | ||
| 95 | "shasum": "3a22cb6c4749884156a94ea9b60f3a28cf4e098a69f08c18fbca81c733ebfeda", | ||
| 96 | "size": "45175104" | ||
| 97 | }, | ||
| 98 | "x86_64-windows": { | ||
| 99 | "tarball": "https://ziglang.org/download/0.10.0/zig-windows-x86_64-0.10.0.zip", | ||
| 100 | "shasum": "a66e2ff555c6e48781de1bcb0662ef28ee4b88af3af2a577f7b1950e430897ee", | ||
| 101 | "size": "73181558" | ||
| 102 | }, | ||
| 103 | "aarch64-windows": { | ||
| 104 | "tarball": "https://ziglang.org/download/0.10.0/zig-windows-aarch64-0.10.0.zip", | ||
| 105 | "shasum": "1bbda8d123d44f3ae4fa90d0da04b1e9093c3f9ddae3429a4abece1e1c0bf19a", | ||
| 106 | "size": "69332389" | ||
| 107 | } | ||
| 108 | }, | ||
| 109 | "0.9.1": { | ||
| 110 | "date": "2022-02-14", | ||
| 111 | "docs": "https://ziglang.org/documentation/0.9.1/", | ||
| 112 | "stdDocs": "https://ziglang.org/documentation/0.9.1/std/", | ||
| 113 | "notes": "https://ziglang.org/download/0.9.1/release-notes.html", | ||
| 114 | "src": { | ||
| 115 | "tarball": "https://ziglang.org/download/0.9.1/zig-0.9.1.tar.xz", | ||
| 116 | "shasum": "38cf4e84481f5facc766ba72783e7462e08d6d29a5d47e3b75c8ee3142485210", | ||
| 117 | "size": "13940828" | ||
| 118 | }, | ||
| 119 | "bootstrap": { | ||
| 120 | "tarball": "https://ziglang.org/download/0.9.1/zig-bootstrap-0.9.1.tar.xz", | ||
| 121 | "shasum": "0a8e221c71860d8975c15662b3ed3bd863e81c4fe383455a596e5e0e490d6109", | ||
| 122 | "size": "42488812" | ||
| 123 | }, | ||
| 124 | "x86_64-freebsd": { | ||
| 125 | "tarball": "https://ziglang.org/download/0.9.1/zig-freebsd-x86_64-0.9.1.tar.xz", | ||
| 126 | "shasum": "4e06009bd3ede34b72757eec1b5b291b30aa0d5046dadd16ecb6b34a02411254", | ||
| 127 | "size": "39028848" | ||
| 128 | }, | ||
| 129 | "aarch64-linux": { | ||
| 130 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-aarch64-0.9.1.tar.xz", | ||
| 131 | "shasum": "5d99a39cded1870a3fa95d4de4ce68ac2610cca440336cfd252ffdddc2b90e66", | ||
| 132 | "size": "37034860" | ||
| 133 | }, | ||
| 134 | "armv7a-linux": { | ||
| 135 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-armv7a-0.9.1.tar.xz", | ||
| 136 | "shasum": "6de64456cb4757a555816611ea697f86fba7681d8da3e1863fa726a417de49be", | ||
| 137 | "size": "37974652" | ||
| 138 | }, | ||
| 139 | "i386-linux": { | ||
| 140 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-i386-0.9.1.tar.xz", | ||
| 141 | "shasum": "e776844fecd2e62fc40d94718891057a1dbca1816ff6013369e9a38c874374ca", | ||
| 142 | "size": "44969172" | ||
| 143 | }, | ||
| 144 | "riscv64-linux": { | ||
| 145 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-riscv64-0.9.1.tar.xz", | ||
| 146 | "shasum": "208dea53662c2c52777bd9e3076115d2126a4f71aed7f2ff3b8fe224dc3881aa", | ||
| 147 | "size": "39390868" | ||
| 148 | }, | ||
| 149 | "x86_64-linux": { | ||
| 150 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz", | ||
| 151 | "shasum": "be8da632c1d3273f766b69244d80669fe4f5e27798654681d77c992f17c237d7", | ||
| 152 | "size": "41011464" | ||
| 153 | }, | ||
| 154 | "aarch64-macos": { | ||
| 155 | "tarball": "https://ziglang.org/download/0.9.1/zig-macos-aarch64-0.9.1.tar.xz", | ||
| 156 | "shasum": "8c473082b4f0f819f1da05de2dbd0c1e891dff7d85d2c12b6ee876887d438287", | ||
| 157 | "size": "38995640" | ||
| 158 | }, | ||
| 159 | "x86_64-macos": { | ||
| 160 | "tarball": "https://ziglang.org/download/0.9.1/zig-macos-x86_64-0.9.1.tar.xz", | ||
| 161 | "shasum": "2d94984972d67292b55c1eb1c00de46580e9916575d083003546e9a01166754c", | ||
| 162 | "size": "43713044" | ||
| 163 | }, | ||
| 164 | "i386-windows": { | ||
| 165 | "tarball": "https://ziglang.org/download/0.9.1/zig-windows-i386-0.9.1.zip", | ||
| 166 | "shasum": "74a640ed459914b96bcc572183a8db687bed0af08c30d2ea2f8eba03ae930f69", | ||
| 167 | "size": "67929868" | ||
| 168 | }, | ||
| 169 | "x86_64-windows": { | ||
| 170 | "tarball": "https://ziglang.org/download/0.9.1/zig-windows-x86_64-0.9.1.zip", | ||
| 171 | "shasum": "443da53387d6ae8ba6bac4b3b90e9fef4ecbe545e1c5fa3a89485c36f5c0e3a2", | ||
| 172 | "size": "65047697" | ||
| 173 | }, | ||
| 174 | "aarch64-windows": { | ||
| 175 | "tarball": "https://ziglang.org/download/0.9.1/zig-windows-aarch64-0.9.1.zip", | ||
| 176 | "shasum": "621bf95f54dc3ff71466c5faae67479419951d7489e40e87fd26d195825fb842", | ||
| 177 | "size": "61478151" | ||
| 178 | } | ||
| 179 | }, | ||
| 180 | "0.9.0": { | ||
| 181 | "date": "2021-12-20", | ||
| 182 | "docs": "https://ziglang.org/documentation/0.9.0/", | ||
| 183 | "stdDocs": "https://ziglang.org/documentation/0.9.0/std/", | ||
| 184 | "notes": "https://ziglang.org/download/0.9.0/release-notes.html", | ||
| 185 | "src": { | ||
| 186 | "tarball": "https://ziglang.org/download/0.9.0/zig-0.9.0.tar.xz", | ||
| 187 | "shasum": "cd1be83b12f8269cc5965e59877b49fdd8fa638efb6995ac61eb4cea36a2e381", | ||
| 188 | "size": "13928772" | ||
| 189 | }, | ||
| 190 | "bootstrap": { | ||
| 191 | "tarball": "https://ziglang.org/download/0.9.0/zig-bootstrap-0.9.0.tar.xz", | ||
| 192 | "shasum": "16b0bdf0bc0a5ed1e0950e08481413d806192e06443a512347526647b2baeabc", | ||
| 193 | "size": "42557736" | ||
| 194 | }, | ||
| 195 | "x86_64-freebsd": { | ||
| 196 | "tarball": "https://ziglang.org/download/0.9.0/zig-freebsd-x86_64-0.9.0.tar.xz", | ||
| 197 | "shasum": "c95afe679b7cc4110dc2ecd3606c83a699718b7a958d6627f74c20886333e194", | ||
| 198 | "size": "41293236" | ||
| 199 | }, | ||
| 200 | "aarch64-linux": { | ||
| 201 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-aarch64-0.9.0.tar.xz", | ||
| 202 | "shasum": "1524fedfdbade2dbc9bae1ed98ad38fa7f2114c9a3e94da0d652573c75efbc5a", | ||
| 203 | "size": "40008396" | ||
| 204 | }, | ||
| 205 | "armv7a-linux": { | ||
| 206 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-armv7a-0.9.0.tar.xz", | ||
| 207 | "shasum": "50225dee6e6448a63ee96383a34d9fe3bba34ae8da1a0c8619bde2cdfc1df87d", | ||
| 208 | "size": "41196876" | ||
| 209 | }, | ||
| 210 | "i386-linux": { | ||
| 211 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-i386-0.9.0.tar.xz", | ||
| 212 | "shasum": "b0dcf688349268c883292acdd55eaa3c13d73b9146e4b990fad95b84a2ac528b", | ||
| 213 | "size": "47408656" | ||
| 214 | }, | ||
| 215 | "riscv64-linux": { | ||
| 216 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-riscv64-0.9.0.tar.xz", | ||
| 217 | "shasum": "85466de07504767ed37f59782672ad41bbdf43d6480fafd07f45543278b07620", | ||
| 218 | "size": "44171420" | ||
| 219 | }, | ||
| 220 | "x86_64-linux": { | ||
| 221 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-x86_64-0.9.0.tar.xz", | ||
| 222 | "shasum": "5c55344a877d557fb1b28939785474eb7f4f2f327aab55293998f501f7869fa6", | ||
| 223 | "size": "43420796" | ||
| 224 | }, | ||
| 225 | "aarch64-macos": { | ||
| 226 | "tarball": "https://ziglang.org/download/0.9.0/zig-macos-aarch64-0.9.0.tar.xz", | ||
| 227 | "shasum": "3991c70594d61d09fb4b316157a7c1d87b1d4ec159e7a5ecd11169ff74cad832", | ||
| 228 | "size": "39013392" | ||
| 229 | }, | ||
| 230 | "x86_64-macos": { | ||
| 231 | "tarball": "https://ziglang.org/download/0.9.0/zig-macos-x86_64-0.9.0.tar.xz", | ||
| 232 | "shasum": "c5280eeec4d6e5ea5ce5b448dc9a7c4bdd85ecfed4c1b96aa0835e48b36eccf0", | ||
| 233 | "size": "43764596" | ||
| 234 | }, | ||
| 235 | "i386-windows": { | ||
| 236 | "tarball": "https://ziglang.org/download/0.9.0/zig-windows-i386-0.9.0.zip", | ||
| 237 | "shasum": "bb839434afc75092015cf4c33319d31463c18512bc01dd719aedf5dcbc368466", | ||
| 238 | "size": "67946715" | ||
| 239 | }, | ||
| 240 | "x86_64-windows": { | ||
| 241 | "tarball": "https://ziglang.org/download/0.9.0/zig-windows-x86_64-0.9.0.zip", | ||
| 242 | "shasum": "084ea2646850aaf068234b0f1a92b914ed629be47075e835f8a67d55c21d880e", | ||
| 243 | "size": "65045849" | ||
| 244 | }, | ||
| 245 | "aarch64-windows": { | ||
| 246 | "tarball": "https://ziglang.org/download/0.9.0/zig-windows-aarch64-0.9.0.zip", | ||
| 247 | "shasum": "f9018725e3fb2e8992b17c67034726971156eb190685018a9ac8c3a9f7a22340", | ||
| 248 | "size": "61461921" | ||
| 249 | } | ||
| 250 | }, | ||
| 251 | "0.8.1": { | ||
| 252 | "date": "2021-09-06", | ||
| 253 | "docs": "https://ziglang.org/documentation/0.8.1/", | ||
| 254 | "stdDocs": "https://ziglang.org/documentation/0.8.1/std/", | ||
| 255 | "notes": "https://ziglang.org/download/0.8.1/release-notes.html", | ||
| 256 | "src": { | ||
| 257 | "tarball": "https://ziglang.org/download/0.8.1/zig-0.8.1.tar.xz", | ||
| 258 | "shasum": "8c428e14a0a89cb7a15a6768424a37442292858cdb695e2eb503fa3c7bf47f1a", | ||
| 259 | "size": "12650228" | ||
| 260 | }, | ||
| 261 | "bootstrap": { | ||
| 262 | "tarball": "https://ziglang.org/download/0.8.1/zig-bootstrap-0.8.1.tar.xz", | ||
| 263 | "shasum": "fa1239247f830ecd51c42537043f5220e4d1dfefdc54356fa419616a0efb3902", | ||
| 264 | "size": "43613464" | ||
| 265 | }, | ||
| 266 | "x86_64-freebsd": { | ||
| 267 | "tarball": "https://ziglang.org/download/0.8.1/zig-freebsd-x86_64-0.8.1.tar.xz", | ||
| 268 | "shasum": "fc4f6478bcf3a9fce1b8ef677a91694f476dd35be6d6c9c4f44a8b76eedbe176", | ||
| 269 | "size": "39150924" | ||
| 270 | }, | ||
| 271 | "aarch64-linux": { | ||
| 272 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-aarch64-0.8.1.tar.xz", | ||
| 273 | "shasum": "2166dc9f2d8df387e8b4122883bb979d739281e1ff3f3d5483fec3a23b957510", | ||
| 274 | "size": "37605932" | ||
| 275 | }, | ||
| 276 | "armv7a-linux": { | ||
| 277 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-armv7a-0.8.1.tar.xz", | ||
| 278 | "shasum": "5ba58141805e2519f38cf8e715933cbf059f4f3dade92c71838cce341045de05", | ||
| 279 | "size": "39185876" | ||
| 280 | }, | ||
| 281 | "i386-linux": { | ||
| 282 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-i386-0.8.1.tar.xz", | ||
| 283 | "shasum": "2f3e84f30492b5f1c5f97cecc0166f07a8a8d50c5f85dbb3a6ef2a4ee6f915e6", | ||
| 284 | "size": "44782932" | ||
| 285 | }, | ||
| 286 | "riscv64-linux": { | ||
| 287 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-riscv64-0.8.1.tar.xz", | ||
| 288 | "shasum": "4adfaf147b025917c03367462fe5018aaa9edbc6439ef9cd0da2b074ae960554", | ||
| 289 | "size": "41234480" | ||
| 290 | }, | ||
| 291 | "x86_64-linux": { | ||
| 292 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-x86_64-0.8.1.tar.xz", | ||
| 293 | "shasum": "6c032fc61b5d77a3f3cf781730fa549f8f059ffdb3b3f6ad1c2994d2b2d87983", | ||
| 294 | "size": "41250060" | ||
| 295 | }, | ||
| 296 | "aarch64-macos": { | ||
| 297 | "tarball": "https://ziglang.org/download/0.8.1/zig-macos-aarch64-0.8.1.tar.xz", | ||
| 298 | "shasum": "5351297e3b8408213514b29c0a938002c5cf9f97eee28c2f32920e1227fd8423", | ||
| 299 | "size": "35340712" | ||
| 300 | }, | ||
| 301 | "x86_64-macos": { | ||
| 302 | "tarball": "https://ziglang.org/download/0.8.1/zig-macos-x86_64-0.8.1.tar.xz", | ||
| 303 | "shasum": "16b0e1defe4c1807f2e128f72863124bffdd906cefb21043c34b673bf85cd57f", | ||
| 304 | "size": "39946200" | ||
| 305 | }, | ||
| 306 | "i386-windows": { | ||
| 307 | "tarball": "https://ziglang.org/download/0.8.1/zig-windows-i386-0.8.1.zip", | ||
| 308 | "shasum": "099605051eb0452a947c8eab8fbbc7e43833c8376d267e94e41131c289a1c535", | ||
| 309 | "size": "64152358" | ||
| 310 | }, | ||
| 311 | "x86_64-windows": { | ||
| 312 | "tarball": "https://ziglang.org/download/0.8.1/zig-windows-x86_64-0.8.1.zip", | ||
| 313 | "shasum": "43573db14cd238f7111d6bdf37492d363f11ecd1eba802567a172f277d003926", | ||
| 314 | "size": "61897838" | ||
| 315 | } | ||
| 316 | }, | ||
| 317 | "0.8.0": { | ||
| 318 | "date": "2021-06-04", | ||
| 319 | "docs": "https://ziglang.org/documentation/0.8.0/", | ||
| 320 | "stdDocs": "https://ziglang.org/documentation/0.8.0/std/", | ||
| 321 | "notes": "https://ziglang.org/download/0.8.0/release-notes.html", | ||
| 322 | "src": { | ||
| 323 | "tarball": "https://ziglang.org/download/0.8.0/zig-0.8.0.tar.xz", | ||
| 324 | "shasum": "03a828d00c06b2e3bb8b7ff706997fd76bf32503b08d759756155b6e8c981e77", | ||
| 325 | "size": "12614896" | ||
| 326 | }, | ||
| 327 | "bootstrap": { | ||
| 328 | "tarball": "https://ziglang.org/download/0.8.0/zig-bootstrap-0.8.0.tar.xz", | ||
| 329 | "shasum": "10600bc9c01f92e343f40d6ecc0ad05d67d27c3e382bce75524c0639cd8ca178", | ||
| 330 | "size": "43574248" | ||
| 331 | }, | ||
| 332 | "x86_64-freebsd": { | ||
| 333 | "tarball": "https://ziglang.org/download/0.8.0/zig-freebsd-x86_64-0.8.0.tar.xz", | ||
| 334 | "shasum": "0d3ccc436c8c0f50fd55462f72f8492d98723c7218ffc2a8a1831967d81b4bdc", | ||
| 335 | "size": "39125332" | ||
| 336 | }, | ||
| 337 | "aarch64-linux": { | ||
| 338 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-aarch64-0.8.0.tar.xz", | ||
| 339 | "shasum": "ee204ca2c2037952cf3f8b10c609373a08a291efa4af7b3c73be0f2b27720470", | ||
| 340 | "size": "37575428" | ||
| 341 | }, | ||
| 342 | "armv7a-linux": { | ||
| 343 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-armv7a-0.8.0.tar.xz", | ||
| 344 | "shasum": "d00b8bd97b79f45d6f5da956983bafeaa082e6c2ae8c6e1c6d4faa22fa29b320", | ||
| 345 | "size": "38884212" | ||
| 346 | }, | ||
| 347 | "i386-linux": { | ||
| 348 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-i386-0.8.0.tar.xz", | ||
| 349 | "shasum": "96e43ee6ed81c3c63401f456bd1c58ee6d42373a43cb324f5cf4974ca0998865", | ||
| 350 | "size": "42136032" | ||
| 351 | }, | ||
| 352 | "riscv64-linux": { | ||
| 353 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-riscv64-0.8.0.tar.xz", | ||
| 354 | "shasum": "75997527a78cdab64c40c43d9df39c01c4cdb557bb3992a869838371a204cfea", | ||
| 355 | "size": "40016268" | ||
| 356 | }, | ||
| 357 | "x86_64-linux": { | ||
| 358 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-x86_64-0.8.0.tar.xz", | ||
| 359 | "shasum": "502625d3da3ae595c5f44a809a87714320b7a40e6dff4a895b5fa7df3391d01e", | ||
| 360 | "size": "41211184" | ||
| 361 | }, | ||
| 362 | "aarch64-macos": { | ||
| 363 | "tarball": "https://ziglang.org/download/0.8.0/zig-macos-aarch64-0.8.0.tar.xz", | ||
| 364 | "shasum": "b32d13f66d0e1ff740b3326d66a469ee6baddbd7211fa111c066d3bd57683111", | ||
| 365 | "size": "35292180" | ||
| 366 | }, | ||
| 367 | "x86_64-macos": { | ||
| 368 | "tarball": "https://ziglang.org/download/0.8.0/zig-macos-x86_64-0.8.0.tar.xz", | ||
| 369 | "shasum": "279f9360b5cb23103f0395dc4d3d0d30626e699b1b4be55e98fd985b62bc6fbe", | ||
| 370 | "size": "39969312" | ||
| 371 | }, | ||
| 372 | "i386-windows": { | ||
| 373 | "tarball": "https://ziglang.org/download/0.8.0/zig-windows-i386-0.8.0.zip", | ||
| 374 | "shasum": "b6ec9aa6cd6f3872fcb30d43ff411802d82008a0c4142ee49e208a09b2c1c5fe", | ||
| 375 | "size": "61507213" | ||
| 376 | }, | ||
| 377 | "x86_64-windows": { | ||
| 378 | "tarball": "https://ziglang.org/download/0.8.0/zig-windows-x86_64-0.8.0.zip", | ||
| 379 | "shasum": "8580fbbf3afb72e9b495c7f8aeac752a03475ae0bbcf5d787f3775c7e1f4f807", | ||
| 380 | "size": "61766193" | ||
| 381 | } | ||
| 382 | }, | ||
| 383 | "0.7.1": { | ||
| 384 | "date": "2020-12-13", | ||
| 385 | "docs": "https://ziglang.org/documentation/0.7.1/", | ||
| 386 | "stdDocs": "https://ziglang.org/documentation/0.7.1/std/", | ||
| 387 | "notes": "https://ziglang.org/download/0.7.1/release-notes.html", | ||
| 388 | "src": { | ||
| 389 | "tarball": "https://ziglang.org/download/0.7.1/zig-0.7.1.tar.xz", | ||
| 390 | "shasum": "2db3b944ab368d955b48743d9f7c963b8f96de1a441ba5a35e197237cc6dae44", | ||
| 391 | "size": "10711824" | ||
| 392 | }, | ||
| 393 | "bootstrap": { | ||
| 394 | "tarball": "https://ziglang.org/download/0.7.1/zig-bootstrap-0.7.1.tar.xz", | ||
| 395 | "shasum": "040f27c1fae4b0cac0a2782aecdb691f6a2f8e89db6a6ed35024c31c304fd9b2", | ||
| 396 | "size": "40232612" | ||
| 397 | }, | ||
| 398 | "x86_64-freebsd": { | ||
| 399 | "tarball": "https://ziglang.org/download/0.7.1/zig-freebsd-x86_64-0.7.1.tar.xz", | ||
| 400 | "shasum": "e73c1dca35791a3183fdd5ecde0443ebbe180942efceafe651886034fb8def09", | ||
| 401 | "size": "39066808" | ||
| 402 | }, | ||
| 403 | "aarch64-linux": { | ||
| 404 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-aarch64-0.7.1.tar.xz", | ||
| 405 | "shasum": "48ec90eba407e4587ddef7eecef25fec7e13587eb98e3b83c5f2f5fff2a5cbe7", | ||
| 406 | "size": "33780552" | ||
| 407 | }, | ||
| 408 | "armv7a-linux": { | ||
| 409 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-armv7a-0.7.1.tar.xz", | ||
| 410 | "shasum": "5a0662e07b4c4968665e1f97558f8591f6facec45d2e0ff5715e661743107ceb", | ||
| 411 | "size": "35813504" | ||
| 412 | }, | ||
| 413 | "i386-linux": { | ||
| 414 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-i386-0.7.1.tar.xz", | ||
| 415 | "shasum": "4882e052e5f83690bd0334bb4fc1702b5403cb3a3d2aa63fd7d6043d8afecba3", | ||
| 416 | "size": "39230912" | ||
| 417 | }, | ||
| 418 | "riscv64-linux": { | ||
| 419 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-riscv64-0.7.1.tar.xz", | ||
| 420 | "shasum": "187294bfd35983348c3fe042901b42e67e7e36ab7f77a5f969d21c0051f4d21f", | ||
| 421 | "size": "37454812" | ||
| 422 | }, | ||
| 423 | "x86_64-linux": { | ||
| 424 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-x86_64-0.7.1.tar.xz", | ||
| 425 | "shasum": "18c7b9b200600f8bcde1cd8d7f1f578cbc3676241ce36d771937ce19a8159b8d", | ||
| 426 | "size": "37848176" | ||
| 427 | }, | ||
| 428 | "x86_64-macos": { | ||
| 429 | "tarball": "https://ziglang.org/download/0.7.1/zig-macos-x86_64-0.7.1.tar.xz", | ||
| 430 | "shasum": "845cb17562978af0cf67e3993f4e33330525eaf01ead9386df9105111e3bc519", | ||
| 431 | "size": "36211076" | ||
| 432 | }, | ||
| 433 | "i386-windows": { | ||
| 434 | "tarball": "https://ziglang.org/download/0.7.1/zig-windows-i386-0.7.1.zip", | ||
| 435 | "shasum": "a1b9a7421e13153e07fd2e2c93ff29aad64d83105b8fcdafa633dbe689caf1c0", | ||
| 436 | "size": "54374983" | ||
| 437 | }, | ||
| 438 | "x86_64-windows": { | ||
| 439 | "tarball": "https://ziglang.org/download/0.7.1/zig-windows-x86_64-0.7.1.zip", | ||
| 440 | "shasum": "4818a8a65b4672bc52c0ae7f14d014e0eb8caf10f12c0745176820384cea296a", | ||
| 441 | "size": "54909997" | ||
| 442 | } | ||
| 443 | }, | ||
| 444 | "0.7.0": { | ||
| 445 | "date": "2020-11-08", | ||
| 446 | "docs": "https://ziglang.org/documentation/0.7.0/", | ||
| 447 | "stdDocs": "https://ziglang.org/documentation/0.7.0/std/", | ||
| 448 | "notes": "https://ziglang.org/download/0.7.0/release-notes.html", | ||
| 449 | "src": { | ||
| 450 | "tarball": "https://ziglang.org/download/0.7.0/zig-0.7.0.tar.xz", | ||
| 451 | "shasum": "0efd2cf6c3b05723db80e9cf193bc55150bba84ca41f855a90f53fc756445f83", | ||
| 452 | "size": "10683920" | ||
| 453 | }, | ||
| 454 | "bootstrap": { | ||
| 455 | "tarball": "https://ziglang.org/download/0.7.0/zig-bootstrap-0.7.0.tar.xz", | ||
| 456 | "shasum": "f073beaf5c53c8c57c0d374cbfcb332ef92ad703173edba0d9e0f2ed28401b72", | ||
| 457 | "size": "40200436" | ||
| 458 | }, | ||
| 459 | "x86_64-freebsd": { | ||
| 460 | "tarball": "https://ziglang.org/download/0.7.0/zig-freebsd-x86_64-0.7.0.tar.xz", | ||
| 461 | "shasum": "a0c926272ee4ae720034b4a6a1dc98399d76156dd84182554740f0ca8a41fc99", | ||
| 462 | "size": "34798992" | ||
| 463 | }, | ||
| 464 | "aarch64-linux": { | ||
| 465 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-aarch64-0.7.0.tar.xz", | ||
| 466 | "shasum": "f89933bac87d44be82325754ff88423020c81c7032a6fc41cfeb81e982eeab9b", | ||
| 467 | "size": "33096140" | ||
| 468 | }, | ||
| 469 | "armv7a-linux": { | ||
| 470 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-armv7a-0.7.0.tar.xz", | ||
| 471 | "shasum": "011c267e25a96ee160505a560c441daa045359a9d50e13ab1bada9d75c95db2d", | ||
| 472 | "size": "35157584" | ||
| 473 | }, | ||
| 474 | "i386-linux": { | ||
| 475 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-i386-0.7.0.tar.xz", | ||
| 476 | "shasum": "4bb2072cd363bcb1cbeb4872ff5cbc1f683b02d0cc1f90c46e3ea7422ce53222", | ||
| 477 | "size": "38530596" | ||
| 478 | }, | ||
| 479 | "riscv64-linux": { | ||
| 480 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-riscv64-0.7.0.tar.xz", | ||
| 481 | "shasum": "40dff81faa6f232ac40abbf88b9371f3cc932b6e09c423b94387c9ea580cb7be", | ||
| 482 | "size": "36759992" | ||
| 483 | }, | ||
| 484 | "x86_64-linux": { | ||
| 485 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-x86_64-0.7.0.tar.xz", | ||
| 486 | "shasum": "e619b1c6094c095b932767f527aee2507f847ea981513ff8a08aab0fd730e0ac", | ||
| 487 | "size": "37154432" | ||
| 488 | }, | ||
| 489 | "aarch64-macos": { | ||
| 490 | "tarball": "https://ziglang.org/download/0.7.0/zig-macos-aarch64-0.7.0.tar.xz", | ||
| 491 | "shasum": "338238035734db74ea4f30e500a4893bf741d38305c10952d5e39fa05bdb057d", | ||
| 492 | "size": "33739424" | ||
| 493 | }, | ||
| 494 | "x86_64-macos": { | ||
| 495 | "tarball": "https://ziglang.org/download/0.7.0/zig-macos-x86_64-0.7.0.tar.xz", | ||
| 496 | "shasum": "94063f9a311cbbf7a2e0a12295e09437182cf950f18cb0eb30ea9893f3677f24", | ||
| 497 | "size": "35258328" | ||
| 498 | }, | ||
| 499 | "i386-windows": { | ||
| 500 | "tarball": "https://ziglang.org/download/0.7.0/zig-windows-i386-0.7.0.zip", | ||
| 501 | "shasum": "b1e520aacbfbd645ff3521b3eb4d44166d9a0288b8725e4b001f8b50a425eb2e", | ||
| 502 | "size": "53390517" | ||
| 503 | }, | ||
| 504 | "x86_64-windows": { | ||
| 505 | "tarball": "https://ziglang.org/download/0.7.0/zig-windows-x86_64-0.7.0.zip", | ||
| 506 | "shasum": "965f56c0a36f9cda2125e3a348bc654f7f155e2804c3667d231775ec228f8553", | ||
| 507 | "size": "53943784" | ||
| 508 | } | ||
| 509 | }, | ||
| 510 | "0.6.0": { | ||
| 511 | "date": "2020-04-13", | ||
| 512 | "docs": "https://ziglang.org/documentation/0.6.0/", | ||
| 513 | "stdDocs": "https://ziglang.org/documentation/0.6.0/std/", | ||
| 514 | "notes": "https://ziglang.org/download/0.6.0/release-notes.html", | ||
| 515 | "src": { | ||
| 516 | "tarball": "https://ziglang.org/download/0.6.0/zig-0.6.0.tar.xz", | ||
| 517 | "shasum": "5d167dc19354282dd35dd17b38e99e1763713b9be8a4ba9e9e69284e059e7204", | ||
| 518 | "size": "10349552" | ||
| 519 | }, | ||
| 520 | "bootstrap": { | ||
| 521 | "tarball": "https://ziglang.org/download/0.6.0/zig-bootstrap-0.6.0.tar.xz", | ||
| 522 | "shasum": "5e0e4dc878b3dd0c1852a442b174f0732e8c07869a8fcd226b71a93b89b381ab", | ||
| 523 | "size": "38469948" | ||
| 524 | }, | ||
| 525 | "x86_64-freebsd": { | ||
| 526 | "tarball": "https://ziglang.org/download/0.6.0/zig-freebsd-x86_64-0.6.0.tar.xz", | ||
| 527 | "shasum": "190ff79c1eb56805a315d7c7a51082e32f62926250c0702b36760c225e1634a3", | ||
| 528 | "size": "36974604" | ||
| 529 | }, | ||
| 530 | "aarch64-linux": { | ||
| 531 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-aarch64-0.6.0.tar.xz", | ||
| 532 | "shasum": "e7520efd42cfa02be48c2e430d08fe1f3cbb999d21d9f0d3ffd0febb976b2f41", | ||
| 533 | "size": "37090044" | ||
| 534 | }, | ||
| 535 | "armv6kz-linux": { | ||
| 536 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv6kz-0.6.0.tar.xz", | ||
| 537 | "shasum": "36b6493b3fed43eb1f0000e765798ad31a6bb7d7fd3f553ac1c3761dbc919b82", | ||
| 538 | "size": "39133452" | ||
| 539 | }, | ||
| 540 | "armv7a-linux": { | ||
| 541 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv7a-0.6.0.tar.xz", | ||
| 542 | "shasum": "946969abe357def95ca9cbbfcebfcf2d90cf967bcd3f48ee87662e32d91d8f35", | ||
| 543 | "size": "39143748" | ||
| 544 | }, | ||
| 545 | "i386-linux": { | ||
| 546 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-i386-0.6.0.tar.xz", | ||
| 547 | "shasum": "a97a2f9ae21575743cdd763c1917d49400d83fc562ef64582b18bade43eb24ce", | ||
| 548 | "size": "44877640" | ||
| 549 | }, | ||
| 550 | "riscv64-linux": { | ||
| 551 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-riscv64-0.6.0.tar.xz", | ||
| 552 | "shasum": "68ddee43f7503c8ae5f26a921f3602c34719a02ed2241f528c0b8b888cc14b38", | ||
| 553 | "size": "41993144" | ||
| 554 | }, | ||
| 555 | "x86_64-linux": { | ||
| 556 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-x86_64-0.6.0.tar.xz", | ||
| 557 | "shasum": "08fd3c757963630645441c2772362e9c2294020c44f14fce1b89f45de0dc1253", | ||
| 558 | "size": "44766320" | ||
| 559 | }, | ||
| 560 | "x86_64-macos": { | ||
| 561 | "tarball": "https://ziglang.org/download/0.6.0/zig-macos-x86_64-0.6.0.tar.xz", | ||
| 562 | "shasum": "17270360e87ddc49f737e760047b2fac49f1570a824a306119b1194ac4093895", | ||
| 563 | "size": "42573184" | ||
| 564 | }, | ||
| 565 | "i386-windows": { | ||
| 566 | "tarball": "https://ziglang.org/download/0.6.0/zig-windows-i386-0.6.0.zip", | ||
| 567 | "shasum": "3b0a02618743e92175990dc6d1a787bb95ff62c4cda016f1c14c7786f575f8ca", | ||
| 568 | "size": "60446431" | ||
| 569 | }, | ||
| 570 | "x86_64-windows": { | ||
| 571 | "tarball": "https://ziglang.org/download/0.6.0/zig-windows-x86_64-0.6.0.zip", | ||
| 572 | "shasum": "c3b897832523e1026e10b2d8d55d7f895185c0a27a63681f3a23219c3f1c38f4", | ||
| 573 | "size": "49065511" | ||
| 574 | } | ||
| 575 | }, | ||
| 576 | "0.5.0": { | ||
| 577 | "date": "2019-09-30", | ||
| 578 | "docs": "https://ziglang.org/documentation/0.5.0/", | ||
| 579 | "notes": "https://ziglang.org/download/0.5.0/release-notes.html", | ||
| 580 | "src": { | ||
| 581 | "tarball": "https://ziglang.org/download/0.5.0/zig-0.5.0.tar.xz", | ||
| 582 | "shasum": "55ae16960f152bcb9cf98b4f8570902d0e559a141abf927f0d3555b7cc838a31", | ||
| 583 | "size": "10956132" | ||
| 584 | }, | ||
| 585 | "x86_64-freebsd": { | ||
| 586 | "tarball": "https://ziglang.org/download/0.5.0/zig-freebsd-x86_64-0.5.0.tar.xz", | ||
| 587 | "shasum": "9e1f4d36c3d584c0aa01f20eb4cd0a0eef3eee5af23e483b8414de55feab6ab6", | ||
| 588 | "size": "33650744" | ||
| 589 | }, | ||
| 590 | "x86_64-macos": { | ||
| 591 | "tarball": "https://ziglang.org/download/0.5.0/zig-macos-x86_64-0.5.0.tar.xz", | ||
| 592 | "shasum": "28702cc05745c7c0bd450487d5f4091bf0a1ad279b35eb9a640ce3e3a15b300d", | ||
| 593 | "size": "37898664" | ||
| 594 | }, | ||
| 595 | "x86_64-windows": { | ||
| 596 | "tarball": "https://ziglang.org/download/0.5.0/zig-windows-x86_64-0.5.0.zip", | ||
| 597 | "shasum": "58141323db8d84a5af62746be5f9140bc161ee760ef33dc91a887bf9ac021976", | ||
| 598 | "size": "44871804" | ||
| 599 | }, | ||
| 600 | "x86_64-linux": { | ||
| 601 | "tarball": "https://ziglang.org/download/0.5.0/zig-linux-x86_64-0.5.0.tar.xz", | ||
| 602 | "shasum": "43e8f8a8b8556edd373ddf9c1ef3ca6cf852d4d09fe07d5736d12fefedd2b4f7", | ||
| 603 | "size": "40895068" | ||
| 604 | } | ||
| 605 | }, | ||
| 606 | "0.4.0": { | ||
| 607 | "date": "2019-04-08", | ||
| 608 | "docs": "https://ziglang.org/documentation/0.4.0/", | ||
| 609 | "notes": "https://ziglang.org/download/0.4.0/release-notes.html", | ||
| 610 | "src": { | ||
| 611 | "tarball": "https://ziglang.org/download/0.4.0/zig-0.4.0.tar.xz", | ||
| 612 | "shasum": "fec1f3f6b359a3d942e0a7f9157b3b30cde83927627a0e1ea95c54de3c526cfc", | ||
| 613 | "size": "5348776" | ||
| 614 | }, | ||
| 615 | "x86_64-freebsd": { | ||
| 616 | "tarball": "https://ziglang.org/download/0.4.0/zig-freebsd-x86_64-0.4.0.tar.xz", | ||
| 617 | "shasum": "3d557c91ac36d8262eb1733bb5f261c95944f9b635e43386e3d00a3272818c30", | ||
| 618 | "size": "27269672" | ||
| 619 | }, | ||
| 620 | "x86_64-macos": { | ||
| 621 | "tarball": "https://ziglang.org/download/0.4.0/zig-macos-x86_64-0.4.0.tar.xz", | ||
| 622 | "shasum": "67c932982484d017c5111e54af9f33f15e8e05c6bc5346a55e04052159c964a8", | ||
| 623 | "size": "30841504" | ||
| 624 | }, | ||
| 625 | "x86_64-windows": { | ||
| 626 | "tarball": "https://ziglang.org/download/0.4.0/zig-windows-x86_64-0.4.0.zip", | ||
| 627 | "shasum": "fbc3dd205e064c263063f69f600bedb18e3d0aa2efa747a63ef6cafb6d73f127", | ||
| 628 | "size": "35800101" | ||
| 629 | }, | ||
| 630 | "x86_64-linux": { | ||
| 631 | "tarball": "https://ziglang.org/download/0.4.0/zig-linux-x86_64-0.4.0.tar.xz", | ||
| 632 | "shasum": "fb1954e2fb556a01f8079a08130e88f70084e08978ff853bb2b1986d8c39d84e", | ||
| 633 | "size": "32876100" | ||
| 634 | } | ||
| 635 | }, | ||
| 636 | "0.3.0": { | ||
| 637 | "date": "2018-09-28", | ||
| 638 | "docs": "https://ziglang.org/documentation/0.3.0/", | ||
| 639 | "notes": "https://ziglang.org/download/0.3.0/release-notes.html", | ||
| 640 | "src": { | ||
| 641 | "tarball": "https://ziglang.org/download/0.3.0/zig-0.3.0.tar.xz", | ||
| 642 | "shasum": "d70af604f3a8622f3393d93abb3e056bf60351e32d121e6fa4fe03d8d41e1f5a", | ||
| 643 | "size": "2335592" | ||
| 644 | }, | ||
| 645 | "x86_64-macos": { | ||
| 646 | "tarball": "https://ziglang.org/download/0.3.0/zig-macos-x86_64-0.3.0.tar.xz", | ||
| 647 | "shasum": "19dec1f1943ab7be26823376d466f7e456143deb34e17502778a949034dc2e7e", | ||
| 648 | "size": "23712696" | ||
| 649 | }, | ||
| 650 | "x86_64-windows": { | ||
| 651 | "tarball": "https://ziglang.org/download/0.3.0/zig-windows-x86_64-0.3.0.zip", | ||
| 652 | "shasum": "bb568c03950958f8bb3472139c3ab5ed74547c8c694ab50f404c202faf51baf4", | ||
| 653 | "size": "22524425" | ||
| 654 | }, | ||
| 655 | "x86_64-linux": { | ||
| 656 | "tarball": "https://ziglang.org/download/0.3.0/zig-linux-x86_64-0.3.0.tar.xz", | ||
| 657 | "shasum": "b378d0aae30cb54f28494e7bc4efbc9bfb6326f47bfb302e8b5287af777b2f3c", | ||
| 658 | "size": "25209304" | ||
| 659 | } | ||
| 660 | }, | ||
| 661 | "0.2.0": { | ||
| 662 | "date": "2018-03-15", | ||
| 663 | "docs": "https://ziglang.org/documentation/0.2.0/", | ||
| 664 | "notes": "https://ziglang.org/download/0.2.0/release-notes.html", | ||
| 665 | "src": { | ||
| 666 | "tarball": "https://ziglang.org/download/0.2.0/zig-0.2.0.tar.xz", | ||
| 667 | "shasum": "29c9beb172737f4d5019b88ceae829ae8bc6512fb4386cfbf895ae2b42aa6965", | ||
| 668 | "size": "1940832" | ||
| 669 | }, | ||
| 670 | "x86_64-windows": { | ||
| 671 | "tarball": "https://ziglang.org/download/0.2.0/zig-win64-0.2.0.zip", | ||
| 672 | "shasum": "4f8a2979941a1f081ec8e545cca0b72608c0db1c5a3fd377a94db40649dcd3d4", | ||
| 673 | "size": "21076274" | ||
| 674 | }, | ||
| 675 | "x86_64-linux": { | ||
| 676 | "tarball": "https://ziglang.org/download/0.2.0/zig-linux-x86_64-0.2.0.tar.xz", | ||
| 677 | "shasum": "209c6fb745d42474c0a73d6f291c7ae3a38b6a1b6b641eea285a7f840cc1a890", | ||
| 678 | "size": "22551928" | ||
| 679 | } | ||
| 680 | }, | ||
| 681 | "0.1.1": { | ||
| 682 | "date": "2017-10-17", | ||
| 683 | "docs": "https://ziglang.org/documentation/0.1.1/", | ||
| 684 | "notes": "https://ziglang.org/download/0.1.1/release-notes.html", | ||
| 685 | "src": { | ||
| 686 | "tarball": "https://ziglang.org/download/0.1.1/zig-0.1.1.tar.xz", | ||
| 687 | "shasum": "ffca0cfb263485287e19cc997b08701fcd5f24b700345bcdc3dd8074f5a104e0", | ||
| 688 | "size": "1659716" | ||
| 689 | }, | ||
| 690 | "x86_64-windows": { | ||
| 691 | "tarball": "https://ziglang.org/download/0.1.1/zig-win64-0.1.1.zip", | ||
| 692 | "shasum": "6fc88bef531af7e567fe30bf60da1487b86833cbee84c7a2f3e317030aa5b660", | ||
| 693 | "size": "19757776" | ||
| 694 | } | ||
| 695 | } | ||
| 696 | } | ||
ci/linux/build-aarch64.sh+15-4| ... | @@ -1,12 +1,10 @@ | ... | @@ -1,12 +1,10 @@ |
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | |||
| 4 | # Requires cmake ninja-build | 3 | # Requires cmake ninja-build |
| 5 | 4 | ||
| 6 | set -x | 5 | set -x |
| 7 | set -e | 6 | set -e |
| 8 | 7 | ||
| 9 | ZIGDIR="$(pwd)" | ||
| 10 | ARCH="$(uname -m)" | 8 | ARCH="$(uname -m)" |
| 11 | TARGET="$ARCH-linux-musl" | 9 | TARGET="$ARCH-linux-musl" |
| 12 | MCPU="baseline" | 10 | MCPU="baseline" |
| ... | @@ -16,19 +14,32 @@ ZIG="$PREFIX/bin/zig" | ... | @@ -16,19 +14,32 @@ ZIG="$PREFIX/bin/zig" |
| 16 | 14 | ||
| 17 | export PATH="$HOME/deps/wasmtime-v2.0.2-aarch64-linux:$PATH" | 15 | export PATH="$HOME/deps/wasmtime-v2.0.2-aarch64-linux:$PATH" |
| 18 | 16 | ||
| 17 | # Make the `zig version` number consistent. | ||
| 18 | # This will affect the cmake command below. | ||
| 19 | git config core.abbrev 9 | ||
| 20 | git fetch --unshallow || true | ||
| 21 | git fetch --tags | ||
| 22 | |||
| 23 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 24 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 25 | |||
| 26 | rm -rf build-release | ||
| 19 | mkdir build-release | 27 | mkdir build-release |
| 20 | cd build-release | 28 | cd build-release |
| 21 | cmake .. \ | 29 | cmake .. \ |
| 22 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 30 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| 23 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 31 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| 24 | -DCMAKE_BUILD_TYPE=Release \ | 32 | -DCMAKE_BUILD_TYPE=Release \ |
| 25 | -DCMAKE_C_COMPILER="$ZIG;cc;-target;$TARGET;-mcpu=$MCPU" \ | ||
| 26 | -DCMAKE_CXX_COMPILER="$ZIG;c++;-target;$TARGET;-mcpu=$MCPU" \ | ||
| 27 | -DZIG_TARGET_TRIPLE="$TARGET" \ | 33 | -DZIG_TARGET_TRIPLE="$TARGET" \ |
| 28 | -DZIG_TARGET_MCPU="$MCPU" \ | 34 | -DZIG_TARGET_MCPU="$MCPU" \ |
| 29 | -DZIG_STATIC=ON \ | 35 | -DZIG_STATIC=ON \ |
| 30 | -GNinja | 36 | -GNinja |
| 31 | 37 | ||
| 38 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables | ||
| 39 | # so that installation and testing do not get affected by them. | ||
| 40 | unset CC | ||
| 41 | unset CXX | ||
| 42 | |||
| 32 | ninja install | 43 | ninja install |
| 33 | 44 | ||
| 34 | # TODO: add -fqemu back to this line | 45 | # TODO: add -fqemu back to this line |
ci/linux/build-tarballs.sh created+332| ... | @@ -0,0 +1,332 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Requires cmake ninja-build | ||
| 4 | |||
| 5 | set -x | ||
| 6 | set -e | ||
| 7 | |||
| 8 | ZIGDIR="$(pwd)" | ||
| 9 | REL_SRC_BUILD="$ZIGDIR/build-release" | ||
| 10 | cd ../.. | ||
| 11 | WORKDIR="$(pwd)" | ||
| 12 | ARCH="$(uname -m)" | ||
| 13 | TARGET="$ARCH-linux-musl" | ||
| 14 | MCPU="baseline" | ||
| 15 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.11.0-dev.256+271cc52a1" | ||
| 16 | PREFIX="$HOME/deps/$CACHE_BASENAME" | ||
| 17 | ZIG="$PREFIX/bin/zig" | ||
| 18 | |||
| 19 | # Make the `zig version` number consistent. | ||
| 20 | # This will affect the cmake command below. | ||
| 21 | cd "$ZIGDIR" | ||
| 22 | git config core.abbrev 9 | ||
| 23 | git fetch --unshallow || true | ||
| 24 | git fetch --tags | ||
| 25 | |||
| 26 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 27 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 28 | |||
| 29 | rm -rf "$REL_SRC_BUILD" | ||
| 30 | mkdir "$REL_SRC_BUILD" | ||
| 31 | cd "$REL_SRC_BUILD" | ||
| 32 | cmake .. \ | ||
| 33 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | ||
| 34 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | ||
| 35 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 36 | -DZIG_TARGET_TRIPLE="$TARGET" \ | ||
| 37 | -DZIG_TARGET_MCPU="$MCPU" \ | ||
| 38 | -DZIG_STATIC=ON \ | ||
| 39 | -GNinja | ||
| 40 | |||
| 41 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables | ||
| 42 | # so that installation and testing do not get affected by them. | ||
| 43 | unset CC | ||
| 44 | unset CXX | ||
| 45 | |||
| 46 | ninja install | ||
| 47 | |||
| 48 | ZIG_VERSION="$(stage3-release/bin/zig version)" | ||
| 49 | BOOTSTRAP_SRC="$WORKDIR/zig-bootstrap" | ||
| 50 | TARBALLS_DIR="$WORKDIR/tarballs" | ||
| 51 | |||
| 52 | cd "$BOOTSTRAP_SRC" | ||
| 53 | git pull | ||
| 54 | rm -rf zig | ||
| 55 | cp -r "$ZIGDIR" ./ | ||
| 56 | sed -i "/^ZIG_VERSION=\".*\"\$/c\\ZIG_VERSION=\"$ZIG_VERSION\"" build | ||
| 57 | |||
| 58 | # Unfortunately Debian's cmake (3.14.4) is too old for zig-bootstrap. | ||
| 59 | PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build aarch64-linux-musl baseline | ||
| 60 | PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86_64-linux-musl baseline | ||
| 61 | #PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86-linux-musl baseline | ||
| 62 | #PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build riscv64-linux-musl baseline | ||
| 63 | #PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build arm-linux-musleabihf generic+v7a | ||
| 64 | PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86_64-macos-none baseline | ||
| 65 | PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build aarch64-macos-none apple_a14 | ||
| 66 | PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86_64-windows-gnu baseline | ||
| 67 | #PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build x86-windows-gnu baseline | ||
| 68 | #PATH="$HOME/local/bin:$PATH" CMAKE_GENERATOR=Ninja ./build aarch64-windows-gnu baseline | ||
| 69 | |||
| 70 | ZIG="$BOOTSTRAP_SRC/out/host/bin/zig" | ||
| 71 | |||
| 72 | rm -rf "$TARBALLS_DIR" | ||
| 73 | mkdir "$TARBALLS_DIR" | ||
| 74 | cd "$TARBALLS_DIR" | ||
| 75 | |||
| 76 | cp -r "$ZIGDIR" ./ | ||
| 77 | rm -rf \ | ||
| 78 | "zig/.github" \ | ||
| 79 | "zig/.gitignore" \ | ||
| 80 | "zig/.git" \ | ||
| 81 | "zig/ci" \ | ||
| 82 | "zig/CODE_OF_CONDUCT.md" \ | ||
| 83 | "zig/CONTRIBUTING.md" \ | ||
| 84 | "zig/.builds" \ | ||
| 85 | "zig/build" \ | ||
| 86 | "zig/build-release" \ | ||
| 87 | "zig/build-debug" \ | ||
| 88 | "zig/zig-cache" | ||
| 89 | mv zig "zig-$ZIG_VERSION" | ||
| 90 | tar cfJ "zig-$ZIG_VERSION.tar.xz" "zig-$ZIG_VERSION" | ||
| 91 | |||
| 92 | cd "$BOOTSTRAP_SRC" | ||
| 93 | "$ZIG" build --build-file zig/build.zig docs | ||
| 94 | LANGREF_HTML="$BOOTSTRAP_SRC/zig/zig-cache/langref.html" | ||
| 95 | # Look for HTML errors. | ||
| 96 | tidy --drop-empty-elements no -qe "$LANGREF_HTML" | ||
| 97 | |||
| 98 | cd "$TARBALLS_DIR" | ||
| 99 | |||
| 100 | cp -r $BOOTSTRAP_SRC/out/zig-aarch64-linux-musl-baseline zig-linux-aarch64-$ZIG_VERSION/ | ||
| 101 | cp -r $BOOTSTRAP_SRC/out/zig-aarch64-macos-none-apple_a14 zig-macos-aarch64-$ZIG_VERSION/ | ||
| 102 | #cp -r $BOOTSTRAP_SRC/out/zig-aarch64-windows-gnu-baseline zig-windows-aarch64-$ZIG_VERSION/ | ||
| 103 | #cp -r $BOOTSTRAP_SRC/out/zig-arm-linux-musleabihf-generic+v7a zig-linux-armv7a-$ZIG_VERSION/ | ||
| 104 | #cp -r $BOOTSTRAP_SRC/out/zig-x86-linux-musl-baseline zig-linux-x86-$ZIG_VERSION/ | ||
| 105 | #cp -r $BOOTSTRAP_SRC/out/zig-x86-windows-gnu-baseline zig-windows-x86-$ZIG_VERSION/ | ||
| 106 | #cp -r $BOOTSTRAP_SRC/out/zig-riscv64-linux-musl-baseline zig-linux-riscv64-$ZIG_VERSION/ | ||
| 107 | #cp -r $BOOTSTRAP_SRC/out/zig-x86_64-freebsd-gnu-baseline zig-freebsd-x86_64-$ZIG_VERSION/ | ||
| 108 | cp -r $BOOTSTRAP_SRC/out/zig-x86_64-linux-musl-baseline zig-linux-x86_64-$ZIG_VERSION/ | ||
| 109 | cp -r $BOOTSTRAP_SRC/out/zig-x86_64-macos-none-baseline zig-macos-x86_64-$ZIG_VERSION/ | ||
| 110 | cp -r $BOOTSTRAP_SRC/out/zig-x86_64-windows-gnu-baseline zig-windows-x86_64-$ZIG_VERSION/ | ||
| 111 | |||
| 112 | mv zig-linux-aarch64-$ZIG_VERSION/{bin/,}zig | ||
| 113 | #mv zig-linux-armv7a-$ZIG_VERSION/{bin/,}zig | ||
| 114 | #mv zig-linux-x86-$ZIG_VERSION/{bin/,}zig | ||
| 115 | #mv zig-linux-riscv64-$ZIG_VERSION/{bin/,}zig | ||
| 116 | mv zig-linux-x86_64-$ZIG_VERSION/{bin/,}zig | ||
| 117 | #mv zig-windows-x86-$ZIG_VERSION/{bin/,}zig.exe | ||
| 118 | mv zig-windows-x86_64-$ZIG_VERSION/{bin/,}zig.exe | ||
| 119 | #mv zig-windows-aarch64-$ZIG_VERSION/{bin/,}zig.exe | ||
| 120 | mv zig-macos-aarch64-$ZIG_VERSION/{bin/,}zig | ||
| 121 | mv zig-macos-x86_64-$ZIG_VERSION/{bin/,}zig | ||
| 122 | #mv zig-freebsd-x86_64-$ZIG_VERSION/{bin/,}zig | ||
| 123 | |||
| 124 | mv zig-linux-aarch64-$ZIG_VERSION/{lib,lib2} | ||
| 125 | #mv zig-linux-armv7a-$ZIG_VERSION/{lib,lib2} | ||
| 126 | #mv zig-linux-x86-$ZIG_VERSION/{lib,lib2} | ||
| 127 | #mv zig-linux-riscv64-$ZIG_VERSION/{lib,lib2} | ||
| 128 | mv zig-linux-x86_64-$ZIG_VERSION/{lib,lib2} | ||
| 129 | #mv zig-windows-x86-$ZIG_VERSION/{lib,lib2} | ||
| 130 | mv zig-windows-x86_64-$ZIG_VERSION/{lib,lib2} | ||
| 131 | #mv zig-windows-aarch64-$ZIG_VERSION/{lib,lib2} | ||
| 132 | mv zig-macos-aarch64-$ZIG_VERSION/{lib,lib2} | ||
| 133 | mv zig-macos-x86_64-$ZIG_VERSION/{lib,lib2} | ||
| 134 | #mv zig-freebsd-x86_64-$ZIG_VERSION/{lib,lib2} | ||
| 135 | |||
| 136 | mv zig-linux-aarch64-$ZIG_VERSION/{lib2/zig,lib} | ||
| 137 | #mv zig-linux-armv7a-$ZIG_VERSION/{lib2/zig,lib} | ||
| 138 | #mv zig-linux-x86-$ZIG_VERSION/{lib2/zig,lib} | ||
| 139 | #mv zig-linux-riscv64-$ZIG_VERSION/{lib2/zig,lib} | ||
| 140 | mv zig-linux-x86_64-$ZIG_VERSION/{lib2/zig,lib} | ||
| 141 | #mv zig-windows-x86-$ZIG_VERSION/{lib2/zig,lib} | ||
| 142 | mv zig-windows-x86_64-$ZIG_VERSION/{lib2/zig,lib} | ||
| 143 | #mv zig-windows-aarch64-$ZIG_VERSION/{lib2/zig,lib} | ||
| 144 | mv zig-macos-aarch64-$ZIG_VERSION/{lib2/zig,lib} | ||
| 145 | mv zig-macos-x86_64-$ZIG_VERSION/{lib2/zig,lib} | ||
| 146 | #mv zig-freebsd-x86_64-$ZIG_VERSION/{lib2/zig,lib} | ||
| 147 | |||
| 148 | rmdir zig-linux-aarch64-$ZIG_VERSION/{bin,lib2} | ||
| 149 | #rmdir zig-linux-armv7a-$ZIG_VERSION/{bin,lib2} | ||
| 150 | #rmdir zig-linux-x86-$ZIG_VERSION/{bin,lib2} | ||
| 151 | #rmdir zig-linux-riscv64-$ZIG_VERSION/{bin,lib2} | ||
| 152 | rmdir zig-linux-x86_64-$ZIG_VERSION/{bin,lib2} | ||
| 153 | #rmdir zig-windows-x86-$ZIG_VERSION/{bin,lib2} | ||
| 154 | rmdir zig-windows-x86_64-$ZIG_VERSION/{bin,lib2} | ||
| 155 | #rmdir zig-windows-aarch64-$ZIG_VERSION/{bin,lib2} | ||
| 156 | rmdir zig-macos-aarch64-$ZIG_VERSION/{bin,lib2} | ||
| 157 | rmdir zig-macos-x86_64-$ZIG_VERSION/{bin,lib2} | ||
| 158 | #rmdir zig-freebsd-x86_64-$ZIG_VERSION/{bin,lib2} | ||
| 159 | |||
| 160 | cp $REL_SRC_BUILD/../LICENSE zig-linux-aarch64-$ZIG_VERSION/ | ||
| 161 | #cp $REL_SRC_BUILD/../LICENSE zig-linux-armv7a-$ZIG_VERSION/ | ||
| 162 | #cp $REL_SRC_BUILD/../LICENSE zig-linux-x86-$ZIG_VERSION/ | ||
| 163 | #cp $REL_SRC_BUILD/../LICENSE zig-linux-riscv64-$ZIG_VERSION/ | ||
| 164 | cp $REL_SRC_BUILD/../LICENSE zig-linux-x86_64-$ZIG_VERSION/ | ||
| 165 | #cp $REL_SRC_BUILD/../LICENSE zig-windows-x86-$ZIG_VERSION/ | ||
| 166 | cp $REL_SRC_BUILD/../LICENSE zig-windows-x86_64-$ZIG_VERSION/ | ||
| 167 | #cp $REL_SRC_BUILD/../LICENSE zig-windows-aarch64-$ZIG_VERSION/ | ||
| 168 | cp $REL_SRC_BUILD/../LICENSE zig-macos-aarch64-$ZIG_VERSION/ | ||
| 169 | cp $REL_SRC_BUILD/../LICENSE zig-macos-x86_64-$ZIG_VERSION/ | ||
| 170 | #cp $REL_SRC_BUILD/../LICENSE zig-freebsd-x86_64-$ZIG_VERSION/ | ||
| 171 | |||
| 172 | mkdir zig-linux-aarch64-$ZIG_VERSION/doc/ | ||
| 173 | #mkdir zig-linux-armv7a-$ZIG_VERSION/doc/ | ||
| 174 | #mkdir zig-linux-x86-$ZIG_VERSION/doc/ | ||
| 175 | #mkdir zig-linux-riscv64-$ZIG_VERSION/doc/ | ||
| 176 | mkdir zig-linux-x86_64-$ZIG_VERSION/doc/ | ||
| 177 | #mkdir zig-windows-x86-$ZIG_VERSION/doc/ | ||
| 178 | mkdir zig-windows-x86_64-$ZIG_VERSION/doc/ | ||
| 179 | #mkdir zig-windows-aarch64-$ZIG_VERSION/doc/ | ||
| 180 | mkdir zig-macos-aarch64-$ZIG_VERSION/doc/ | ||
| 181 | mkdir zig-macos-x86_64-$ZIG_VERSION/doc/ | ||
| 182 | #mkdir zig-freebsd-x86_64-$ZIG_VERSION/doc/ | ||
| 183 | |||
| 184 | cd $REL_SRC_BUILD | ||
| 185 | 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 | ||
| 186 | #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 | ||
| 187 | #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 | ||
| 188 | #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 | ||
| 189 | 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 | ||
| 190 | #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 | ||
| 191 | 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 | ||
| 192 | #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 | ||
| 193 | 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 | ||
| 194 | stage3-release/bin/zig test ../lib/std/std.zig -femit-docs=doc-macos-aarch64 -target aarch64-macos -fno-emit-bin --zig-lib-dir ../lib | ||
| 195 | #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 | ||
| 196 | |||
| 197 | cd "$TARBALLS_DIR" | ||
| 198 | cp -r $REL_SRC_BUILD/doc-linux-aarch64 zig-linux-aarch64-$ZIG_VERSION/doc/std | ||
| 199 | #cp -r $REL_SRC_BUILD/doc-linux-armv7a zig-linux-armv7a-$ZIG_VERSION/doc/std | ||
| 200 | #cp -r $REL_SRC_BUILD/doc-linux-x86 zig-linux-x86-$ZIG_VERSION/doc/std | ||
| 201 | #cp -r $REL_SRC_BUILD/doc-linux-riscv64 zig-linux-riscv64-$ZIG_VERSION/doc/std | ||
| 202 | cp -r $REL_SRC_BUILD/doc-linux-x86_64 zig-linux-x86_64-$ZIG_VERSION/doc/std | ||
| 203 | #cp -r $REL_SRC_BUILD/doc-windows-x86 zig-windows-x86-$ZIG_VERSION/doc/std | ||
| 204 | cp -r $REL_SRC_BUILD/doc-windows-x86_64 zig-windows-x86_64-$ZIG_VERSION/doc/std | ||
| 205 | #cp -r $REL_SRC_BUILD/doc-windows-aarch64 zig-windows-aarch64-$ZIG_VERSION/doc/std | ||
| 206 | cp -r $REL_SRC_BUILD/doc-macos-aarch64 zig-macos-aarch64-$ZIG_VERSION/doc/std | ||
| 207 | cp -r $REL_SRC_BUILD/doc-macos-x86_64 zig-macos-x86_64-$ZIG_VERSION/doc/std | ||
| 208 | #cp -r $REL_SRC_BUILD/doc-freebsd-x86_64 zig-freebsd-x86_64-$ZIG_VERSION/doc/std | ||
| 209 | |||
| 210 | cp $LANGREF_HTML zig-linux-aarch64-$ZIG_VERSION/doc/ | ||
| 211 | #cp $LANGREF_HTML zig-linux-armv7a-$ZIG_VERSION/doc/ | ||
| 212 | #cp $LANGREF_HTML zig-linux-x86-$ZIG_VERSION/doc/ | ||
| 213 | #cp $LANGREF_HTML zig-linux-riscv64-$ZIG_VERSION/doc/ | ||
| 214 | cp $LANGREF_HTML zig-linux-x86_64-$ZIG_VERSION/doc/ | ||
| 215 | #cp $LANGREF_HTML zig-windows-x86-$ZIG_VERSION/doc/ | ||
| 216 | cp $LANGREF_HTML zig-windows-x86_64-$ZIG_VERSION/doc/ | ||
| 217 | #cp $LANGREF_HTML zig-windows-aarch64-$ZIG_VERSION/doc/ | ||
| 218 | cp $LANGREF_HTML zig-macos-aarch64-$ZIG_VERSION/doc/ | ||
| 219 | cp $LANGREF_HTML zig-macos-x86_64-$ZIG_VERSION/doc/ | ||
| 220 | #cp $LANGREF_HTML zig-freebsd-x86_64-$ZIG_VERSION/doc/ | ||
| 221 | |||
| 222 | tar cJf zig-linux-aarch64-$ZIG_VERSION.tar.xz zig-linux-aarch64-$ZIG_VERSION/ | ||
| 223 | #tar cJf zig-linux-armv7a-$ZIG_VERSION.tar.xz zig-linux-armv7a-$ZIG_VERSION/ | ||
| 224 | #tar cJf zig-linux-x86-$ZIG_VERSION.tar.xz zig-linux-x86-$ZIG_VERSION/ | ||
| 225 | #tar cJf zig-linux-riscv64-$ZIG_VERSION.tar.xz zig-linux-riscv64-$ZIG_VERSION/ | ||
| 226 | tar cJf zig-linux-x86_64-$ZIG_VERSION.tar.xz zig-linux-x86_64-$ZIG_VERSION/ | ||
| 227 | #7z a zig-windows-x86-$ZIG_VERSION.zip zig-windows-x86-$ZIG_VERSION/ | ||
| 228 | 7z a zig-windows-x86_64-$ZIG_VERSION.zip zig-windows-x86_64-$ZIG_VERSION/ | ||
| 229 | #7z a zig-windows-aarch64-$ZIG_VERSION.zip zig-windows-aarch64-$ZIG_VERSION/ | ||
| 230 | tar cJf zig-macos-aarch64-$ZIG_VERSION.tar.xz zig-macos-aarch64-$ZIG_VERSION/ | ||
| 231 | tar cJf zig-macos-x86_64-$ZIG_VERSION.tar.xz zig-macos-x86_64-$ZIG_VERSION/ | ||
| 232 | #tar cJf zig-freebsd-x86_64-$ZIG_VERSION.tar.xz zig-freebsd-x86_64-$ZIG_VERSION/ | ||
| 233 | |||
| 234 | s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/ | ||
| 235 | #s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-bootstrap-$ZIG_VERSION.tar.xz s3://ziglang.org/builds/$ZIG_VERSION/ | ||
| 236 | 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/ | ||
| 237 | #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/ | ||
| 238 | #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/ | ||
| 239 | #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/ | ||
| 240 | 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/ | ||
| 241 | #s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-windows-x86-$ZIG_VERSION.zip s3://ziglang.org/builds/$ZIG_VERSION/ | ||
| 242 | 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/ | ||
| 243 | #s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" zig-windows-aarch64-$ZIG_VERSION.zip s3://ziglang.org/builds/$ZIG_VERSION/ | ||
| 244 | 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/ | ||
| 245 | 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/ | ||
| 246 | #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/ | ||
| 247 | |||
| 248 | export SRC_TARBALL="zig-$ZIG_VERSION.tar.xz" | ||
| 249 | export SRC_SHASUM=$(sha256sum "zig-$ZIG_VERSION.tar.xz" | cut '-d ' -f1) | ||
| 250 | export SRC_BYTESIZE=$(wc -c < "zig-$ZIG_VERSION.tar.xz") | ||
| 251 | |||
| 252 | export X86_64_WINDOWS_TARBALL="zig-windows-x86_64-$ZIG_VERSION.zip" | ||
| 253 | export X86_64_WINDOWS_BYTESIZE=$(wc -c < "zig-windows-x86_64-$ZIG_VERSION.zip") | ||
| 254 | export X86_64_WINDOWS_SHASUM="$(sha256sum "zig-windows-x86_64-$ZIG_VERSION.zip" | cut '-d ' -f1)" | ||
| 255 | |||
| 256 | export AARCH64_MACOS_TARBALL="zig-macos-aarch64-$ZIG_VERSION.tar.xz" | ||
| 257 | export AARCH64_MACOS_BYTESIZE=$(wc -c < "zig-macos-aarch64-$ZIG_VERSION.tar.xz") | ||
| 258 | export AARCH64_MACOS_SHASUM="$(sha256sum "zig-macos-aarch64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)" | ||
| 259 | |||
| 260 | export X86_64_MACOS_TARBALL="zig-macos-x86_64-$ZIG_VERSION.tar.xz" | ||
| 261 | export X86_64_MACOS_BYTESIZE=$(wc -c < "zig-macos-x86_64-$ZIG_VERSION.tar.xz") | ||
| 262 | export X86_64_MACOS_SHASUM="$(sha256sum "zig-macos-x86_64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)" | ||
| 263 | |||
| 264 | export X86_64_LINUX_TARBALL="zig-linux-x86_64-$ZIG_VERSION.tar.xz" | ||
| 265 | export X86_64_LINUX_BYTESIZE=$(wc -c < "zig-linux-x86_64-$ZIG_VERSION.tar.xz") | ||
| 266 | export X86_64_LINUX_SHASUM="$(sha256sum "zig-linux-x86_64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)" | ||
| 267 | |||
| 268 | export AARCH64_LINUX_TARBALL="zig-linux-aarch64-$ZIG_VERSION.tar.xz" | ||
| 269 | export AARCH64_LINUX_BYTESIZE=$(wc -c < "zig-linux-aarch64-$ZIG_VERSION.tar.xz") | ||
| 270 | export AARCH64_LINUX_SHASUM="$(sha256sum "zig-linux-aarch64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)" | ||
| 271 | |||
| 272 | #export X86_64_FREEBSD_TARBALL="zig-freebsd-x86_64-$ZIG_VERSION.tar.xz" | ||
| 273 | #export X86_64_FREEBSD_BYTESIZE=$(wc -c < "zig-freebsd-x86_64-$ZIG_VERSION.tar.xz") | ||
| 274 | #export X86_64_FREEBSD_SHASUM="$(sha256sum "zig-freebsd-x86_64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)" | ||
| 275 | |||
| 276 | #export X86_64_NETBSD_TARBALL="zig-netbsd-x86_64-$ZIG_VERSION.tar.xz" | ||
| 277 | #export X86_64_NETBSD_BYTESIZE=$(wc -c < "zig-netbsd-x86_64-$ZIG_VERSION.tar.xz") | ||
| 278 | #export X86_64_NETBSD_SHASUM="$(sha256sum "zig-netbsd-x86_64-$ZIG_VERSION.tar.xz" | cut '-d ' -f1)" | ||
| 279 | |||
| 280 | export MASTER_DATE="$(date +%Y-%m-%d)" | ||
| 281 | export MASTER_VERSION="$ZIG_VERSION" | ||
| 282 | |||
| 283 | # Create index.json and update the website repo. | ||
| 284 | cd "$ZIGDIR/ci" | ||
| 285 | "$ZIG" run update-download-page.zig | ||
| 286 | mv out "$TARBALLS_DIR/out" | ||
| 287 | |||
| 288 | cd "$WORKDIR/www.ziglang.org" | ||
| 289 | # This is the user when pushing to the website repo. | ||
| 290 | git config user.email "ziggy@ziglang.org" | ||
| 291 | git config user.name "Ziggy" | ||
| 292 | git pull | ||
| 293 | |||
| 294 | cp "$TARBALLS_DIR/out/index.json" data/releases.json | ||
| 295 | git add data/releases.json | ||
| 296 | git commit -m "CI: update releases" | ||
| 297 | git push origin master | ||
| 298 | |||
| 299 | # Update autodocs and langref directly to S3 in order to prevent the | ||
| 300 | # www.ziglang.org git repo from growing too big. | ||
| 301 | |||
| 302 | # Please do not edit this script to pre-compress the artifacts before they hit | ||
| 303 | # S3. This prevents the website from working on browsers that do not support gzip | ||
| 304 | # encoding. Cloudfront will automatically compress files if they are less than | ||
| 305 | # 9.5 MiB, and the client advertises itself as capable of decompressing. | ||
| 306 | # The data.js file is currently 16 MiB. In order to fix this problem, we need to do | ||
| 307 | # one of the following things: | ||
| 308 | # * Reduce the size of data.js to less than 9.5 MiB. | ||
| 309 | # * Figure out how to adjust the Cloudfront settings to increase the max size for | ||
| 310 | # auto-compressed objects. | ||
| 311 | # * Migrate to fastly. | ||
| 312 | DOCDIR="$TARBALLS_DIR/zig-linux-aarch64-$ZIG_VERSION/doc" | ||
| 313 | s3cmd put -P --no-mime-magic \ | ||
| 314 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 315 | "$LANGREF_HTML" s3://ziglang.org/documentation/master/index.html | ||
| 316 | |||
| 317 | s3cmd put -P --no-mime-magic \ | ||
| 318 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 319 | "$DOCDIR/std/index.html" s3://ziglang.org/documentation/master/std/index.html | ||
| 320 | |||
| 321 | s3cmd put -P --no-mime-magic \ | ||
| 322 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 323 | "$DOCDIR/std/main.js" s3://ziglang.org/documentation/master/std/main.js | ||
| 324 | |||
| 325 | s3cmd put -P --no-mime-magic \ | ||
| 326 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 327 | "$DOCDIR/std/data.js" s3://ziglang.org/documentation/master/std/data.js | ||
| 328 | |||
| 329 | s3cmd put -P --no-mime-magic --recursive \ | ||
| 330 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 331 | -m "text/html" \ | ||
| 332 | "$DOCDIR/std/src/" s3://ziglang.org/documentation/master/std/src/ | ||
ci/linux/build-x86_64-debug.sh created+65| ... | @@ -0,0 +1,65 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | ZIGDIR="$(pwd)" | ||
| 7 | ARCH="$(uname -m)" | ||
| 8 | DEPS_LOCAL="$HOME/local" | ||
| 9 | OLD_ZIG="$DEPS_LOCAL/bin/zig" | ||
| 10 | TARGET="${ARCH}-linux-musl" | ||
| 11 | MCPU="baseline" | ||
| 12 | |||
| 13 | mkdir -p "$DEPS_LOCAL" | ||
| 14 | cd "$DEPS_LOCAL" | ||
| 15 | |||
| 16 | wget https://ziglang.org/deps/zig+llvm+lld+clang-x86_64-linux-musl-0.10.0-dev.4560+828735ac0.tar.xz | ||
| 17 | tar x --strip-components=1 -f zig+llvm+lld+clang-x86_64-linux-musl-0.10.0-dev.4560+828735ac0.tar.xz | ||
| 18 | |||
| 19 | wget https://ziglang.org/deps/qemu-linux-x86_64-6.1.0.1.tar.xz | ||
| 20 | tar x --strip-components=1 -f qemu-linux-x86_64-6.1.0.1.tar.xz | ||
| 21 | |||
| 22 | wget https://github.com/bytecodealliance/wasmtime/releases/download/v2.0.2/wasmtime-v2.0.2-x86_64-linux.tar.xz | ||
| 23 | tar x --strip-components=1 -f wasmtime-v2.0.2-x86_64-linux.tar.xz | ||
| 24 | rm -f LICENSE README.md | ||
| 25 | mv wasmtime bin/ | ||
| 26 | |||
| 27 | export PATH=$DEPS_LOCAL/bin:$PATH | ||
| 28 | |||
| 29 | cd "$ZIGDIR" | ||
| 30 | echo "building stage3-debug with zig version $($OLD_ZIG version)" | ||
| 31 | |||
| 32 | export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 33 | export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 34 | |||
| 35 | mkdir build | ||
| 36 | cd build | ||
| 37 | cmake .. \ | ||
| 38 | -DCMAKE_INSTALL_PREFIX="$(pwd)/stage3" \ | ||
| 39 | -DCMAKE_PREFIX_PATH="$DEPS_LOCAL" \ | ||
| 40 | -DCMAKE_BUILD_TYPE=Debug \ | ||
| 41 | -DZIG_STATIC=ON \ | ||
| 42 | -DZIG_USE_LLVM_CONFIG=OFF | ||
| 43 | |||
| 44 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables | ||
| 45 | # so that installation and testing do not get affected by them. | ||
| 46 | unset CC | ||
| 47 | unset CXX | ||
| 48 | |||
| 49 | make -j2 install | ||
| 50 | |||
| 51 | echo "Looking for non-conforming code formatting..." | ||
| 52 | stage3/bin/zig fmt --check .. \ | ||
| 53 | --exclude ../test/cases/ \ | ||
| 54 | --exclude ../build | ||
| 55 | |||
| 56 | # simultaneously test building self-hosted without LLVM and with 32-bit arm | ||
| 57 | stage3/bin/zig build -Dtarget=arm-linux-musleabihf | ||
| 58 | |||
| 59 | stage3/bin/zig build test \ | ||
| 60 | -fqemu \ | ||
| 61 | -fwasmtime \ | ||
| 62 | -Dstatic-llvm \ | ||
| 63 | -Dtarget=native-native-musl \ | ||
| 64 | --search-prefix "$DEPS_LOCAL" \ | ||
| 65 | --zig-lib-dir "$(pwd)/../lib" | ||
ci/linux/build-x86_64-release.sh created+75| ... | @@ -0,0 +1,75 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | ZIGDIR="$(pwd)" | ||
| 7 | ARCH="$(uname -m)" | ||
| 8 | DEPS_LOCAL="$HOME/local" | ||
| 9 | OLD_ZIG="$DEPS_LOCAL/bin/zig" | ||
| 10 | TARGET="${ARCH}-linux-musl" | ||
| 11 | MCPU="baseline" | ||
| 12 | |||
| 13 | mkdir -p "$DEPS_LOCAL" | ||
| 14 | cd "$DEPS_LOCAL" | ||
| 15 | |||
| 16 | wget https://ziglang.org/deps/zig+llvm+lld+clang-x86_64-linux-musl-0.10.0-dev.4560+828735ac0.tar.xz | ||
| 17 | tar x --strip-components=1 -f zig+llvm+lld+clang-x86_64-linux-musl-0.10.0-dev.4560+828735ac0.tar.xz | ||
| 18 | |||
| 19 | wget https://ziglang.org/deps/qemu-linux-x86_64-6.1.0.1.tar.xz | ||
| 20 | tar x --strip-components=1 -f qemu-linux-x86_64-6.1.0.1.tar.xz | ||
| 21 | |||
| 22 | wget https://github.com/bytecodealliance/wasmtime/releases/download/v2.0.2/wasmtime-v2.0.2-x86_64-linux.tar.xz | ||
| 23 | tar x --strip-components=1 -f wasmtime-v2.0.2-x86_64-linux.tar.xz | ||
| 24 | rm -f LICENSE README.md | ||
| 25 | mv wasmtime bin/ | ||
| 26 | |||
| 27 | export PATH=$DEPS_LOCAL/bin:$PATH | ||
| 28 | |||
| 29 | cd "$ZIGDIR" | ||
| 30 | echo "building stage3-release with zig version $($OLD_ZIG version)" | ||
| 31 | |||
| 32 | export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 33 | export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 34 | |||
| 35 | mkdir build | ||
| 36 | cd build | ||
| 37 | cmake .. \ | ||
| 38 | -DCMAKE_INSTALL_PREFIX="$(pwd)/stage3" \ | ||
| 39 | -DCMAKE_PREFIX_PATH="$DEPS_LOCAL" \ | ||
| 40 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 41 | -DZIG_TARGET_TRIPLE="$TARGET" \ | ||
| 42 | -DZIG_TARGET_MCPU="$MCPU" \ | ||
| 43 | -DZIG_STATIC=ON | ||
| 44 | |||
| 45 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables | ||
| 46 | # so that installation and testing do not get affected by them. | ||
| 47 | unset CC | ||
| 48 | unset CXX | ||
| 49 | |||
| 50 | make -j2 install | ||
| 51 | |||
| 52 | "stage3/bin/zig" build test \ | ||
| 53 | -fqemu \ | ||
| 54 | -fwasmtime \ | ||
| 55 | -Dstatic-llvm \ | ||
| 56 | -Dtarget=native-native-musl \ | ||
| 57 | --search-prefix "$DEPS_LOCAL" \ | ||
| 58 | --zig-lib-dir "$(pwd)/../lib" | ||
| 59 | |||
| 60 | "stage3/bin/zig" build \ | ||
| 61 | --prefix stage4 \ | ||
| 62 | -Dconfig_h="build/config.h" \ | ||
| 63 | -Denable-llvm \ | ||
| 64 | -Denable-stage1 \ | ||
| 65 | -Dno-lib \ | ||
| 66 | -Drelease \ | ||
| 67 | -Dstrip \ | ||
| 68 | -Dtarget=x86_64-linux-musl \ | ||
| 69 | -Duse-zig-libcxx \ | ||
| 70 | -Dversion-string="$(stage3/bin/zig version)" | ||
| 71 | |||
| 72 | # diff returns an error code if the files differ. | ||
| 73 | echo "If the following command fails, it means nondeterminism has been" | ||
| 74 | echo "introduced, making stage3 and stage4 no longer byte-for-byte identical." | ||
| 75 | diff stage3/bin/zig stage4/bin/zig | ||
ci/srht/freebsd_script deleted-114| ... | @@ -1,114 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | sudo pkg update -fq | ||
| 7 | sudo pkg install -y cmake py39-s3cmd wget curl jq samurai | ||
| 8 | |||
| 9 | ZIGDIR="$(pwd)" | ||
| 10 | TARGET="x86_64-freebsd-gnu" | ||
| 11 | MCPU="baseline" | ||
| 12 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.10.0-dev.4560+828735ac0" | ||
| 13 | PREFIX="$HOME/$CACHE_BASENAME" | ||
| 14 | |||
| 15 | cd $HOME | ||
| 16 | wget -nv "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz" | ||
| 17 | tar xf "$CACHE_BASENAME.tar.xz" | ||
| 18 | |||
| 19 | cd $ZIGDIR | ||
| 20 | |||
| 21 | # Make the `zig version` number consistent. | ||
| 22 | # This will affect the cmake command below. | ||
| 23 | git config core.abbrev 9 | ||
| 24 | git fetch --unshallow || true | ||
| 25 | git fetch --tags | ||
| 26 | |||
| 27 | # SourceHut reports that it is a terminal that supports escape codes, but it | ||
| 28 | # is a filthy liar. Here we tell Zig to not try to send any terminal escape | ||
| 29 | # codes to show progress. | ||
| 30 | export TERM=dumb | ||
| 31 | |||
| 32 | mkdir build | ||
| 33 | cd build | ||
| 34 | |||
| 35 | |||
| 36 | cmake .. \ | ||
| 37 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 38 | -DCMAKE_PREFIX_PATH=$PREFIX \ | ||
| 39 | -DZIG_TARGET_TRIPLE="$TARGET" \ | ||
| 40 | -DZIG_TARGET_MCPU="$MCPU" \ | ||
| 41 | -DZIG_STATIC=ON \ | ||
| 42 | -GNinja | ||
| 43 | |||
| 44 | # TODO: eliminate this workaround. Without this, zig does not end up passing | ||
| 45 | # -isystem /usr/include when building libc++, resulting in #include <sys/endian.h> | ||
| 46 | # "file not found" errors. | ||
| 47 | echo "include_dir=/usr/include" >>libc.txt | ||
| 48 | echo "sys_include_dir=/usr/include" >>libc.txt | ||
| 49 | echo "crt_dir=/usr/lib" >>libc.txt | ||
| 50 | echo "msvc_lib_dir=" >>libc.txt | ||
| 51 | echo "kernel32_lib_dir=" >>libc.txt | ||
| 52 | echo "gcc_dir=" >>libc.txt | ||
| 53 | ZIG_LIBC_TXT="$(pwd)/libc.txt" | ||
| 54 | |||
| 55 | ZIG_LIBC="$ZIG_LIBC_TXT" samu install | ||
| 56 | |||
| 57 | # Here we skip some tests to save time. | ||
| 58 | stage3/bin/zig build test docs \ | ||
| 59 | --zig-lib-dir "$(pwd)/../lib" \ | ||
| 60 | -Dstatic-llvm \ | ||
| 61 | --search-prefix "$PREFIX" \ | ||
| 62 | -Dskip-stage1 \ | ||
| 63 | -Dskip-non-native | ||
| 64 | |||
| 65 | # Produce the experimental std lib documentation. | ||
| 66 | mkdir -p "stage3/doc/std" | ||
| 67 | stage3/bin/zig test "$(pwd)/../lib/std/std.zig" \ | ||
| 68 | --zig-lib-dir "$(pwd)/../lib" \ | ||
| 69 | -femit-docs="$(pwd)/stage3/doc/std/" \ | ||
| 70 | -fno-emit-bin | ||
| 71 | |||
| 72 | if [ -f ~/.s3cfg ]; then | ||
| 73 | # Remove the unnecessary bin dir in stage3/bin/zig | ||
| 74 | mv stage3/bin/zig stage3/ | ||
| 75 | rmdir stage3/bin | ||
| 76 | |||
| 77 | # Remove the unnecessary zig dir in stage3/lib/zig/std/std.zig | ||
| 78 | mv stage3/lib/zig stage3/lib2 | ||
| 79 | rmdir stage3/lib | ||
| 80 | mv stage3/lib2 stage3/lib | ||
| 81 | |||
| 82 | mv ../LICENSE stage3/ | ||
| 83 | mv ../zig-cache/langref.html stage3/doc/ | ||
| 84 | |||
| 85 | GITBRANCH=$(basename $GITHUB_REF) | ||
| 86 | VERSION=$(stage3/zig version) | ||
| 87 | DIRNAME="zig-freebsd-x86_64-$VERSION" | ||
| 88 | TARBALL="$DIRNAME.tar.xz" | ||
| 89 | mv stage3 "$DIRNAME" | ||
| 90 | tar cfJ "$TARBALL" "$DIRNAME" | ||
| 91 | |||
| 92 | s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/ | ||
| 93 | |||
| 94 | SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1) | ||
| 95 | BYTESIZE=$(wc -c < $TARBALL) | ||
| 96 | |||
| 97 | JSONFILE="freebsd-$GITBRANCH.json" | ||
| 98 | touch $JSONFILE | ||
| 99 | echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE | ||
| 100 | echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE | ||
| 101 | echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE | ||
| 102 | |||
| 103 | s3cmd put -P --add-header="Cache-Control: max-age=0, must-revalidate" "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE" | ||
| 104 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/x86_64-freebsd-$VERSION.json" | ||
| 105 | |||
| 106 | if [ "$GITBRANCH" = "master" ]; then | ||
| 107 | # avoid leaking oauth token | ||
| 108 | set +x | ||
| 109 | |||
| 110 | OAUTH_TOKEN="$(cat ~/.oauth_token)" | ||
| 111 | cd "$ZIGDIR" | ||
| 112 | ./ci/srht/on_master_success "$VERSION" "$OAUTH_TOKEN" | ||
| 113 | fi | ||
| 114 | fi | ||
ci/srht/index.json deleted-691| ... | @@ -1,691 +0,0 @@ | ||
| 1 | { | ||
| 2 | "master": { | ||
| 3 | "version": "{{MASTER_VERSION}}", | ||
| 4 | "date": "{{MASTER_DATE}}", | ||
| 5 | "docs": "https://ziglang.org/documentation/master/", | ||
| 6 | "stdDocs": "https://ziglang.org/documentation/master/std/", | ||
| 7 | "src": { | ||
| 8 | "tarball": "https://ziglang.org/builds/{{SRC_TARBALL}}", | ||
| 9 | "shasum": "{{SRC_SHASUM}}", | ||
| 10 | "size": "{{SRC_BYTESIZE}}" | ||
| 11 | }, | ||
| 12 | "x86_64-freebsd": { | ||
| 13 | "tarball": "https://ziglang.org/builds/{{X86_64_FREEBSD_TARBALL}}", | ||
| 14 | "shasum": "{{X86_64_FREEBSD_SHASUM}}", | ||
| 15 | "size": "{{X86_64_FREEBSD_BYTESIZE}}" | ||
| 16 | }, | ||
| 17 | "x86_64-macos": { | ||
| 18 | "tarball": "https://ziglang.org/builds/{{X86_64_MACOS_TARBALL}}", | ||
| 19 | "shasum": "{{X86_64_MACOS_SHASUM}}", | ||
| 20 | "size": "{{X86_64_MACOS_BYTESIZE}}" | ||
| 21 | }, | ||
| 22 | "aarch64-macos": { | ||
| 23 | "tarball": "https://ziglang.org/builds/{{AARCH64_MACOS_TARBALL}}", | ||
| 24 | "shasum": "{{AARCH64_MACOS_SHASUM}}", | ||
| 25 | "size": "{{AARCH64_MACOS_BYTESIZE}}" | ||
| 26 | }, | ||
| 27 | "x86_64-windows": { | ||
| 28 | "tarball": "https://ziglang.org/builds/{{X86_64_WINDOWS_TARBALL}}", | ||
| 29 | "shasum": "{{X86_64_WINDOWS_SHASUM}}", | ||
| 30 | "size": "{{X86_64_WINDOWS_BYTESIZE}}" | ||
| 31 | }, | ||
| 32 | "x86_64-linux": { | ||
| 33 | "tarball": "https://ziglang.org/builds/{{X86_64_LINUX_TARBALL}}", | ||
| 34 | "shasum": "{{X86_64_LINUX_SHASUM}}", | ||
| 35 | "size": "{{X86_64_LINUX_BYTESIZE}}" | ||
| 36 | } | ||
| 37 | }, | ||
| 38 | "0.10.0": { | ||
| 39 | "date": "2022-10-31", | ||
| 40 | "docs": "https://ziglang.org/documentation/0.10.0/", | ||
| 41 | "stdDocs": "https://ziglang.org/documentation/0.10.0/std/", | ||
| 42 | "notes": "https://ziglang.org/download/0.10.0/release-notes.html", | ||
| 43 | "src": { | ||
| 44 | "tarball": "https://ziglang.org/download/0.10.0/zig-0.10.0.tar.xz", | ||
| 45 | "shasum": "d8409f7aafc624770dcd050c8fa7e62578be8e6a10956bca3c86e8531c64c136", | ||
| 46 | "size": "14530912" | ||
| 47 | }, | ||
| 48 | "bootstrap": { | ||
| 49 | "tarball": "https://ziglang.org/download/0.10.0/zig-bootstrap-0.10.0.tar.xz", | ||
| 50 | "shasum": "c13dc70c4ff4c09f749adc0d473cbd3942991dd4d1bd2d860fbf257d8c1bbabf", | ||
| 51 | "size": "45625516" | ||
| 52 | }, | ||
| 53 | "x86_64-freebsd": { | ||
| 54 | "tarball": "https://ziglang.org/download/0.10.0/zig-freebsd-x86_64-0.10.0.tar.xz", | ||
| 55 | "shasum": "dd77afa2a8676afbf39f7d6068eda81b0723afd728642adaac43cb2106253d65", | ||
| 56 | "size": "44056504" | ||
| 57 | }, | ||
| 58 | "aarch64-linux": { | ||
| 59 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-aarch64-0.10.0.tar.xz", | ||
| 60 | "shasum": "09ef50c8be73380799804169197820ee78760723b0430fa823f56ed42b06ea0f", | ||
| 61 | "size": "40387688" | ||
| 62 | }, | ||
| 63 | "armv7a-linux": { | ||
| 64 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-armv7a-0.10.0.tar.xz", | ||
| 65 | "shasum": "7201b2e89cd7cc2dde95d39485fd7d5641ba67dc6a9a58c036cb4c308d2e82de", | ||
| 66 | "size": "50805936" | ||
| 67 | }, | ||
| 68 | "i386-linux": { | ||
| 69 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-i386-0.10.0.tar.xz", | ||
| 70 | "shasum": "dac8134f1328c50269f3e50b334298ec7916cb3b0ef76927703ddd1c96fd0115", | ||
| 71 | "size": "48451732" | ||
| 72 | }, | ||
| 73 | "riscv64-linux": { | ||
| 74 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-riscv64-0.10.0.tar.xz", | ||
| 75 | "shasum": "2a126f3401a7a7efc4b454f0a85c133db1af5a9dfee117f172213b7cbd47bfba", | ||
| 76 | "size": "42272968" | ||
| 77 | }, | ||
| 78 | "x86_64-linux": { | ||
| 79 | "tarball": "https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz", | ||
| 80 | "shasum": "631ec7bcb649cd6795abe40df044d2473b59b44e10be689c15632a0458ddea55", | ||
| 81 | "size": "44142400" | ||
| 82 | }, | ||
| 83 | "aarch64-macos": { | ||
| 84 | "tarball": "https://ziglang.org/download/0.10.0/zig-macos-aarch64-0.10.0.tar.xz", | ||
| 85 | "shasum": "02f7a7839b6a1e127eeae22ea72c87603fb7298c58bc35822a951479d53c7557", | ||
| 86 | "size": "40602664" | ||
| 87 | }, | ||
| 88 | "x86_64-macos": { | ||
| 89 | "tarball": "https://ziglang.org/download/0.10.0/zig-macos-x86_64-0.10.0.tar.xz", | ||
| 90 | "shasum": "3a22cb6c4749884156a94ea9b60f3a28cf4e098a69f08c18fbca81c733ebfeda", | ||
| 91 | "size": "45175104" | ||
| 92 | }, | ||
| 93 | "x86_64-windows": { | ||
| 94 | "tarball": "https://ziglang.org/download/0.10.0/zig-windows-x86_64-0.10.0.zip", | ||
| 95 | "shasum": "a66e2ff555c6e48781de1bcb0662ef28ee4b88af3af2a577f7b1950e430897ee", | ||
| 96 | "size": "73181558" | ||
| 97 | }, | ||
| 98 | "aarch64-windows": { | ||
| 99 | "tarball": "https://ziglang.org/download/0.10.0/zig-windows-aarch64-0.10.0.zip", | ||
| 100 | "shasum": "1bbda8d123d44f3ae4fa90d0da04b1e9093c3f9ddae3429a4abece1e1c0bf19a", | ||
| 101 | "size": "69332389" | ||
| 102 | } | ||
| 103 | }, | ||
| 104 | "0.9.1": { | ||
| 105 | "date": "2022-02-14", | ||
| 106 | "docs": "https://ziglang.org/documentation/0.9.1/", | ||
| 107 | "stdDocs": "https://ziglang.org/documentation/0.9.1/std/", | ||
| 108 | "notes": "https://ziglang.org/download/0.9.1/release-notes.html", | ||
| 109 | "src": { | ||
| 110 | "tarball": "https://ziglang.org/download/0.9.1/zig-0.9.1.tar.xz", | ||
| 111 | "shasum": "38cf4e84481f5facc766ba72783e7462e08d6d29a5d47e3b75c8ee3142485210", | ||
| 112 | "size": "13940828" | ||
| 113 | }, | ||
| 114 | "bootstrap": { | ||
| 115 | "tarball": "https://ziglang.org/download/0.9.1/zig-bootstrap-0.9.1.tar.xz", | ||
| 116 | "shasum": "0a8e221c71860d8975c15662b3ed3bd863e81c4fe383455a596e5e0e490d6109", | ||
| 117 | "size": "42488812" | ||
| 118 | }, | ||
| 119 | "x86_64-freebsd": { | ||
| 120 | "tarball": "https://ziglang.org/download/0.9.1/zig-freebsd-x86_64-0.9.1.tar.xz", | ||
| 121 | "shasum": "4e06009bd3ede34b72757eec1b5b291b30aa0d5046dadd16ecb6b34a02411254", | ||
| 122 | "size": "39028848" | ||
| 123 | }, | ||
| 124 | "aarch64-linux": { | ||
| 125 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-aarch64-0.9.1.tar.xz", | ||
| 126 | "shasum": "5d99a39cded1870a3fa95d4de4ce68ac2610cca440336cfd252ffdddc2b90e66", | ||
| 127 | "size": "37034860" | ||
| 128 | }, | ||
| 129 | "armv7a-linux": { | ||
| 130 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-armv7a-0.9.1.tar.xz", | ||
| 131 | "shasum": "6de64456cb4757a555816611ea697f86fba7681d8da3e1863fa726a417de49be", | ||
| 132 | "size": "37974652" | ||
| 133 | }, | ||
| 134 | "i386-linux": { | ||
| 135 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-i386-0.9.1.tar.xz", | ||
| 136 | "shasum": "e776844fecd2e62fc40d94718891057a1dbca1816ff6013369e9a38c874374ca", | ||
| 137 | "size": "44969172" | ||
| 138 | }, | ||
| 139 | "riscv64-linux": { | ||
| 140 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-riscv64-0.9.1.tar.xz", | ||
| 141 | "shasum": "208dea53662c2c52777bd9e3076115d2126a4f71aed7f2ff3b8fe224dc3881aa", | ||
| 142 | "size": "39390868" | ||
| 143 | }, | ||
| 144 | "x86_64-linux": { | ||
| 145 | "tarball": "https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz", | ||
| 146 | "shasum": "be8da632c1d3273f766b69244d80669fe4f5e27798654681d77c992f17c237d7", | ||
| 147 | "size": "41011464" | ||
| 148 | }, | ||
| 149 | "aarch64-macos": { | ||
| 150 | "tarball": "https://ziglang.org/download/0.9.1/zig-macos-aarch64-0.9.1.tar.xz", | ||
| 151 | "shasum": "8c473082b4f0f819f1da05de2dbd0c1e891dff7d85d2c12b6ee876887d438287", | ||
| 152 | "size": "38995640" | ||
| 153 | }, | ||
| 154 | "x86_64-macos": { | ||
| 155 | "tarball": "https://ziglang.org/download/0.9.1/zig-macos-x86_64-0.9.1.tar.xz", | ||
| 156 | "shasum": "2d94984972d67292b55c1eb1c00de46580e9916575d083003546e9a01166754c", | ||
| 157 | "size": "43713044" | ||
| 158 | }, | ||
| 159 | "i386-windows": { | ||
| 160 | "tarball": "https://ziglang.org/download/0.9.1/zig-windows-i386-0.9.1.zip", | ||
| 161 | "shasum": "74a640ed459914b96bcc572183a8db687bed0af08c30d2ea2f8eba03ae930f69", | ||
| 162 | "size": "67929868" | ||
| 163 | }, | ||
| 164 | "x86_64-windows": { | ||
| 165 | "tarball": "https://ziglang.org/download/0.9.1/zig-windows-x86_64-0.9.1.zip", | ||
| 166 | "shasum": "443da53387d6ae8ba6bac4b3b90e9fef4ecbe545e1c5fa3a89485c36f5c0e3a2", | ||
| 167 | "size": "65047697" | ||
| 168 | }, | ||
| 169 | "aarch64-windows": { | ||
| 170 | "tarball": "https://ziglang.org/download/0.9.1/zig-windows-aarch64-0.9.1.zip", | ||
| 171 | "shasum": "621bf95f54dc3ff71466c5faae67479419951d7489e40e87fd26d195825fb842", | ||
| 172 | "size": "61478151" | ||
| 173 | } | ||
| 174 | }, | ||
| 175 | "0.9.0": { | ||
| 176 | "date": "2021-12-20", | ||
| 177 | "docs": "https://ziglang.org/documentation/0.9.0/", | ||
| 178 | "stdDocs": "https://ziglang.org/documentation/0.9.0/std/", | ||
| 179 | "notes": "https://ziglang.org/download/0.9.0/release-notes.html", | ||
| 180 | "src": { | ||
| 181 | "tarball": "https://ziglang.org/download/0.9.0/zig-0.9.0.tar.xz", | ||
| 182 | "shasum": "cd1be83b12f8269cc5965e59877b49fdd8fa638efb6995ac61eb4cea36a2e381", | ||
| 183 | "size": "13928772" | ||
| 184 | }, | ||
| 185 | "bootstrap": { | ||
| 186 | "tarball": "https://ziglang.org/download/0.9.0/zig-bootstrap-0.9.0.tar.xz", | ||
| 187 | "shasum": "16b0bdf0bc0a5ed1e0950e08481413d806192e06443a512347526647b2baeabc", | ||
| 188 | "size": "42557736" | ||
| 189 | }, | ||
| 190 | "x86_64-freebsd": { | ||
| 191 | "tarball": "https://ziglang.org/download/0.9.0/zig-freebsd-x86_64-0.9.0.tar.xz", | ||
| 192 | "shasum": "c95afe679b7cc4110dc2ecd3606c83a699718b7a958d6627f74c20886333e194", | ||
| 193 | "size": "41293236" | ||
| 194 | }, | ||
| 195 | "aarch64-linux": { | ||
| 196 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-aarch64-0.9.0.tar.xz", | ||
| 197 | "shasum": "1524fedfdbade2dbc9bae1ed98ad38fa7f2114c9a3e94da0d652573c75efbc5a", | ||
| 198 | "size": "40008396" | ||
| 199 | }, | ||
| 200 | "armv7a-linux": { | ||
| 201 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-armv7a-0.9.0.tar.xz", | ||
| 202 | "shasum": "50225dee6e6448a63ee96383a34d9fe3bba34ae8da1a0c8619bde2cdfc1df87d", | ||
| 203 | "size": "41196876" | ||
| 204 | }, | ||
| 205 | "i386-linux": { | ||
| 206 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-i386-0.9.0.tar.xz", | ||
| 207 | "shasum": "b0dcf688349268c883292acdd55eaa3c13d73b9146e4b990fad95b84a2ac528b", | ||
| 208 | "size": "47408656" | ||
| 209 | }, | ||
| 210 | "riscv64-linux": { | ||
| 211 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-riscv64-0.9.0.tar.xz", | ||
| 212 | "shasum": "85466de07504767ed37f59782672ad41bbdf43d6480fafd07f45543278b07620", | ||
| 213 | "size": "44171420" | ||
| 214 | }, | ||
| 215 | "x86_64-linux": { | ||
| 216 | "tarball": "https://ziglang.org/download/0.9.0/zig-linux-x86_64-0.9.0.tar.xz", | ||
| 217 | "shasum": "5c55344a877d557fb1b28939785474eb7f4f2f327aab55293998f501f7869fa6", | ||
| 218 | "size": "43420796" | ||
| 219 | }, | ||
| 220 | "aarch64-macos": { | ||
| 221 | "tarball": "https://ziglang.org/download/0.9.0/zig-macos-aarch64-0.9.0.tar.xz", | ||
| 222 | "shasum": "3991c70594d61d09fb4b316157a7c1d87b1d4ec159e7a5ecd11169ff74cad832", | ||
| 223 | "size": "39013392" | ||
| 224 | }, | ||
| 225 | "x86_64-macos": { | ||
| 226 | "tarball": "https://ziglang.org/download/0.9.0/zig-macos-x86_64-0.9.0.tar.xz", | ||
| 227 | "shasum": "c5280eeec4d6e5ea5ce5b448dc9a7c4bdd85ecfed4c1b96aa0835e48b36eccf0", | ||
| 228 | "size": "43764596" | ||
| 229 | }, | ||
| 230 | "i386-windows": { | ||
| 231 | "tarball": "https://ziglang.org/download/0.9.0/zig-windows-i386-0.9.0.zip", | ||
| 232 | "shasum": "bb839434afc75092015cf4c33319d31463c18512bc01dd719aedf5dcbc368466", | ||
| 233 | "size": "67946715" | ||
| 234 | }, | ||
| 235 | "x86_64-windows": { | ||
| 236 | "tarball": "https://ziglang.org/download/0.9.0/zig-windows-x86_64-0.9.0.zip", | ||
| 237 | "shasum": "084ea2646850aaf068234b0f1a92b914ed629be47075e835f8a67d55c21d880e", | ||
| 238 | "size": "65045849" | ||
| 239 | }, | ||
| 240 | "aarch64-windows": { | ||
| 241 | "tarball": "https://ziglang.org/download/0.9.0/zig-windows-aarch64-0.9.0.zip", | ||
| 242 | "shasum": "f9018725e3fb2e8992b17c67034726971156eb190685018a9ac8c3a9f7a22340", | ||
| 243 | "size": "61461921" | ||
| 244 | } | ||
| 245 | }, | ||
| 246 | "0.8.1": { | ||
| 247 | "date": "2021-09-06", | ||
| 248 | "docs": "https://ziglang.org/documentation/0.8.1/", | ||
| 249 | "stdDocs": "https://ziglang.org/documentation/0.8.1/std/", | ||
| 250 | "notes": "https://ziglang.org/download/0.8.1/release-notes.html", | ||
| 251 | "src": { | ||
| 252 | "tarball": "https://ziglang.org/download/0.8.1/zig-0.8.1.tar.xz", | ||
| 253 | "shasum": "8c428e14a0a89cb7a15a6768424a37442292858cdb695e2eb503fa3c7bf47f1a", | ||
| 254 | "size": "12650228" | ||
| 255 | }, | ||
| 256 | "bootstrap": { | ||
| 257 | "tarball": "https://ziglang.org/download/0.8.1/zig-bootstrap-0.8.1.tar.xz", | ||
| 258 | "shasum": "fa1239247f830ecd51c42537043f5220e4d1dfefdc54356fa419616a0efb3902", | ||
| 259 | "size": "43613464" | ||
| 260 | }, | ||
| 261 | "x86_64-freebsd": { | ||
| 262 | "tarball": "https://ziglang.org/download/0.8.1/zig-freebsd-x86_64-0.8.1.tar.xz", | ||
| 263 | "shasum": "fc4f6478bcf3a9fce1b8ef677a91694f476dd35be6d6c9c4f44a8b76eedbe176", | ||
| 264 | "size": "39150924" | ||
| 265 | }, | ||
| 266 | "aarch64-linux": { | ||
| 267 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-aarch64-0.8.1.tar.xz", | ||
| 268 | "shasum": "2166dc9f2d8df387e8b4122883bb979d739281e1ff3f3d5483fec3a23b957510", | ||
| 269 | "size": "37605932" | ||
| 270 | }, | ||
| 271 | "armv7a-linux": { | ||
| 272 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-armv7a-0.8.1.tar.xz", | ||
| 273 | "shasum": "5ba58141805e2519f38cf8e715933cbf059f4f3dade92c71838cce341045de05", | ||
| 274 | "size": "39185876" | ||
| 275 | }, | ||
| 276 | "i386-linux": { | ||
| 277 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-i386-0.8.1.tar.xz", | ||
| 278 | "shasum": "2f3e84f30492b5f1c5f97cecc0166f07a8a8d50c5f85dbb3a6ef2a4ee6f915e6", | ||
| 279 | "size": "44782932" | ||
| 280 | }, | ||
| 281 | "riscv64-linux": { | ||
| 282 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-riscv64-0.8.1.tar.xz", | ||
| 283 | "shasum": "4adfaf147b025917c03367462fe5018aaa9edbc6439ef9cd0da2b074ae960554", | ||
| 284 | "size": "41234480" | ||
| 285 | }, | ||
| 286 | "x86_64-linux": { | ||
| 287 | "tarball": "https://ziglang.org/download/0.8.1/zig-linux-x86_64-0.8.1.tar.xz", | ||
| 288 | "shasum": "6c032fc61b5d77a3f3cf781730fa549f8f059ffdb3b3f6ad1c2994d2b2d87983", | ||
| 289 | "size": "41250060" | ||
| 290 | }, | ||
| 291 | "aarch64-macos": { | ||
| 292 | "tarball": "https://ziglang.org/download/0.8.1/zig-macos-aarch64-0.8.1.tar.xz", | ||
| 293 | "shasum": "5351297e3b8408213514b29c0a938002c5cf9f97eee28c2f32920e1227fd8423", | ||
| 294 | "size": "35340712" | ||
| 295 | }, | ||
| 296 | "x86_64-macos": { | ||
| 297 | "tarball": "https://ziglang.org/download/0.8.1/zig-macos-x86_64-0.8.1.tar.xz", | ||
| 298 | "shasum": "16b0e1defe4c1807f2e128f72863124bffdd906cefb21043c34b673bf85cd57f", | ||
| 299 | "size": "39946200" | ||
| 300 | }, | ||
| 301 | "i386-windows": { | ||
| 302 | "tarball": "https://ziglang.org/download/0.8.1/zig-windows-i386-0.8.1.zip", | ||
| 303 | "shasum": "099605051eb0452a947c8eab8fbbc7e43833c8376d267e94e41131c289a1c535", | ||
| 304 | "size": "64152358" | ||
| 305 | }, | ||
| 306 | "x86_64-windows": { | ||
| 307 | "tarball": "https://ziglang.org/download/0.8.1/zig-windows-x86_64-0.8.1.zip", | ||
| 308 | "shasum": "43573db14cd238f7111d6bdf37492d363f11ecd1eba802567a172f277d003926", | ||
| 309 | "size": "61897838" | ||
| 310 | } | ||
| 311 | }, | ||
| 312 | "0.8.0": { | ||
| 313 | "date": "2021-06-04", | ||
| 314 | "docs": "https://ziglang.org/documentation/0.8.0/", | ||
| 315 | "stdDocs": "https://ziglang.org/documentation/0.8.0/std/", | ||
| 316 | "notes": "https://ziglang.org/download/0.8.0/release-notes.html", | ||
| 317 | "src": { | ||
| 318 | "tarball": "https://ziglang.org/download/0.8.0/zig-0.8.0.tar.xz", | ||
| 319 | "shasum": "03a828d00c06b2e3bb8b7ff706997fd76bf32503b08d759756155b6e8c981e77", | ||
| 320 | "size": "12614896" | ||
| 321 | }, | ||
| 322 | "bootstrap": { | ||
| 323 | "tarball": "https://ziglang.org/download/0.8.0/zig-bootstrap-0.8.0.tar.xz", | ||
| 324 | "shasum": "10600bc9c01f92e343f40d6ecc0ad05d67d27c3e382bce75524c0639cd8ca178", | ||
| 325 | "size": "43574248" | ||
| 326 | }, | ||
| 327 | "x86_64-freebsd": { | ||
| 328 | "tarball": "https://ziglang.org/download/0.8.0/zig-freebsd-x86_64-0.8.0.tar.xz", | ||
| 329 | "shasum": "0d3ccc436c8c0f50fd55462f72f8492d98723c7218ffc2a8a1831967d81b4bdc", | ||
| 330 | "size": "39125332" | ||
| 331 | }, | ||
| 332 | "aarch64-linux": { | ||
| 333 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-aarch64-0.8.0.tar.xz", | ||
| 334 | "shasum": "ee204ca2c2037952cf3f8b10c609373a08a291efa4af7b3c73be0f2b27720470", | ||
| 335 | "size": "37575428" | ||
| 336 | }, | ||
| 337 | "armv7a-linux": { | ||
| 338 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-armv7a-0.8.0.tar.xz", | ||
| 339 | "shasum": "d00b8bd97b79f45d6f5da956983bafeaa082e6c2ae8c6e1c6d4faa22fa29b320", | ||
| 340 | "size": "38884212" | ||
| 341 | }, | ||
| 342 | "i386-linux": { | ||
| 343 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-i386-0.8.0.tar.xz", | ||
| 344 | "shasum": "96e43ee6ed81c3c63401f456bd1c58ee6d42373a43cb324f5cf4974ca0998865", | ||
| 345 | "size": "42136032" | ||
| 346 | }, | ||
| 347 | "riscv64-linux": { | ||
| 348 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-riscv64-0.8.0.tar.xz", | ||
| 349 | "shasum": "75997527a78cdab64c40c43d9df39c01c4cdb557bb3992a869838371a204cfea", | ||
| 350 | "size": "40016268" | ||
| 351 | }, | ||
| 352 | "x86_64-linux": { | ||
| 353 | "tarball": "https://ziglang.org/download/0.8.0/zig-linux-x86_64-0.8.0.tar.xz", | ||
| 354 | "shasum": "502625d3da3ae595c5f44a809a87714320b7a40e6dff4a895b5fa7df3391d01e", | ||
| 355 | "size": "41211184" | ||
| 356 | }, | ||
| 357 | "aarch64-macos": { | ||
| 358 | "tarball": "https://ziglang.org/download/0.8.0/zig-macos-aarch64-0.8.0.tar.xz", | ||
| 359 | "shasum": "b32d13f66d0e1ff740b3326d66a469ee6baddbd7211fa111c066d3bd57683111", | ||
| 360 | "size": "35292180" | ||
| 361 | }, | ||
| 362 | "x86_64-macos": { | ||
| 363 | "tarball": "https://ziglang.org/download/0.8.0/zig-macos-x86_64-0.8.0.tar.xz", | ||
| 364 | "shasum": "279f9360b5cb23103f0395dc4d3d0d30626e699b1b4be55e98fd985b62bc6fbe", | ||
| 365 | "size": "39969312" | ||
| 366 | }, | ||
| 367 | "i386-windows": { | ||
| 368 | "tarball": "https://ziglang.org/download/0.8.0/zig-windows-i386-0.8.0.zip", | ||
| 369 | "shasum": "b6ec9aa6cd6f3872fcb30d43ff411802d82008a0c4142ee49e208a09b2c1c5fe", | ||
| 370 | "size": "61507213" | ||
| 371 | }, | ||
| 372 | "x86_64-windows": { | ||
| 373 | "tarball": "https://ziglang.org/download/0.8.0/zig-windows-x86_64-0.8.0.zip", | ||
| 374 | "shasum": "8580fbbf3afb72e9b495c7f8aeac752a03475ae0bbcf5d787f3775c7e1f4f807", | ||
| 375 | "size": "61766193" | ||
| 376 | } | ||
| 377 | }, | ||
| 378 | "0.7.1": { | ||
| 379 | "date": "2020-12-13", | ||
| 380 | "docs": "https://ziglang.org/documentation/0.7.1/", | ||
| 381 | "stdDocs": "https://ziglang.org/documentation/0.7.1/std/", | ||
| 382 | "notes": "https://ziglang.org/download/0.7.1/release-notes.html", | ||
| 383 | "src": { | ||
| 384 | "tarball": "https://ziglang.org/download/0.7.1/zig-0.7.1.tar.xz", | ||
| 385 | "shasum": "2db3b944ab368d955b48743d9f7c963b8f96de1a441ba5a35e197237cc6dae44", | ||
| 386 | "size": "10711824" | ||
| 387 | }, | ||
| 388 | "bootstrap": { | ||
| 389 | "tarball": "https://ziglang.org/download/0.7.1/zig-bootstrap-0.7.1.tar.xz", | ||
| 390 | "shasum": "040f27c1fae4b0cac0a2782aecdb691f6a2f8e89db6a6ed35024c31c304fd9b2", | ||
| 391 | "size": "40232612" | ||
| 392 | }, | ||
| 393 | "x86_64-freebsd": { | ||
| 394 | "tarball": "https://ziglang.org/download/0.7.1/zig-freebsd-x86_64-0.7.1.tar.xz", | ||
| 395 | "shasum": "e73c1dca35791a3183fdd5ecde0443ebbe180942efceafe651886034fb8def09", | ||
| 396 | "size": "39066808" | ||
| 397 | }, | ||
| 398 | "aarch64-linux": { | ||
| 399 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-aarch64-0.7.1.tar.xz", | ||
| 400 | "shasum": "48ec90eba407e4587ddef7eecef25fec7e13587eb98e3b83c5f2f5fff2a5cbe7", | ||
| 401 | "size": "33780552" | ||
| 402 | }, | ||
| 403 | "armv7a-linux": { | ||
| 404 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-armv7a-0.7.1.tar.xz", | ||
| 405 | "shasum": "5a0662e07b4c4968665e1f97558f8591f6facec45d2e0ff5715e661743107ceb", | ||
| 406 | "size": "35813504" | ||
| 407 | }, | ||
| 408 | "i386-linux": { | ||
| 409 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-i386-0.7.1.tar.xz", | ||
| 410 | "shasum": "4882e052e5f83690bd0334bb4fc1702b5403cb3a3d2aa63fd7d6043d8afecba3", | ||
| 411 | "size": "39230912" | ||
| 412 | }, | ||
| 413 | "riscv64-linux": { | ||
| 414 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-riscv64-0.7.1.tar.xz", | ||
| 415 | "shasum": "187294bfd35983348c3fe042901b42e67e7e36ab7f77a5f969d21c0051f4d21f", | ||
| 416 | "size": "37454812" | ||
| 417 | }, | ||
| 418 | "x86_64-linux": { | ||
| 419 | "tarball": "https://ziglang.org/download/0.7.1/zig-linux-x86_64-0.7.1.tar.xz", | ||
| 420 | "shasum": "18c7b9b200600f8bcde1cd8d7f1f578cbc3676241ce36d771937ce19a8159b8d", | ||
| 421 | "size": "37848176" | ||
| 422 | }, | ||
| 423 | "x86_64-macos": { | ||
| 424 | "tarball": "https://ziglang.org/download/0.7.1/zig-macos-x86_64-0.7.1.tar.xz", | ||
| 425 | "shasum": "845cb17562978af0cf67e3993f4e33330525eaf01ead9386df9105111e3bc519", | ||
| 426 | "size": "36211076" | ||
| 427 | }, | ||
| 428 | "i386-windows": { | ||
| 429 | "tarball": "https://ziglang.org/download/0.7.1/zig-windows-i386-0.7.1.zip", | ||
| 430 | "shasum": "a1b9a7421e13153e07fd2e2c93ff29aad64d83105b8fcdafa633dbe689caf1c0", | ||
| 431 | "size": "54374983" | ||
| 432 | }, | ||
| 433 | "x86_64-windows": { | ||
| 434 | "tarball": "https://ziglang.org/download/0.7.1/zig-windows-x86_64-0.7.1.zip", | ||
| 435 | "shasum": "4818a8a65b4672bc52c0ae7f14d014e0eb8caf10f12c0745176820384cea296a", | ||
| 436 | "size": "54909997" | ||
| 437 | } | ||
| 438 | }, | ||
| 439 | "0.7.0": { | ||
| 440 | "date": "2020-11-08", | ||
| 441 | "docs": "https://ziglang.org/documentation/0.7.0/", | ||
| 442 | "stdDocs": "https://ziglang.org/documentation/0.7.0/std/", | ||
| 443 | "notes": "https://ziglang.org/download/0.7.0/release-notes.html", | ||
| 444 | "src": { | ||
| 445 | "tarball": "https://ziglang.org/download/0.7.0/zig-0.7.0.tar.xz", | ||
| 446 | "shasum": "0efd2cf6c3b05723db80e9cf193bc55150bba84ca41f855a90f53fc756445f83", | ||
| 447 | "size": "10683920" | ||
| 448 | }, | ||
| 449 | "bootstrap": { | ||
| 450 | "tarball": "https://ziglang.org/download/0.7.0/zig-bootstrap-0.7.0.tar.xz", | ||
| 451 | "shasum": "f073beaf5c53c8c57c0d374cbfcb332ef92ad703173edba0d9e0f2ed28401b72", | ||
| 452 | "size": "40200436" | ||
| 453 | }, | ||
| 454 | "x86_64-freebsd": { | ||
| 455 | "tarball": "https://ziglang.org/download/0.7.0/zig-freebsd-x86_64-0.7.0.tar.xz", | ||
| 456 | "shasum": "a0c926272ee4ae720034b4a6a1dc98399d76156dd84182554740f0ca8a41fc99", | ||
| 457 | "size": "34798992" | ||
| 458 | }, | ||
| 459 | "aarch64-linux": { | ||
| 460 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-aarch64-0.7.0.tar.xz", | ||
| 461 | "shasum": "f89933bac87d44be82325754ff88423020c81c7032a6fc41cfeb81e982eeab9b", | ||
| 462 | "size": "33096140" | ||
| 463 | }, | ||
| 464 | "armv7a-linux": { | ||
| 465 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-armv7a-0.7.0.tar.xz", | ||
| 466 | "shasum": "011c267e25a96ee160505a560c441daa045359a9d50e13ab1bada9d75c95db2d", | ||
| 467 | "size": "35157584" | ||
| 468 | }, | ||
| 469 | "i386-linux": { | ||
| 470 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-i386-0.7.0.tar.xz", | ||
| 471 | "shasum": "4bb2072cd363bcb1cbeb4872ff5cbc1f683b02d0cc1f90c46e3ea7422ce53222", | ||
| 472 | "size": "38530596" | ||
| 473 | }, | ||
| 474 | "riscv64-linux": { | ||
| 475 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-riscv64-0.7.0.tar.xz", | ||
| 476 | "shasum": "40dff81faa6f232ac40abbf88b9371f3cc932b6e09c423b94387c9ea580cb7be", | ||
| 477 | "size": "36759992" | ||
| 478 | }, | ||
| 479 | "x86_64-linux": { | ||
| 480 | "tarball": "https://ziglang.org/download/0.7.0/zig-linux-x86_64-0.7.0.tar.xz", | ||
| 481 | "shasum": "e619b1c6094c095b932767f527aee2507f847ea981513ff8a08aab0fd730e0ac", | ||
| 482 | "size": "37154432" | ||
| 483 | }, | ||
| 484 | "aarch64-macos": { | ||
| 485 | "tarball": "https://ziglang.org/download/0.7.0/zig-macos-aarch64-0.7.0.tar.xz", | ||
| 486 | "shasum": "338238035734db74ea4f30e500a4893bf741d38305c10952d5e39fa05bdb057d", | ||
| 487 | "size": "33739424" | ||
| 488 | }, | ||
| 489 | "x86_64-macos": { | ||
| 490 | "tarball": "https://ziglang.org/download/0.7.0/zig-macos-x86_64-0.7.0.tar.xz", | ||
| 491 | "shasum": "94063f9a311cbbf7a2e0a12295e09437182cf950f18cb0eb30ea9893f3677f24", | ||
| 492 | "size": "35258328" | ||
| 493 | }, | ||
| 494 | "i386-windows": { | ||
| 495 | "tarball": "https://ziglang.org/download/0.7.0/zig-windows-i386-0.7.0.zip", | ||
| 496 | "shasum": "b1e520aacbfbd645ff3521b3eb4d44166d9a0288b8725e4b001f8b50a425eb2e", | ||
| 497 | "size": "53390517" | ||
| 498 | }, | ||
| 499 | "x86_64-windows": { | ||
| 500 | "tarball": "https://ziglang.org/download/0.7.0/zig-windows-x86_64-0.7.0.zip", | ||
| 501 | "shasum": "965f56c0a36f9cda2125e3a348bc654f7f155e2804c3667d231775ec228f8553", | ||
| 502 | "size": "53943784" | ||
| 503 | } | ||
| 504 | }, | ||
| 505 | "0.6.0": { | ||
| 506 | "date": "2020-04-13", | ||
| 507 | "docs": "https://ziglang.org/documentation/0.6.0/", | ||
| 508 | "stdDocs": "https://ziglang.org/documentation/0.6.0/std/", | ||
| 509 | "notes": "https://ziglang.org/download/0.6.0/release-notes.html", | ||
| 510 | "src": { | ||
| 511 | "tarball": "https://ziglang.org/download/0.6.0/zig-0.6.0.tar.xz", | ||
| 512 | "shasum": "5d167dc19354282dd35dd17b38e99e1763713b9be8a4ba9e9e69284e059e7204", | ||
| 513 | "size": "10349552" | ||
| 514 | }, | ||
| 515 | "bootstrap": { | ||
| 516 | "tarball": "https://ziglang.org/download/0.6.0/zig-bootstrap-0.6.0.tar.xz", | ||
| 517 | "shasum": "5e0e4dc878b3dd0c1852a442b174f0732e8c07869a8fcd226b71a93b89b381ab", | ||
| 518 | "size": "38469948" | ||
| 519 | }, | ||
| 520 | "x86_64-freebsd": { | ||
| 521 | "tarball": "https://ziglang.org/download/0.6.0/zig-freebsd-x86_64-0.6.0.tar.xz", | ||
| 522 | "shasum": "190ff79c1eb56805a315d7c7a51082e32f62926250c0702b36760c225e1634a3", | ||
| 523 | "size": "36974604" | ||
| 524 | }, | ||
| 525 | "aarch64-linux": { | ||
| 526 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-aarch64-0.6.0.tar.xz", | ||
| 527 | "shasum": "e7520efd42cfa02be48c2e430d08fe1f3cbb999d21d9f0d3ffd0febb976b2f41", | ||
| 528 | "size": "37090044" | ||
| 529 | }, | ||
| 530 | "armv6kz-linux": { | ||
| 531 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv6kz-0.6.0.tar.xz", | ||
| 532 | "shasum": "36b6493b3fed43eb1f0000e765798ad31a6bb7d7fd3f553ac1c3761dbc919b82", | ||
| 533 | "size": "39133452" | ||
| 534 | }, | ||
| 535 | "armv7a-linux": { | ||
| 536 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv7a-0.6.0.tar.xz", | ||
| 537 | "shasum": "946969abe357def95ca9cbbfcebfcf2d90cf967bcd3f48ee87662e32d91d8f35", | ||
| 538 | "size": "39143748" | ||
| 539 | }, | ||
| 540 | "i386-linux": { | ||
| 541 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-i386-0.6.0.tar.xz", | ||
| 542 | "shasum": "a97a2f9ae21575743cdd763c1917d49400d83fc562ef64582b18bade43eb24ce", | ||
| 543 | "size": "44877640" | ||
| 544 | }, | ||
| 545 | "riscv64-linux": { | ||
| 546 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-riscv64-0.6.0.tar.xz", | ||
| 547 | "shasum": "68ddee43f7503c8ae5f26a921f3602c34719a02ed2241f528c0b8b888cc14b38", | ||
| 548 | "size": "41993144" | ||
| 549 | }, | ||
| 550 | "x86_64-linux": { | ||
| 551 | "tarball": "https://ziglang.org/download/0.6.0/zig-linux-x86_64-0.6.0.tar.xz", | ||
| 552 | "shasum": "08fd3c757963630645441c2772362e9c2294020c44f14fce1b89f45de0dc1253", | ||
| 553 | "size": "44766320" | ||
| 554 | }, | ||
| 555 | "x86_64-macos": { | ||
| 556 | "tarball": "https://ziglang.org/download/0.6.0/zig-macos-x86_64-0.6.0.tar.xz", | ||
| 557 | "shasum": "17270360e87ddc49f737e760047b2fac49f1570a824a306119b1194ac4093895", | ||
| 558 | "size": "42573184" | ||
| 559 | }, | ||
| 560 | "i386-windows": { | ||
| 561 | "tarball": "https://ziglang.org/download/0.6.0/zig-windows-i386-0.6.0.zip", | ||
| 562 | "shasum": "3b0a02618743e92175990dc6d1a787bb95ff62c4cda016f1c14c7786f575f8ca", | ||
| 563 | "size": "60446431" | ||
| 564 | }, | ||
| 565 | "x86_64-windows": { | ||
| 566 | "tarball": "https://ziglang.org/download/0.6.0/zig-windows-x86_64-0.6.0.zip", | ||
| 567 | "shasum": "c3b897832523e1026e10b2d8d55d7f895185c0a27a63681f3a23219c3f1c38f4", | ||
| 568 | "size": "49065511" | ||
| 569 | } | ||
| 570 | }, | ||
| 571 | "0.5.0": { | ||
| 572 | "date": "2019-09-30", | ||
| 573 | "docs": "https://ziglang.org/documentation/0.5.0/", | ||
| 574 | "notes": "https://ziglang.org/download/0.5.0/release-notes.html", | ||
| 575 | "src": { | ||
| 576 | "tarball": "https://ziglang.org/download/0.5.0/zig-0.5.0.tar.xz", | ||
| 577 | "shasum": "55ae16960f152bcb9cf98b4f8570902d0e559a141abf927f0d3555b7cc838a31", | ||
| 578 | "size": "10956132" | ||
| 579 | }, | ||
| 580 | "x86_64-freebsd": { | ||
| 581 | "tarball": "https://ziglang.org/download/0.5.0/zig-freebsd-x86_64-0.5.0.tar.xz", | ||
| 582 | "shasum": "9e1f4d36c3d584c0aa01f20eb4cd0a0eef3eee5af23e483b8414de55feab6ab6", | ||
| 583 | "size": "33650744" | ||
| 584 | }, | ||
| 585 | "x86_64-macos": { | ||
| 586 | "tarball": "https://ziglang.org/download/0.5.0/zig-macos-x86_64-0.5.0.tar.xz", | ||
| 587 | "shasum": "28702cc05745c7c0bd450487d5f4091bf0a1ad279b35eb9a640ce3e3a15b300d", | ||
| 588 | "size": "37898664" | ||
| 589 | }, | ||
| 590 | "x86_64-windows": { | ||
| 591 | "tarball": "https://ziglang.org/download/0.5.0/zig-windows-x86_64-0.5.0.zip", | ||
| 592 | "shasum": "58141323db8d84a5af62746be5f9140bc161ee760ef33dc91a887bf9ac021976", | ||
| 593 | "size": "44871804" | ||
| 594 | }, | ||
| 595 | "x86_64-linux": { | ||
| 596 | "tarball": "https://ziglang.org/download/0.5.0/zig-linux-x86_64-0.5.0.tar.xz", | ||
| 597 | "shasum": "43e8f8a8b8556edd373ddf9c1ef3ca6cf852d4d09fe07d5736d12fefedd2b4f7", | ||
| 598 | "size": "40895068" | ||
| 599 | } | ||
| 600 | }, | ||
| 601 | "0.4.0": { | ||
| 602 | "date": "2019-04-08", | ||
| 603 | "docs": "https://ziglang.org/documentation/0.4.0/", | ||
| 604 | "notes": "https://ziglang.org/download/0.4.0/release-notes.html", | ||
| 605 | "src": { | ||
| 606 | "tarball": "https://ziglang.org/download/0.4.0/zig-0.4.0.tar.xz", | ||
| 607 | "shasum": "fec1f3f6b359a3d942e0a7f9157b3b30cde83927627a0e1ea95c54de3c526cfc", | ||
| 608 | "size": "5348776" | ||
| 609 | }, | ||
| 610 | "x86_64-freebsd": { | ||
| 611 | "tarball": "https://ziglang.org/download/0.4.0/zig-freebsd-x86_64-0.4.0.tar.xz", | ||
| 612 | "shasum": "3d557c91ac36d8262eb1733bb5f261c95944f9b635e43386e3d00a3272818c30", | ||
| 613 | "size": "27269672" | ||
| 614 | }, | ||
| 615 | "x86_64-macos": { | ||
| 616 | "tarball": "https://ziglang.org/download/0.4.0/zig-macos-x86_64-0.4.0.tar.xz", | ||
| 617 | "shasum": "67c932982484d017c5111e54af9f33f15e8e05c6bc5346a55e04052159c964a8", | ||
| 618 | "size": "30841504" | ||
| 619 | }, | ||
| 620 | "x86_64-windows": { | ||
| 621 | "tarball": "https://ziglang.org/download/0.4.0/zig-windows-x86_64-0.4.0.zip", | ||
| 622 | "shasum": "fbc3dd205e064c263063f69f600bedb18e3d0aa2efa747a63ef6cafb6d73f127", | ||
| 623 | "size": "35800101" | ||
| 624 | }, | ||
| 625 | "x86_64-linux": { | ||
| 626 | "tarball": "https://ziglang.org/download/0.4.0/zig-linux-x86_64-0.4.0.tar.xz", | ||
| 627 | "shasum": "fb1954e2fb556a01f8079a08130e88f70084e08978ff853bb2b1986d8c39d84e", | ||
| 628 | "size": "32876100" | ||
| 629 | } | ||
| 630 | }, | ||
| 631 | "0.3.0": { | ||
| 632 | "date": "2018-09-28", | ||
| 633 | "docs": "https://ziglang.org/documentation/0.3.0/", | ||
| 634 | "notes": "https://ziglang.org/download/0.3.0/release-notes.html", | ||
| 635 | "src": { | ||
| 636 | "tarball": "https://ziglang.org/download/0.3.0/zig-0.3.0.tar.xz", | ||
| 637 | "shasum": "d70af604f3a8622f3393d93abb3e056bf60351e32d121e6fa4fe03d8d41e1f5a", | ||
| 638 | "size": "2335592" | ||
| 639 | }, | ||
| 640 | "x86_64-macos": { | ||
| 641 | "tarball": "https://ziglang.org/download/0.3.0/zig-macos-x86_64-0.3.0.tar.xz", | ||
| 642 | "shasum": "19dec1f1943ab7be26823376d466f7e456143deb34e17502778a949034dc2e7e", | ||
| 643 | "size": "23712696" | ||
| 644 | }, | ||
| 645 | "x86_64-windows": { | ||
| 646 | "tarball": "https://ziglang.org/download/0.3.0/zig-windows-x86_64-0.3.0.zip", | ||
| 647 | "shasum": "bb568c03950958f8bb3472139c3ab5ed74547c8c694ab50f404c202faf51baf4", | ||
| 648 | "size": "22524425" | ||
| 649 | }, | ||
| 650 | "x86_64-linux": { | ||
| 651 | "tarball": "https://ziglang.org/download/0.3.0/zig-linux-x86_64-0.3.0.tar.xz", | ||
| 652 | "shasum": "b378d0aae30cb54f28494e7bc4efbc9bfb6326f47bfb302e8b5287af777b2f3c", | ||
| 653 | "size": "25209304" | ||
| 654 | } | ||
| 655 | }, | ||
| 656 | "0.2.0": { | ||
| 657 | "date": "2018-03-15", | ||
| 658 | "docs": "https://ziglang.org/documentation/0.2.0/", | ||
| 659 | "notes": "https://ziglang.org/download/0.2.0/release-notes.html", | ||
| 660 | "src": { | ||
| 661 | "tarball": "https://ziglang.org/download/0.2.0/zig-0.2.0.tar.xz", | ||
| 662 | "shasum": "29c9beb172737f4d5019b88ceae829ae8bc6512fb4386cfbf895ae2b42aa6965", | ||
| 663 | "size": "1940832" | ||
| 664 | }, | ||
| 665 | "x86_64-windows": { | ||
| 666 | "tarball": "https://ziglang.org/download/0.2.0/zig-win64-0.2.0.zip", | ||
| 667 | "shasum": "4f8a2979941a1f081ec8e545cca0b72608c0db1c5a3fd377a94db40649dcd3d4", | ||
| 668 | "size": "21076274" | ||
| 669 | }, | ||
| 670 | "x86_64-linux": { | ||
| 671 | "tarball": "https://ziglang.org/download/0.2.0/zig-linux-x86_64-0.2.0.tar.xz", | ||
| 672 | "shasum": "209c6fb745d42474c0a73d6f291c7ae3a38b6a1b6b641eea285a7f840cc1a890", | ||
| 673 | "size": "22551928" | ||
| 674 | } | ||
| 675 | }, | ||
| 676 | "0.1.1": { | ||
| 677 | "date": "2017-10-17", | ||
| 678 | "docs": "https://ziglang.org/documentation/0.1.1/", | ||
| 679 | "notes": "https://ziglang.org/download/0.1.1/release-notes.html", | ||
| 680 | "src": { | ||
| 681 | "tarball": "https://ziglang.org/download/0.1.1/zig-0.1.1.tar.xz", | ||
| 682 | "shasum": "ffca0cfb263485287e19cc997b08701fcd5f24b700345bcdc3dd8074f5a104e0", | ||
| 683 | "size": "1659716" | ||
| 684 | }, | ||
| 685 | "x86_64-windows": { | ||
| 686 | "tarball": "https://ziglang.org/download/0.1.1/zig-win64-0.1.1.zip", | ||
| 687 | "shasum": "6fc88bef531af7e567fe30bf60da1487b86833cbee84c7a2f3e317030aa5b660", | ||
| 688 | "size": "19757776" | ||
| 689 | } | ||
| 690 | } | ||
| 691 | } | ||
ci/srht/netbsd_script deleted-97| ... | @@ -1,97 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | sudo pkgin -y update | ||
| 7 | sudo pkgin -y upgrade | ||
| 8 | sudo pkgin -y install cmake samurai curl jq py27-s3cmd wget clang | ||
| 9 | |||
| 10 | ZIGDIR="$(pwd)" | ||
| 11 | CACHE_BASENAME="zig+llvm+lld+clang-x86_64-netbsd-gnu-0.8.0" | ||
| 12 | PREFIX="$HOME/$CACHE_BASENAME" | ||
| 13 | |||
| 14 | cd $HOME | ||
| 15 | wget -nv "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz" | ||
| 16 | tar xf "$CACHE_BASENAME.tar.xz" | ||
| 17 | |||
| 18 | cd $ZIGDIR | ||
| 19 | |||
| 20 | # Make the `zig version` number consistent. | ||
| 21 | # This will affect the cmake command below. | ||
| 22 | git config core.abbrev 9 | ||
| 23 | git fetch --unshallow || true | ||
| 24 | git fetch --tags | ||
| 25 | |||
| 26 | # SourceHut reports that it is a terminal that supports escape codes, but it | ||
| 27 | # is a filthy liar. Here we tell Zig to not try to send any terminal escape | ||
| 28 | # codes to show progress. | ||
| 29 | export TERM=dumb | ||
| 30 | |||
| 31 | mkdir build | ||
| 32 | cd build | ||
| 33 | export CC="$PREFIX/bin/zigcc" | ||
| 34 | export CXX="$PREFIX/bin/zigcxx" | ||
| 35 | echo "#!/bin/sh | ||
| 36 | env CC=\"clang\" $PREFIX/bin/zig cc \"\$@\"" > $CC | ||
| 37 | echo "#!/bin/sh | ||
| 38 | env CC=\"clang\" $PREFIX/bin/zig c++ \"\$@\"" > $CXX | ||
| 39 | chmod +x $CC | ||
| 40 | chmod +x $CXX | ||
| 41 | |||
| 42 | cmake .. \ | ||
| 43 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 44 | -DCMAKE_PREFIX_PATH=$PREFIX \ | ||
| 45 | "-DCMAKE_INSTALL_PREFIX=$(pwd)/release" \ | ||
| 46 | -DZIG_STATIC=ON \ | ||
| 47 | -DZIG_TARGET_TRIPLE=x86_64-netbsd-none \ | ||
| 48 | -GNinja | ||
| 49 | samu install | ||
| 50 | |||
| 51 | unset CC | ||
| 52 | unset CXX | ||
| 53 | |||
| 54 | # TODO ld.lld: error: undefined symbol: main | ||
| 55 | #>>> referenced by crt0-common.c | ||
| 56 | #>>> /usr/lib/crt0.o:(___start) | ||
| 57 | #release/bin/zig test ../test/behavior.zig -fno-stage1 -fLLVM -I ../test | ||
| 58 | |||
| 59 | # Here we skip some tests to save time. | ||
| 60 | release/bin/zig build test -Dskip-stage1 -Dskip-non-native | ||
| 61 | |||
| 62 | if [ -f ~/.s3cfg ]; then | ||
| 63 | mv ../LICENSE release/ | ||
| 64 | mv ../zig-cache/langref.html release/ | ||
| 65 | mv release/bin/zig release/ | ||
| 66 | rmdir release/bin | ||
| 67 | |||
| 68 | GITBRANCH=$(basename $GITHUB_REF) | ||
| 69 | VERSION=$(release/zig version) | ||
| 70 | DIRNAME="zig-netbsd-x86_64-$VERSION" | ||
| 71 | TARBALL="$DIRNAME.tar.xz" | ||
| 72 | mv release "$DIRNAME" | ||
| 73 | tar cfJ "$TARBALL" "$DIRNAME" | ||
| 74 | |||
| 75 | s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/ | ||
| 76 | |||
| 77 | SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1) | ||
| 78 | BYTESIZE=$(wc -c < $TARBALL) | ||
| 79 | |||
| 80 | JSONFILE="netbsd-$GITBRANCH.json" | ||
| 81 | touch $JSONFILE | ||
| 82 | echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE | ||
| 83 | echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE | ||
| 84 | echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE | ||
| 85 | |||
| 86 | s3cmd put -P --add-header="Cache-Control: max-age=0, must-revalidate" "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE" | ||
| 87 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/x86_64-netbsd-$VERSION.json" | ||
| 88 | |||
| 89 | if [ "$GITBRANCH" = "master" ]; then | ||
| 90 | # avoid leaking oauth token | ||
| 91 | set +x | ||
| 92 | |||
| 93 | OAUTH_TOKEN="$(cat ~/.oauth_token)" | ||
| 94 | cd "$ZIGDIR" | ||
| 95 | ./ci/srht/on_master_success "$VERSION" "$OAUTH_TOKEN" | ||
| 96 | fi | ||
| 97 | fi | ||
ci/srht/on_master_success deleted-50| ... | @@ -1,50 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # This script must run on a lot of different platforms. | ||
| 4 | # It assumes that the following things are installed: | ||
| 5 | # * curl | ||
| 6 | # * jq | ||
| 7 | # * cat | ||
| 8 | |||
| 9 | # We do not set -x because this would leak the oauth access token. | ||
| 10 | set +x | ||
| 11 | |||
| 12 | set -e | ||
| 13 | |||
| 14 | VERSION="$1" | ||
| 15 | OAUTH_TOKEN="$2" | ||
| 16 | YML_FILE="tmp.yml" | ||
| 17 | |||
| 18 | if [ -z "$VERSION" ]; then | ||
| 19 | echo "missing VERSION parameter" | ||
| 20 | exit 1 | ||
| 21 | fi | ||
| 22 | |||
| 23 | if [ -z "$OAUTH_TOKEN" ]; then | ||
| 24 | echo "missing OAUTH_TOKEN parameter" | ||
| 25 | exit 1 | ||
| 26 | fi | ||
| 27 | |||
| 28 | cat <<EOF >"$YML_FILE" | ||
| 29 | image: alpine/latest | ||
| 30 | packages: | ||
| 31 | - py3-pip | ||
| 32 | - curl | ||
| 33 | - jq | ||
| 34 | - xz | ||
| 35 | secrets: | ||
| 36 | - 51bfddf5-86a6-4e01-8576-358c72a4a0a4 | ||
| 37 | - 44e2bd57-1d07-42bf-925e-22a36119041d | ||
| 38 | sources: | ||
| 39 | - https://github.com/ziglang/zig | ||
| 40 | tasks: | ||
| 41 | - build: cd zig && ./ci/srht/update_download_page $VERSION | ||
| 42 | EOF | ||
| 43 | |||
| 44 | jq <$YML_FILE -sR '{ | ||
| 45 | "manifest": ., | ||
| 46 | }' | curl \ | ||
| 47 | -H Authorization:"token $OAUTH_TOKEN" \ | ||
| 48 | -H Content-Type:application/json \ | ||
| 49 | -X POST \ | ||
| 50 | -d @- "https://builds.hut.lavatech.top/api/jobs" | ||
ci/srht/update-download-page.zig deleted-99| ... | @@ -1,99 +0,0 @@ | ||
| 1 | const std = @import("std"); | ||
| 2 | const path = std.fs.path; | ||
| 3 | const mem = std.mem; | ||
| 4 | |||
| 5 | pub fn main() !void { | ||
| 6 | var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); | ||
| 7 | defer arena.deinit(); | ||
| 8 | |||
| 9 | const allocator = arena.allocator(); | ||
| 10 | |||
| 11 | const out_dir = "out"; | ||
| 12 | try std.fs.cwd().makePath(out_dir); | ||
| 13 | { | ||
| 14 | const out_file = out_dir ++ path.sep_str ++ "index.json"; | ||
| 15 | const in_file = "index.json"; | ||
| 16 | try render(allocator, in_file, out_file, .plain); | ||
| 17 | } | ||
| 18 | } | ||
| 19 | |||
| 20 | fn render( | ||
| 21 | allocator: mem.Allocator, | ||
| 22 | in_file: []const u8, | ||
| 23 | out_file: []const u8, | ||
| 24 | fmt: enum { | ||
| 25 | html, | ||
| 26 | plain, | ||
| 27 | }, | ||
| 28 | ) !void { | ||
| 29 | const in_contents = try std.fs.cwd().readFileAlloc(allocator, in_file, 1 * 1024 * 1024); | ||
| 30 | |||
| 31 | var vars = try std.process.getEnvMap(allocator); | ||
| 32 | |||
| 33 | var buffer = std.ArrayList(u8).init(allocator); | ||
| 34 | defer buffer.deinit(); | ||
| 35 | |||
| 36 | const State = enum { | ||
| 37 | Start, | ||
| 38 | OpenBrace, | ||
| 39 | VarName, | ||
| 40 | EndBrace, | ||
| 41 | }; | ||
| 42 | const writer = buffer.writer(); | ||
| 43 | var state = State.Start; | ||
| 44 | var var_name_start: usize = undefined; | ||
| 45 | var line: usize = 1; | ||
| 46 | for (in_contents) |byte, index| { | ||
| 47 | switch (state) { | ||
| 48 | State.Start => switch (byte) { | ||
| 49 | '{' => { | ||
| 50 | state = State.OpenBrace; | ||
| 51 | }, | ||
| 52 | else => try writer.writeByte(byte), | ||
| 53 | }, | ||
| 54 | State.OpenBrace => switch (byte) { | ||
| 55 | '{' => { | ||
| 56 | state = State.VarName; | ||
| 57 | var_name_start = index + 1; | ||
| 58 | }, | ||
| 59 | else => { | ||
| 60 | try writer.writeByte('{'); | ||
| 61 | try writer.writeByte(byte); | ||
| 62 | state = State.Start; | ||
| 63 | }, | ||
| 64 | }, | ||
| 65 | State.VarName => switch (byte) { | ||
| 66 | '}' => { | ||
| 67 | const var_name = in_contents[var_name_start..index]; | ||
| 68 | if (vars.get(var_name)) |value| { | ||
| 69 | const trimmed = mem.trim(u8, value, " \r\n"); | ||
| 70 | if (fmt == .html and mem.endsWith(u8, var_name, "BYTESIZE")) { | ||
| 71 | const size = try std.fmt.parseInt(u64, trimmed, 10); | ||
| 72 | try writer.print("{:.1}", .{std.fmt.fmtIntSizeDec(size)}); | ||
| 73 | } else { | ||
| 74 | try writer.writeAll(trimmed); | ||
| 75 | } | ||
| 76 | } else { | ||
| 77 | std.debug.print("line {d}: missing variable: {s}\n", .{ line, var_name }); | ||
| 78 | try writer.writeAll("(missing)"); | ||
| 79 | } | ||
| 80 | state = State.EndBrace; | ||
| 81 | }, | ||
| 82 | else => {}, | ||
| 83 | }, | ||
| 84 | State.EndBrace => switch (byte) { | ||
| 85 | '}' => { | ||
| 86 | state = State.Start; | ||
| 87 | }, | ||
| 88 | else => { | ||
| 89 | std.debug.print("line {d}: invalid byte: '0x{x}'", .{ line, byte }); | ||
| 90 | std.process.exit(1); | ||
| 91 | }, | ||
| 92 | }, | ||
| 93 | } | ||
| 94 | if (byte == '\n') { | ||
| 95 | line += 1; | ||
| 96 | } | ||
| 97 | } | ||
| 98 | try std.fs.cwd().writeFile(out_file, buffer.items); | ||
| 99 | } | ||
ci/srht/update_download_page deleted-150| ... | @@ -1,150 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | VERSION="$1" | ||
| 7 | SRCDIR="$(pwd)" | ||
| 8 | NATIVE_TARBALL="zig-linux-$(uname -m)-$VERSION.tar.xz" | ||
| 9 | |||
| 10 | # Check for all the builds being completed. It's expected that this script is run several times | ||
| 11 | # before they are all complete. | ||
| 12 | #AARCH64_LINUX_JSON_URL="https://ziglang.org/builds/aarch64-linux-$VERSION.json" | ||
| 13 | X86_64_LINUX_JSON_URL="https://ziglang.org/builds/x86_64-linux-$VERSION.json" | ||
| 14 | X86_64_WINDOWS_JSON_URL="https://ziglang.org/builds/x86_64-windows-$VERSION.json" | ||
| 15 | AARCH64_MACOS_JSON_URL="https://ziglang.org/builds/aarch64-macos-$VERSION.json" | ||
| 16 | X86_64_MACOS_JSON_URL="https://ziglang.org/builds/x86_64-macos-$VERSION.json" | ||
| 17 | X86_64_FREEBSD_JSON_URL="https://ziglang.org/builds/x86_64-freebsd-$VERSION.json" | ||
| 18 | #X86_64_NETBSD_JSON_URL="https://ziglang.org/builds/x86_64-netbsd-$VERSION.json" | ||
| 19 | |||
| 20 | # If any of these fail, it's not really this job failing; rather we have detected | ||
| 21 | # that this job will be called again later when other jobs have completed. | ||
| 22 | #curl --fail -I "$AARCH64_LINUX_JSON_URL" >/dev/null || exit 0 | ||
| 23 | curl --fail -I "$X86_64_LINUX_JSON_URL" >/dev/null || exit 0 | ||
| 24 | curl --fail -I "$X86_64_WINDOWS_JSON_URL" >/dev/null || exit 0 | ||
| 25 | curl --fail -I "$AARCH64_MACOS_JSON_URL" >/dev/null || exit 0 | ||
| 26 | curl --fail -I "$X86_64_MACOS_JSON_URL" >/dev/null || exit 0 | ||
| 27 | curl --fail -I "$X86_64_FREEBSD_JSON_URL" >/dev/null || exit 0 | ||
| 28 | #curl --fail -I "$X86_64_NETBSD_JSON_URL" >/dev/null || exit 0 | ||
| 29 | |||
| 30 | # Without --user, this gave me: | ||
| 31 | # ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied | ||
| 32 | pip3 install s3cmd --user | ||
| 33 | S3CMD="$HOME/.local/bin/s3cmd" | ||
| 34 | |||
| 35 | # This is the user when pushing to the website repo. | ||
| 36 | git config --global user.email "ziggy@ziglang.org" | ||
| 37 | git config --global user.name "Ziggy" | ||
| 38 | |||
| 39 | # Refresh this with `ssh-keyscan github.com` from a trusted Internet connection. | ||
| 40 | # We hard code the public key here to detect man-in-the-middle attacks. | ||
| 41 | echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" >> ~/.ssh/known_hosts | ||
| 42 | |||
| 43 | # We don't want the .git folder inside the tarball. | ||
| 44 | rm -rf .git | ||
| 45 | |||
| 46 | cd "$HOME" | ||
| 47 | wget "https://ziglang.org/builds/$NATIVE_TARBALL" | ||
| 48 | tar xf "$NATIVE_TARBALL" | ||
| 49 | ZIGDIR="$(pwd)/$(basename $NATIVE_TARBALL .tar.xz)" | ||
| 50 | ZIG="$ZIGDIR/zig" | ||
| 51 | LANGREF="$ZIGDIR/doc/langref.html" | ||
| 52 | SRCTARBALLDIR="zig-$VERSION" | ||
| 53 | export SRC_TARBALL="$SRCTARBALLDIR.tar.xz" | ||
| 54 | mv "$SRCDIR" "$SRCTARBALLDIR" | ||
| 55 | tar cfJ "$SRC_TARBALL" "$SRCTARBALLDIR" | ||
| 56 | export SRC_SHASUM=$(sha256sum $SRC_TARBALL | cut '-d ' -f1) | ||
| 57 | export SRC_BYTESIZE=$(wc -c < $SRC_TARBALL) | ||
| 58 | |||
| 59 | X86_64_WINDOWS_JSON=$(curl --fail "$X86_64_WINDOWS_JSON_URL" || exit 1) | ||
| 60 | export X86_64_WINDOWS_TARBALL="$(echo "$X86_64_WINDOWS_JSON" | jq .tarball -r)" | ||
| 61 | export X86_64_WINDOWS_BYTESIZE="$(echo "$X86_64_WINDOWS_JSON" | jq .size -r)" | ||
| 62 | export X86_64_WINDOWS_SHASUM="$(echo "$X86_64_WINDOWS_JSON" | jq .shasum -r)" | ||
| 63 | |||
| 64 | AARCH64_MACOS_JSON=$(curl --fail "$AARCH64_MACOS_JSON_URL" || exit 1) | ||
| 65 | export AARCH64_MACOS_TARBALL="$(echo "$AARCH64_MACOS_JSON" | jq .tarball -r)" | ||
| 66 | export AARCH64_MACOS_BYTESIZE="$(echo "$AARCH64_MACOS_JSON" | jq .size -r)" | ||
| 67 | export AARCH64_MACOS_SHASUM="$(echo "$AARCH64_MACOS_JSON" | jq .shasum -r)" | ||
| 68 | |||
| 69 | X86_64_MACOS_JSON=$(curl --fail "$X86_64_MACOS_JSON_URL" || exit 1) | ||
| 70 | export X86_64_MACOS_TARBALL="$(echo "$X86_64_MACOS_JSON" | jq .tarball -r)" | ||
| 71 | export X86_64_MACOS_BYTESIZE="$(echo "$X86_64_MACOS_JSON" | jq .size -r)" | ||
| 72 | export X86_64_MACOS_SHASUM="$(echo "$X86_64_MACOS_JSON" | jq .shasum -r)" | ||
| 73 | |||
| 74 | X86_64_LINUX_JSON=$(curl --fail "$X86_64_LINUX_JSON_URL" || exit 1) | ||
| 75 | export X86_64_LINUX_TARBALL="$(echo "$X86_64_LINUX_JSON" | jq .tarball -r)" | ||
| 76 | export X86_64_LINUX_BYTESIZE="$(echo "$X86_64_LINUX_JSON" | jq .size -r)" | ||
| 77 | export X86_64_LINUX_SHASUM="$(echo "$X86_64_LINUX_JSON" | jq .shasum -r)" | ||
| 78 | |||
| 79 | #AARCH64_LINUX_JSON=$(curl --fail "$AARCH64_LINUX_JSON_URL" || exit 1) | ||
| 80 | #export AARCH64_LINUX_TARBALL="$(echo "$AARCH64_LINUX_JSON" | jq .tarball -r)" | ||
| 81 | #export AARCH64_LINUX_BYTESIZE="$(echo "$AARCH64_LINUX_JSON" | jq .size -r)" | ||
| 82 | #export AARCH64_LINUX_SHASUM="$(echo "$AARCH64_LINUX_JSON" | jq .shasum -r)" | ||
| 83 | |||
| 84 | X86_64_FREEBSD_JSON=$(curl --fail "$X86_64_FREEBSD_JSON_URL" || exit 1) | ||
| 85 | export X86_64_FREEBSD_TARBALL="$(echo "$X86_64_FREEBSD_JSON" | jq .tarball -r)" | ||
| 86 | export X86_64_FREEBSD_BYTESIZE="$(echo "$X86_64_FREEBSD_JSON" | jq .size -r)" | ||
| 87 | export X86_64_FREEBSD_SHASUM="$(echo "$X86_64_FREEBSD_JSON" | jq .shasum -r)" | ||
| 88 | |||
| 89 | #X86_64_NETBSD_JSON=$(curl --fail "$X86_64_NETBSD_JSON_URL" || exit 1) | ||
| 90 | #export X86_64_NETBSD_TARBALL="$(echo "$X86_64_NETBSD_JSON" | jq .tarball -r)" | ||
| 91 | #export X86_64_NETBSD_BYTESIZE="$(echo "$X86_64_NETBSD_JSON" | jq .size -r)" | ||
| 92 | #export X86_64_NETBSD_SHASUM="$(echo "$X86_64_NETBSD_JSON" | jq .shasum -r)" | ||
| 93 | |||
| 94 | export MASTER_DATE="$(date +%Y-%m-%d)" | ||
| 95 | export MASTER_VERSION="$VERSION" | ||
| 96 | |||
| 97 | # Create index.json and update the website repo. | ||
| 98 | cd "$SRCTARBALLDIR/ci/srht" | ||
| 99 | "$ZIG" run update-download-page.zig | ||
| 100 | CIDIR="$(pwd)" | ||
| 101 | |||
| 102 | cd "$HOME" | ||
| 103 | |||
| 104 | # Update autodocs and langref directly to S3 in order to prevent the | ||
| 105 | # www.ziglang.org git repo from growing too big. | ||
| 106 | |||
| 107 | # Please do not edit this script to pre-compress the artifacts before they hit | ||
| 108 | # S3. This prevents the website from working on browsers that do not support gzip | ||
| 109 | # encoding. Cloudfront will automatically compress files if they are less than | ||
| 110 | # 9.5 MiB, and the client advertises itself as capable of decompressing. | ||
| 111 | # The data.js file is currently 16 MiB. In order to fix this problem, we need to do | ||
| 112 | # one of the following things: | ||
| 113 | # * Reduce the size of data.js to less than 9.5 MiB. | ||
| 114 | # * Figure out how to adjust the Cloudfront settings to increase the max size for | ||
| 115 | # auto-compressed objects. | ||
| 116 | # * Migrate to fastly. | ||
| 117 | $S3CMD put -P --no-mime-magic \ | ||
| 118 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 119 | "$LANGREF" s3://ziglang.org/documentation/master/index.html | ||
| 120 | |||
| 121 | $S3CMD put -P --no-mime-magic \ | ||
| 122 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 123 | "$ZIGDIR/doc/std/index.html" s3://ziglang.org/documentation/master/std/index.html | ||
| 124 | |||
| 125 | $S3CMD put -P --no-mime-magic \ | ||
| 126 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 127 | "$ZIGDIR/doc/std/main.js" s3://ziglang.org/documentation/master/std/main.js | ||
| 128 | |||
| 129 | $S3CMD put -P --no-mime-magic \ | ||
| 130 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 131 | "$ZIGDIR/doc/std/data.js" s3://ziglang.org/documentation/master/std/data.js | ||
| 132 | |||
| 133 | $S3CMD put -P --no-mime-magic --recursive \ | ||
| 134 | --add-header="Cache-Control: max-age=0, must-revalidate" \ | ||
| 135 | -m "text/html" \ | ||
| 136 | "$ZIGDIR/doc/std/src/" s3://ziglang.org/documentation/master/std/src/ | ||
| 137 | |||
| 138 | $S3CMD put -P --no-mime-magic \ | ||
| 139 | --add-header="cache-control: public, max-age=31536000, immutable" \ | ||
| 140 | "$HOME/$SRC_TARBALL" s3://ziglang.org/builds/ | ||
| 141 | |||
| 142 | git clone --depth 1 git@github.com:ziglang/www.ziglang.org.git | ||
| 143 | cd www.ziglang.org | ||
| 144 | WWWDIR="$(pwd)" | ||
| 145 | |||
| 146 | cd "$WWWDIR" | ||
| 147 | cp "$CIDIR/out/index.json" data/releases.json | ||
| 148 | git add data/releases.json | ||
| 149 | git commit -m "CI: update releases" | ||
| 150 | git push origin master | ||
ci/update-download-page.zig created+99| ... | @@ -0,0 +1,99 @@ | ||
| 1 | const std = @import("std"); | ||
| 2 | const path = std.fs.path; | ||
| 3 | const mem = std.mem; | ||
| 4 | |||
| 5 | pub fn main() !void { | ||
| 6 | var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); | ||
| 7 | defer arena.deinit(); | ||
| 8 | |||
| 9 | const allocator = arena.allocator(); | ||
| 10 | |||
| 11 | const out_dir = "out"; | ||
| 12 | try std.fs.cwd().makePath(out_dir); | ||
| 13 | { | ||
| 14 | const out_file = out_dir ++ path.sep_str ++ "index.json"; | ||
| 15 | const in_file = "index.json"; | ||
| 16 | try render(allocator, in_file, out_file, .plain); | ||
| 17 | } | ||
| 18 | } | ||
| 19 | |||
| 20 | fn render( | ||
| 21 | allocator: mem.Allocator, | ||
| 22 | in_file: []const u8, | ||
| 23 | out_file: []const u8, | ||
| 24 | fmt: enum { | ||
| 25 | html, | ||
| 26 | plain, | ||
| 27 | }, | ||
| 28 | ) !void { | ||
| 29 | const in_contents = try std.fs.cwd().readFileAlloc(allocator, in_file, 1 * 1024 * 1024); | ||
| 30 | |||
| 31 | var vars = try std.process.getEnvMap(allocator); | ||
| 32 | |||
| 33 | var buffer = std.ArrayList(u8).init(allocator); | ||
| 34 | defer buffer.deinit(); | ||
| 35 | |||
| 36 | const State = enum { | ||
| 37 | Start, | ||
| 38 | OpenBrace, | ||
| 39 | VarName, | ||
| 40 | EndBrace, | ||
| 41 | }; | ||
| 42 | const writer = buffer.writer(); | ||
| 43 | var state = State.Start; | ||
| 44 | var var_name_start: usize = undefined; | ||
| 45 | var line: usize = 1; | ||
| 46 | for (in_contents) |byte, index| { | ||
| 47 | switch (state) { | ||
| 48 | State.Start => switch (byte) { | ||
| 49 | '{' => { | ||
| 50 | state = State.OpenBrace; | ||
| 51 | }, | ||
| 52 | else => try writer.writeByte(byte), | ||
| 53 | }, | ||
| 54 | State.OpenBrace => switch (byte) { | ||
| 55 | '{' => { | ||
| 56 | state = State.VarName; | ||
| 57 | var_name_start = index + 1; | ||
| 58 | }, | ||
| 59 | else => { | ||
| 60 | try writer.writeByte('{'); | ||
| 61 | try writer.writeByte(byte); | ||
| 62 | state = State.Start; | ||
| 63 | }, | ||
| 64 | }, | ||
| 65 | State.VarName => switch (byte) { | ||
| 66 | '}' => { | ||
| 67 | const var_name = in_contents[var_name_start..index]; | ||
| 68 | if (vars.get(var_name)) |value| { | ||
| 69 | const trimmed = mem.trim(u8, value, " \r\n"); | ||
| 70 | if (fmt == .html and mem.endsWith(u8, var_name, "BYTESIZE")) { | ||
| 71 | const size = try std.fmt.parseInt(u64, trimmed, 10); | ||
| 72 | try writer.print("{:.1}", .{std.fmt.fmtIntSizeDec(size)}); | ||
| 73 | } else { | ||
| 74 | try writer.writeAll(trimmed); | ||
| 75 | } | ||
| 76 | } else { | ||
| 77 | std.debug.print("line {d}: missing variable: {s}\n", .{ line, var_name }); | ||
| 78 | try writer.writeAll("(missing)"); | ||
| 79 | } | ||
| 80 | state = State.EndBrace; | ||
| 81 | }, | ||
| 82 | else => {}, | ||
| 83 | }, | ||
| 84 | State.EndBrace => switch (byte) { | ||
| 85 | '}' => { | ||
| 86 | state = State.Start; | ||
| 87 | }, | ||
| 88 | else => { | ||
| 89 | std.debug.print("line {d}: invalid byte: '0x{x}'", .{ line, byte }); | ||
| 90 | std.process.exit(1); | ||
| 91 | }, | ||
| 92 | }, | ||
| 93 | } | ||
| 94 | if (byte == '\n') { | ||
| 95 | line += 1; | ||
| 96 | } | ||
| 97 | } | ||
| 98 | try std.fs.cwd().writeFile(out_file, buffer.items); | ||
| 99 | } | ||
ci/zinc/build_aarch64_macos deleted-20| ... | @@ -1,20 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | RELEASE_STAGING="$DRONE_WORKSPACE/_release/staging" | ||
| 7 | TARGET="aarch64-macos-none" | ||
| 8 | MCPU="apple_a14" | ||
| 9 | INSTALL_PREFIX="$DRONE_WORKSPACE/$TARGET" | ||
| 10 | SEARCH_PREFIX="/deps/$TARGET" | ||
| 11 | |||
| 12 | "$RELEASE_STAGING/bin/zig" build \ | ||
| 13 | --prefix "$INSTALL_PREFIX" \ | ||
| 14 | --search-prefix "$SEARCH_PREFIX" \ | ||
| 15 | -Dstatic-llvm \ | ||
| 16 | -Drelease \ | ||
| 17 | -Dstrip \ | ||
| 18 | -Dtarget="$TARGET" \ | ||
| 19 | -Dcpu="$MCPU" \ | ||
| 20 | -Denable-stage1 | ||
ci/zinc/configure_git deleted-10| ... | @@ -1,10 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | # Make the `zig version` number consistent. | ||
| 7 | # This will affect the cmake commands that follow. | ||
| 8 | # This is in its own script because git does not support this command | ||
| 9 | # being run concurrently with itself. | ||
| 10 | git config core.abbrev 9 | ||
ci/zinc/drone.yml deleted-96| ... | @@ -1,96 +0,0 @@ | ||
| 1 | --- | ||
| 2 | kind: pipeline | ||
| 3 | type: docker | ||
| 4 | name: x86_64-linux | ||
| 5 | platform: | ||
| 6 | os: linux | ||
| 7 | arch: amd64 | ||
| 8 | workspace: | ||
| 9 | path: /workspace | ||
| 10 | |||
| 11 | steps: | ||
| 12 | - name: configure_git | ||
| 13 | image: ci/debian-amd64:11.1-12 | ||
| 14 | commands: | ||
| 15 | - ./ci/zinc/configure_git | ||
| 16 | |||
| 17 | - name: test_stage3_debug | ||
| 18 | depends_on: | ||
| 19 | - configure_git | ||
| 20 | image: ci/debian-amd64:11.1-12 | ||
| 21 | commands: | ||
| 22 | - ./ci/zinc/linux_test_stage3_debug | ||
| 23 | |||
| 24 | - name: test_stage3_release | ||
| 25 | depends_on: | ||
| 26 | - configure_git | ||
| 27 | image: ci/debian-amd64:11.1-12 | ||
| 28 | commands: | ||
| 29 | - ./ci/zinc/linux_test_stage3_release | ||
| 30 | |||
| 31 | - name: build_aarch64_macos | ||
| 32 | depends_on: | ||
| 33 | - test_stage3_release | ||
| 34 | image: ci/debian-amd64:11.1-12 | ||
| 35 | commands: | ||
| 36 | - ./ci/zinc/build_aarch64_macos | ||
| 37 | |||
| 38 | - name: test_determinism | ||
| 39 | depends_on: | ||
| 40 | - test_stage3_release | ||
| 41 | image: ci/debian-amd64:11.1-12 | ||
| 42 | commands: | ||
| 43 | - ./ci/zinc/linux_test_determinism | ||
| 44 | |||
| 45 | - name: linux_package | ||
| 46 | depends_on: | ||
| 47 | - test_stage3_debug | ||
| 48 | - test_stage3_release | ||
| 49 | - test_determinism | ||
| 50 | when: | ||
| 51 | branch: | ||
| 52 | - master | ||
| 53 | event: | ||
| 54 | - push | ||
| 55 | image: ci/debian-amd64:11.1-12 | ||
| 56 | environment: | ||
| 57 | AWS_ACCESS_KEY_ID: | ||
| 58 | from_secret: AWS_ACCESS_KEY_ID | ||
| 59 | AWS_SECRET_ACCESS_KEY: | ||
| 60 | from_secret: AWS_SECRET_ACCESS_KEY | ||
| 61 | commands: | ||
| 62 | - ./ci/zinc/linux_package | ||
| 63 | |||
| 64 | - name: macos_package | ||
| 65 | depends_on: | ||
| 66 | - test_stage3_debug | ||
| 67 | - build_aarch64_macos | ||
| 68 | when: | ||
| 69 | branch: | ||
| 70 | - master | ||
| 71 | event: | ||
| 72 | - push | ||
| 73 | image: ci/debian-amd64:11.1-12 | ||
| 74 | environment: | ||
| 75 | AWS_ACCESS_KEY_ID: | ||
| 76 | from_secret: AWS_ACCESS_KEY_ID | ||
| 77 | AWS_SECRET_ACCESS_KEY: | ||
| 78 | from_secret: AWS_SECRET_ACCESS_KEY | ||
| 79 | commands: | ||
| 80 | - ./ci/zinc/macos_package | ||
| 81 | |||
| 82 | - name: notify_lavahut | ||
| 83 | depends_on: | ||
| 84 | - macos_package | ||
| 85 | - linux_package | ||
| 86 | when: | ||
| 87 | branch: | ||
| 88 | - master | ||
| 89 | event: | ||
| 90 | - push | ||
| 91 | image: ci/debian-amd64:11.1-12 | ||
| 92 | environment: | ||
| 93 | SRHT_OAUTH_TOKEN: | ||
| 94 | from_secret: SRHT_OAUTH_TOKEN | ||
| 95 | commands: | ||
| 96 | - ./ci/zinc/notify_lavahut | ||
ci/zinc/linux_package deleted-45| ... | @@ -1,45 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | ARCH="$(uname -m)" | ||
| 7 | OS="linux" | ||
| 8 | RELEASE_STAGING="$DRONE_WORKSPACE/_release/staging" | ||
| 9 | VERSION=$($RELEASE_STAGING/bin/zig version) | ||
| 10 | BASENAME="zig-$OS-$ARCH-$VERSION" | ||
| 11 | TARBALL="$BASENAME.tar.xz" | ||
| 12 | |||
| 13 | # This runs concurrently with the macos_package script, so it should not make | ||
| 14 | # any changes to the filesystem that will cause problems for the other script. | ||
| 15 | |||
| 16 | cp -r "$RELEASE_STAGING" "$BASENAME" | ||
| 17 | |||
| 18 | # Remove the unnecessary bin dir in $prefix/bin/zig | ||
| 19 | mv $BASENAME/bin/zig $BASENAME/ | ||
| 20 | rmdir $BASENAME/bin | ||
| 21 | |||
| 22 | # Remove the unnecessary zig dir in $prefix/lib/zig/std/std.zig | ||
| 23 | mv $BASENAME/lib/zig $BASENAME/lib2 | ||
| 24 | rmdir $BASENAME/lib | ||
| 25 | mv $BASENAME/lib2 $BASENAME/lib | ||
| 26 | |||
| 27 | tar cfJ "$TARBALL" "$BASENAME" | ||
| 28 | |||
| 29 | SHASUM=$(sha256sum $TARBALL | cut '-d ' -f1) | ||
| 30 | BYTESIZE=$(wc -c < $TARBALL) | ||
| 31 | |||
| 32 | MANIFEST="manifest-$TARGET.json" | ||
| 33 | touch $MANIFEST | ||
| 34 | echo "{\"tarball\": \"$TARBALL\"," >>$MANIFEST | ||
| 35 | echo "\"shasum\": \"$SHASUM\"," >>$MANIFEST | ||
| 36 | echo "\"size\": \"$BYTESIZE\"}" >>$MANIFEST | ||
| 37 | |||
| 38 | # Publish artifact. | ||
| 39 | s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/ | ||
| 40 | |||
| 41 | # Publish manifest. | ||
| 42 | s3cmd put -P --add-header="cache-control: max-age=0, must-revalidate" "$MANIFEST" "s3://ziglang.org/builds/$ARCH-$OS-$VERSION.json" | ||
| 43 | |||
| 44 | # Explicit exit helps show last command duration. | ||
| 45 | exit | ||
ci/zinc/linux_test_determinism deleted-28| ... | @@ -1,28 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | DEPS_LOCAL="/deps/local" | ||
| 7 | ZIG_PREFIX="$DRONE_WORKSPACE/_release/staging" | ||
| 8 | VERSION=$($ZIG_PREFIX/bin/zig version) | ||
| 9 | |||
| 10 | "$ZIG_PREFIX/bin/zig" build \ | ||
| 11 | --prefix stage4 \ | ||
| 12 | -Dconfig_h="build-release/config.h" \ | ||
| 13 | -Denable-llvm \ | ||
| 14 | -Denable-stage1 \ | ||
| 15 | -Dno-lib \ | ||
| 16 | -Drelease \ | ||
| 17 | -Dstrip \ | ||
| 18 | -Dtarget=x86_64-linux-musl \ | ||
| 19 | -Duse-zig-libcxx \ | ||
| 20 | -Dversion-string="$VERSION" | ||
| 21 | |||
| 22 | # diff returns an error code if the files differ. | ||
| 23 | echo "If the following command fails, it means nondeterminism has been" | ||
| 24 | echo "introduced, making stage3 and stage4 no longer byte-for-byte identical." | ||
| 25 | diff "$ZIG_PREFIX/bin/zig" "stage4/bin/zig" | ||
| 26 | |||
| 27 | # Explicit exit helps show last command duration. | ||
| 28 | exit | ||
ci/zinc/linux_test_stage3_debug deleted-62| ... | @@ -1,62 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | ARCH="$(uname -m)" | ||
| 7 | DEPS_LOCAL="/deps/local" | ||
| 8 | OLD_ZIG="$DEPS_LOCAL/bin/zig" | ||
| 9 | TARGET="${ARCH}-linux-musl" | ||
| 10 | MCPU="baseline" | ||
| 11 | |||
| 12 | export PATH=$DEPS_LOCAL/bin:$PATH | ||
| 13 | |||
| 14 | echo "building stage3-debug with zig version $($OLD_ZIG version)" | ||
| 15 | |||
| 16 | # Override the cache directories so that we don't clobber with the release | ||
| 17 | # testing script which is running concurrently and in the same directory. | ||
| 18 | # Normally we want processes to cooperate, but in this case we want them isolated. | ||
| 19 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-cache-local-debug" | ||
| 20 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-cache-global-debug" | ||
| 21 | |||
| 22 | export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 23 | export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 24 | |||
| 25 | mkdir build-debug | ||
| 26 | cd build-debug | ||
| 27 | cmake .. \ | ||
| 28 | -DCMAKE_INSTALL_PREFIX="$(pwd)/stage3" \ | ||
| 29 | -DCMAKE_PREFIX_PATH="$DEPS_LOCAL" \ | ||
| 30 | -DCMAKE_BUILD_TYPE=Debug \ | ||
| 31 | -DZIG_STATIC=ON \ | ||
| 32 | -DZIG_USE_LLVM_CONFIG=OFF \ | ||
| 33 | -GNinja | ||
| 34 | |||
| 35 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables | ||
| 36 | # so that installation and testing do not get affected by them. | ||
| 37 | unset CC | ||
| 38 | unset CXX | ||
| 39 | |||
| 40 | ninja install | ||
| 41 | |||
| 42 | echo "Looking for non-conforming code formatting..." | ||
| 43 | stage3/bin/zig fmt --check .. \ | ||
| 44 | --exclude ../test/cases/ \ | ||
| 45 | --exclude ../build-debug \ | ||
| 46 | --exclude ../build-release \ | ||
| 47 | --exclude "$ZIG_LOCAL_CACHE_DIR" \ | ||
| 48 | --exclude "$ZIG_GLOBAL_CACHE_DIR" | ||
| 49 | |||
| 50 | # simultaneously test building self-hosted without LLVM and with 32-bit arm | ||
| 51 | stage3/bin/zig build -Dtarget=arm-linux-musleabihf | ||
| 52 | |||
| 53 | stage3/bin/zig build test \ | ||
| 54 | -fqemu \ | ||
| 55 | -fwasmtime \ | ||
| 56 | -Dstatic-llvm \ | ||
| 57 | -Dtarget=native-native-musl \ | ||
| 58 | --search-prefix "$DEPS_LOCAL" \ | ||
| 59 | --zig-lib-dir "$(pwd)/../lib" | ||
| 60 | |||
| 61 | # Explicit exit helps show last command duration. | ||
| 62 | exit | ||
ci/zinc/linux_test_stage3_release deleted-60| ... | @@ -1,60 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | ARCH="$(uname -m)" | ||
| 7 | DEPS_LOCAL="/deps/local" | ||
| 8 | RELEASE_STAGING="$DRONE_WORKSPACE/_release/staging" | ||
| 9 | OLD_ZIG="$DEPS_LOCAL/bin/zig" | ||
| 10 | TARGET="${ARCH}-linux-musl" | ||
| 11 | MCPU="baseline" | ||
| 12 | |||
| 13 | export PATH=$DEPS_LOCAL/bin:$PATH | ||
| 14 | |||
| 15 | echo "building stage3-release with zig version $($OLD_ZIG version)" | ||
| 16 | |||
| 17 | export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 18 | export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 19 | |||
| 20 | mkdir build-release | ||
| 21 | cd build-release | ||
| 22 | cmake .. \ | ||
| 23 | -DCMAKE_INSTALL_PREFIX="$RELEASE_STAGING" \ | ||
| 24 | -DCMAKE_PREFIX_PATH="$DEPS_LOCAL" \ | ||
| 25 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 26 | -DZIG_TARGET_TRIPLE="$TARGET" \ | ||
| 27 | -DZIG_TARGET_MCPU="$MCPU" \ | ||
| 28 | -DZIG_STATIC=ON \ | ||
| 29 | -GNinja | ||
| 30 | |||
| 31 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables | ||
| 32 | # so that installation and testing do not get affected by them. | ||
| 33 | unset CC | ||
| 34 | unset CXX | ||
| 35 | |||
| 36 | ninja install | ||
| 37 | |||
| 38 | "$RELEASE_STAGING/bin/zig" build test docs \ | ||
| 39 | -fqemu \ | ||
| 40 | -fwasmtime \ | ||
| 41 | -Dstatic-llvm \ | ||
| 42 | -Dtarget=native-native-musl \ | ||
| 43 | --search-prefix "$DEPS_LOCAL" \ | ||
| 44 | --zig-lib-dir "$(pwd)/../lib" | ||
| 45 | |||
| 46 | # Produce the experimental std lib documentation. | ||
| 47 | mkdir -p "$RELEASE_STAGING/doc/std" | ||
| 48 | "$RELEASE_STAGING/bin/zig" test ../lib/std/std.zig \ | ||
| 49 | -femit-docs=$RELEASE_STAGING/doc/std \ | ||
| 50 | -fno-emit-bin \ | ||
| 51 | --zig-lib-dir "$(pwd)/../lib" | ||
| 52 | |||
| 53 | cp ../LICENSE $RELEASE_STAGING/ | ||
| 54 | cp ../zig-cache/langref.html $RELEASE_STAGING/doc/ | ||
| 55 | |||
| 56 | # Look for HTML errors. | ||
| 57 | tidy --drop-empty-elements no -qe $RELEASE_STAGING/doc/langref.html | ||
| 58 | |||
| 59 | # Explicit exit helps show last command duration. | ||
| 60 | exit | ||
ci/zinc/macos_package deleted-49| ... | @@ -1,49 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -x | ||
| 4 | set -e | ||
| 5 | |||
| 6 | ARCH="aarch64" | ||
| 7 | OS=macos | ||
| 8 | ZIG_PREFIX="$DRONE_WORKSPACE/_release/staging" | ||
| 9 | VERSION=$($ZIG_PREFIX/bin/zig version) | ||
| 10 | TARGET="$ARCH-$OS-none" | ||
| 11 | INSTALL_PREFIX="$DRONE_WORKSPACE/$TARGET" | ||
| 12 | BASENAME="zig-$OS-$ARCH-$VERSION" | ||
| 13 | TARBALL="$BASENAME.tar.xz" | ||
| 14 | |||
| 15 | # This runs concurrently with the linux_package script, so it should not make | ||
| 16 | # any changes to the filesystem that will cause problems for the other script. | ||
| 17 | |||
| 18 | # Remove the unnecessary bin dir in $prefix/bin/zig | ||
| 19 | mv $INSTALL_PREFIX/bin/zig $INSTALL_PREFIX/ | ||
| 20 | rmdir $INSTALL_PREFIX/bin | ||
| 21 | |||
| 22 | # Remove the unnecessary zig dir in $prefix/lib/zig/std/std.zig | ||
| 23 | mv $INSTALL_PREFIX/lib/zig $INSTALL_PREFIX/lib2 | ||
| 24 | rmdir $INSTALL_PREFIX/lib | ||
| 25 | mv $INSTALL_PREFIX/lib2 $INSTALL_PREFIX/lib | ||
| 26 | |||
| 27 | cp -r "$ZIG_PREFIX/doc" "$INSTALL_PREFIX/" | ||
| 28 | cp "$ZIG_PREFIX/LICENSE" "$INSTALL_PREFIX/" | ||
| 29 | |||
| 30 | mv "$INSTALL_PREFIX" "$BASENAME" | ||
| 31 | tar cfJ "$TARBALL" "$BASENAME" | ||
| 32 | |||
| 33 | SHASUM=$(sha256sum $TARBALL | cut '-d ' -f1) | ||
| 34 | BYTESIZE=$(wc -c < $TARBALL) | ||
| 35 | |||
| 36 | MANIFEST="manifest-$TARGET.json" | ||
| 37 | touch $MANIFEST | ||
| 38 | echo "{\"tarball\": \"$TARBALL\"," >>$MANIFEST | ||
| 39 | echo "\"shasum\": \"$SHASUM\"," >>$MANIFEST | ||
| 40 | echo "\"size\": \"$BYTESIZE\"}" >>$MANIFEST | ||
| 41 | |||
| 42 | # Publish artifact. | ||
| 43 | s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/ | ||
| 44 | |||
| 45 | # Publish manifest. | ||
| 46 | s3cmd put -P --add-header="cache-control: max-age=0, must-revalidate" "$MANIFEST" "s3://ziglang.org/builds/$ARCH-$OS-$VERSION.json" | ||
| 47 | |||
| 48 | # Explicit exit helps show last command duration. | ||
| 49 | exit | ||
ci/zinc/notify_lavahut deleted-9| ... | @@ -1,9 +0,0 @@ | ||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set +x # Avoid leaking oauth token. | ||
| 4 | set -e | ||
| 5 | |||
| 6 | ZIG_PREFIX="$DRONE_WORKSPACE/_release/staging" | ||
| 7 | VERSION=$($ZIG_PREFIX/bin/zig version) | ||
| 8 | cd $DRONE_WORKSPACE | ||
| 9 | ./ci/srht/on_master_success "$VERSION" "$SRHT_OAUTH_TOKEN" | ||
src/stage1/zig0.cpp+1-1| ... | @@ -186,7 +186,7 @@ static Error target_parse_triple(struct ZigTarget *target, const char *zig_tripl | ... | @@ -186,7 +186,7 @@ static Error target_parse_triple(struct ZigTarget *target, const char *zig_tripl |
| 186 | if (zig_triple == nullptr) { | 186 | if (zig_triple == nullptr) { |
| 187 | get_native_target(target); | 187 | get_native_target(target); |
| 188 | 188 | ||
| 189 | if (mcpu == nullptr) { | 189 | if (mcpu == nullptr || strcmp(mcpu, "native") == 0) { |
| 190 | target->llvm_cpu_name = ZigLLVMGetHostCPUName(); | 190 | target->llvm_cpu_name = ZigLLVMGetHostCPUName(); |
| 191 | target->llvm_cpu_features = ZigLLVMGetNativeFeatures(); | 191 | target->llvm_cpu_features = ZigLLVMGetNativeFeatures(); |
| 192 | } else if (strcmp(mcpu, "baseline") == 0) { | 192 | } else if (strcmp(mcpu, "baseline") == 0) { |