diff --git a/ci/srht/index.html b/ci/srht/index.html new file mode 100644 index 0000000000..353aaf01de --- /dev/null +++ b/ci/srht/index.html @@ -0,0 +1,731 @@ + + + + + Releases ⚡ The Zig Programming Language + + + + +
+ +
+ +
+

Releases

+

You can also + install Zig from a package manager. +

+

+ There is a JSON version of this page. +

+ +

master

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameKindSizeSha256
{{SRC_TARBALL}}Source{{SRC_BYTESIZE}}{{SRC_SHASUM}}
{{X86_64_LINUX_TARBALL}}Binary{{X86_64_LINUX_BYTESIZE}}{{X86_64_LINUX_SHASUM}}
{{AARCH64_LINUX_TARBALL}}Binary{{AARCH64_LINUX_BYTESIZE}}{{AARCH64_LINUX_SHASUM}}
{{X86_64_WINDOWS_TARBALL}}Binary{{X86_64_WINDOWS_BYTESIZE}}{{X86_64_WINDOWS_SHASUM}}
{{X86_64_MACOS_TARBALL}}Binary{{X86_64_MACOS_BYTESIZE}}{{X86_64_MACOS_SHASUM}}
{{X86_64_FREEBSD_TARBALL}}Binary{{X86_64_FREEBSD_BYTESIZE}}{{X86_64_FREEBSD_SHASUM}}
+ +

0.7.1

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameKindSizeSha256
zig-0.7.1.tar.xzSource11MiB2db3b944ab368d955b48743d9f7c963b8f96de1a441ba5a35e197237cc6dae44
zig-bootstrap-0.7.1.tar.xzSource39MiB040f27c1fae4b0cac0a2782aecdb691f6a2f8e89db6a6ed35024c31c304fd9b2
zig-freebsd-x86_64-0.7.1.tar.xzBinary38MiBe73c1dca35791a3183fdd5ecde0443ebbe180942efceafe651886034fb8def09
zig-linux-aarch64-0.7.1.tar.xzBinary33MiB48ec90eba407e4587ddef7eecef25fec7e13587eb98e3b83c5f2f5fff2a5cbe7
zig-linux-armv7a-0.7.1.tar.xzBinary35MiB5a0662e07b4c4968665e1f97558f8591f6facec45d2e0ff5715e661743107ceb
zig-linux-i386-0.7.1.tar.xzBinary38MiB4882e052e5f83690bd0334bb4fc1702b5403cb3a3d2aa63fd7d6043d8afecba3
zig-linux-riscv64-0.7.1.tar.xzBinary36MiB187294bfd35983348c3fe042901b42e67e7e36ab7f77a5f969d21c0051f4d21f
zig-linux-x86_64-0.7.1.tar.xzBinary37MiB18c7b9b200600f8bcde1cd8d7f1f578cbc3676241ce36d771937ce19a8159b8d
zig-macos-x86_64-0.7.1.tar.xzBinary35MiB845cb17562978af0cf67e3993f4e33330525eaf01ead9386df9105111e3bc519
zig-windows-i386-0.7.1.zipBinary52MiBa1b9a7421e13153e07fd2e2c93ff29aad64d83105b8fcdafa633dbe689caf1c0
zig-windows-x86_64-0.7.1.zipBinary53MiB4818a8a65b4672bc52c0ae7f14d014e0eb8caf10f12c0745176820384cea296a
+ +

0.7.0

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameKindSizeSha256
zig-0.7.0.tar.xzSource11MiB0efd2cf6c3b05723db80e9cf193bc55150bba84ca41f855a90f53fc756445f83
zig-bootstrap-0.7.0.tar.xzSource39MiBf073beaf5c53c8c57c0d374cbfcb332ef92ad703173edba0d9e0f2ed28401b72
zig-freebsd-x86_64-0.7.0.tar.xzBinary34MiBa0c926272ee4ae720034b4a6a1dc98399d76156dd84182554740f0ca8a41fc99
zig-linux-aarch64-0.7.0.tar.xzBinary32MiBf89933bac87d44be82325754ff88423020c81c7032a6fc41cfeb81e982eeab9b
zig-linux-armv7a-0.7.0.tar.xzBinary34MiB011c267e25a96ee160505a560c441daa045359a9d50e13ab1bada9d75c95db2d
zig-linux-i386-0.7.0.tar.xzBinary37MiB4bb2072cd363bcb1cbeb4872ff5cbc1f683b02d0cc1f90c46e3ea7422ce53222
zig-linux-riscv64-0.7.0.tar.xzBinary36MiB40dff81faa6f232ac40abbf88b9371f3cc932b6e09c423b94387c9ea580cb7be
zig-linux-x86_64-0.7.0.tar.xzBinary36MiBe619b1c6094c095b932767f527aee2507f847ea981513ff8a08aab0fd730e0ac
zig-macos-aarch64-0.7.0.tar.xzBinary33MiB338238035734db74ea4f30e500a4893bf741d38305c10952d5e39fa05bdb057d
zig-macos-x86_64-0.7.0.tar.xzBinary35MiB94063f9a311cbbf7a2e0a12295e09437182cf950f18cb0eb30ea9893f3677f24
zig-windows-i386-0.7.0.zipBinary51MiBb1e520aacbfbd645ff3521b3eb4d44166d9a0288b8725e4b001f8b50a425eb2e
zig-windows-x86_64-0.7.0.zipBinary52MiB965f56c0a36f9cda2125e3a348bc654f7f155e2804c3667d231775ec228f8553
+ +

0.6.0

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameKindSizeSha256
zig-0.6.0.tar.xzSource9.9MiB5d167dc19354282dd35dd17b38e99e1763713b9be8a4ba9e9e69284e059e7204
zig-bootstrap-0.6.0.tar.xzSource36.7MiB5e0e4dc878b3dd0c1852a442b174f0732e8c07869a8fcd226b71a93b89b381ab
zig-freebsd-x86_64-0.6.0.tar.xzBinary36MiB190ff79c1eb56805a315d7c7a51082e32f62926250c0702b36760c225e1634a3
zig-linux-aarch64-0.6.0.tar.xzBinary36MiBe7520efd42cfa02be48c2e430d08fe1f3cbb999d21d9f0d3ffd0febb976b2f41
zig-linux-armv6kz-0.6.0.tar.xzBinary38MiB36b6493b3fed43eb1f0000e765798ad31a6bb7d7fd3f553ac1c3761dbc919b82
zig-linux-armv7a-0.6.0.tar.xzBinary38MiB946969abe357def95ca9cbbfcebfcf2d90cf967bcd3f48ee87662e32d91d8f35
zig-linux-i386-0.6.0.tar.xzBinary43MiBa97a2f9ae21575743cdd763c1917d49400d83fc562ef64582b18bade43eb24ce
zig-linux-riscv64-0.6.0.tar.xzBinary41MiB68ddee43f7503c8ae5f26a921f3602c34719a02ed2241f528c0b8b888cc14b38
zig-linux-x86_64-0.6.0.tar.xzBinary43MiB08fd3c757963630645441c2772362e9c2294020c44f14fce1b89f45de0dc1253
zig-macos-x86_64-0.6.0.tar.xzBinary41MiB17270360e87ddc49f737e760047b2fac49f1570a824a306119b1194ac4093895
zig-windows-i386-0.6.0.zipBinary58MiB3b0a02618743e92175990dc6d1a787bb95ff62c4cda016f1c14c7786f575f8ca
zig-windows-x86_64-0.6.0.zipBinary47MiBc3b897832523e1026e10b2d8d55d7f895185c0a27a63681f3a23219c3f1c38f4
+ +

0.5.0

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameKindSizeSha256
zig-0.5.0.tar.xzSource10.4MiB55ae16960f152bcb9cf98b4f8570902d0e559a141abf927f0d3555b7cc838a31
zig-linux-x86_64-0.5.0.tar.xzBinary39.0MiB43e8f8a8b8556edd373ddf9c1ef3ca6cf852d4d09fe07d5736d12fefedd2b4f7
zig-windows-x86_64-0.5.0.zipBinary42.8MiB58141323db8d84a5af62746be5f9140bc161ee760ef33dc91a887bf9ac021976
zig-macos-x86_64-0.5.0.tar.xzBinary36.1MiB28702cc05745c7c0bd450487d5f4091bf0a1ad279b35eb9a640ce3e3a15b300d
zig-freebsd-x86_64-0.5.0.tar.xzBinary32.1MiB9e1f4d36c3d584c0aa01f20eb4cd0a0eef3eee5af23e483b8414de55feab6ab6
+ +

0.4.0

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameKindSizeSha256
zig-0.4.0.tar.xzSource5.1MiBfec1f3f6b359a3d942e0a7f9157b3b30cde83927627a0e1ea95c54de3c526cfc
zig-linux-x86_64-0.4.0.tar.xzBinary31.4MiBfb1954e2fb556a01f8079a08130e88f70084e08978ff853bb2b1986d8c39d84e
zig-windows-x86_64-0.4.0.zipBinary34.1MiBfbc3dd205e064c263063f69f600bedb18e3d0aa2efa747a63ef6cafb6d73f127
zig-macos-x86_64-0.4.0.tar.xzBinary29.4MiB67c932982484d017c5111e54af9f33f15e8e05c6bc5346a55e04052159c964a8
zig-freebsd-x86_64-0.4.0.tar.xzBinary26.0MiB3d557c91ac36d8262eb1733bb5f261c95944f9b635e43386e3d00a3272818c30
+ +

0.3.0

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameKindSizeSha256
zig-0.3.0.tar.xzSource2.2MiBd70af604f3a8622f3393d93abb3e056bf60351e32d121e6fa4fe03d8d41e1f5a
zig-linux-x86_64-0.3.0.tar.xzBinary24.0MiBb378d0aae30cb54f28494e7bc4efbc9bfb6326f47bfb302e8b5287af777b2f3c
zig-windows-x86_64-0.3.0.zipBinary21.5MiBbb568c03950958f8bb3472139c3ab5ed74547c8c694ab50f404c202faf51baf4
zig-macos-x86_64-0.3.0.tar.xzBinary22.6MiB19dec1f1943ab7be26823376d466f7e456143deb34e17502778a949034dc2e7e
+ +

0.2.0

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameKindSizeSha256
zig-0.2.0.tar.xzSource1.9MiB29c9beb172737f4d5019b88ceae829ae8bc6512fb4386cfbf895ae2b42aa6965
zig-linux-x86_64-0.2.0.tar.xzBinary23.5MiB209c6fb745d42474c0a73d6f291c7ae3a38b6a1b6b641eea285a7f840cc1a890
zig-win64-0.2.0.zipBinary20.6MiB4f8a2979941a1f081ec8e545cca0b72608c0db1c5a3fd377a94db40649dcd3d4
+ +

0.1.1

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameKindSizeSha256
zig-0.1.1.tar.xzSource1.62MiBffca0cfb263485287e19cc997b08701fcd5f24b700345bcdc3dd8074f5a104e0
zig-win64-0.1.1.zipBinary19.3MiB6fc88bef531af7e567fe30bf60da1487b86833cbee84c7a2f3e317030aa5b660
+
+ + diff --git a/ci/srht/index.json b/ci/srht/index.json new file mode 100644 index 0000000000..e20a352808 --- /dev/null +++ b/ci/srht/index.json @@ -0,0 +1,350 @@ +{ + "master": { + "version": "{{MASTER_VERSION}}", + "date": "{{MASTER_DATE}}", + "docs": "https://ziglang.org/documentation/master/", + "src": { + "tarball": "https://ziglang.org/builds/{{SRC_TARBALL}}", + "shasum": "{{SRC_SHASUM}}", + "size": "{{SRC_BYTESIZE}}" + }, + "x86_64-freebsd": { + "tarball": "https://ziglang.org/builds/{{X86_64_FREEBSD_TARBALL}}", + "shasum": "{{X86_64_FREEBSD_SHASUM}}", + "size": "{{X86_64_FREEBSD_BYTESIZE}}" + }, + "x86_64-macos": { + "tarball": "https://ziglang.org/builds/{{X86_64_MACOS_TARBALL}}", + "shasum": "{{X86_64_MACOS_SHASUM}}", + "size": "{{X86_64_MACOS_BYTESIZE}}" + }, + "x86_64-windows": { + "tarball": "https://ziglang.org/builds/{{X86_64_WINDOWS_TARBALL}}", + "shasum": "{{X86_64_WINDOWS_SHASUM}}", + "size": "{{X86_64_WINDOWS_BYTESIZE}}" + }, + "x86_64-linux": { + "tarball": "https://ziglang.org/builds/{{X86_64_LINUX_TARBALL}}", + "shasum": "{{X86_64_LINUX_SHASUM}}", + "size": "{{X86_64_LINUX_BYTESIZE}}" + }, + "aarch64-linux": { + "tarball": "https://ziglang.org/builds/{{AARCH64_LINUX_TARBALL}}", + "shasum": "{{AARCH64_LINUX_SHASUM}}", + "size": "{{AARCH64_LINUX_BYTESIZE}}" + } + }, + "0.7.1": { + "date": "2020-12-13", + "docs": "https://ziglang.org/documentation/0.7.1/", + "stdDocs": "https://ziglang.org/documentation/0.7.1/std/", + "notes": "https://ziglang.org/download/0.7.1/release-notes.html", + "src": { + "tarball": "https://ziglang.org/download/0.7.1/zig-0.7.1.tar.xz", + "shasum": "2db3b944ab368d955b48743d9f7c963b8f96de1a441ba5a35e197237cc6dae44", + "size": "10711824" + }, + "bootstrap": { + "tarball": "https://ziglang.org/download/0.7.1/zig-bootstrap-0.7.1.tar.xz", + "shasum": "040f27c1fae4b0cac0a2782aecdb691f6a2f8e89db6a6ed35024c31c304fd9b2", + "size": "40232612" + }, + "x86_64-freebsd": { + "tarball": "https://ziglang.org/download/0.7.1/zig-freebsd-x86_64-0.7.1.tar.xz", + "shasum": "e73c1dca35791a3183fdd5ecde0443ebbe180942efceafe651886034fb8def09", + "size": "39066808" + }, + "aarch64-linux": { + "tarball": "https://ziglang.org/download/0.7.1/zig-linux-aarch64-0.7.1.tar.xz", + "shasum": "48ec90eba407e4587ddef7eecef25fec7e13587eb98e3b83c5f2f5fff2a5cbe7", + "size": "33780552" + }, + "armv7a-linux": { + "tarball": "https://ziglang.org/download/0.7.1/zig-linux-armv7a-0.7.1.tar.xz", + "shasum": "5a0662e07b4c4968665e1f97558f8591f6facec45d2e0ff5715e661743107ceb", + "size": "35813504" + }, + "i386-linux": { + "tarball": "https://ziglang.org/download/0.7.1/zig-linux-i386-0.7.1.tar.xz", + "shasum": "4882e052e5f83690bd0334bb4fc1702b5403cb3a3d2aa63fd7d6043d8afecba3", + "size": "39230912" + }, + "riscv64-linux": { + "tarball": "https://ziglang.org/download/0.7.1/zig-linux-riscv64-0.7.1.tar.xz", + "shasum": "187294bfd35983348c3fe042901b42e67e7e36ab7f77a5f969d21c0051f4d21f", + "size": "37454812" + }, + "x86_64-linux": { + "tarball": "https://ziglang.org/download/0.7.1/zig-linux-x86_64-0.7.1.tar.xz", + "shasum": "18c7b9b200600f8bcde1cd8d7f1f578cbc3676241ce36d771937ce19a8159b8d", + "size": "37848176" + }, + "x86_64-macos": { + "tarball": "https://ziglang.org/download/0.7.1/zig-macos-x86_64-0.7.1.tar.xz", + "shasum": "845cb17562978af0cf67e3993f4e33330525eaf01ead9386df9105111e3bc519", + "size": "36211076" + }, + "i386-windows": { + "tarball": "https://ziglang.org/download/0.7.1/zig-windows-i386-0.7.1.zip", + "shasum": "a1b9a7421e13153e07fd2e2c93ff29aad64d83105b8fcdafa633dbe689caf1c0", + "size": "54374983" + }, + "x86_64-windows": { + "tarball": "https://ziglang.org/download/0.7.1/zig-windows-x86_64-0.7.1.zip", + "shasum": "4818a8a65b4672bc52c0ae7f14d014e0eb8caf10f12c0745176820384cea296a", + "size": "54909997" + } + }, + "0.7.0": { + "date": "2020-11-08", + "docs": "https://ziglang.org/documentation/0.7.0/", + "stdDocs": "https://ziglang.org/documentation/0.7.0/std/", + "notes": "https://ziglang.org/download/0.7.0/release-notes.html", + "src": { + "tarball": "https://ziglang.org/download/0.7.0/zig-0.7.0.tar.xz", + "shasum": "0efd2cf6c3b05723db80e9cf193bc55150bba84ca41f855a90f53fc756445f83", + "size": "10683920" + }, + "bootstrap": { + "tarball": "https://ziglang.org/download/0.7.0/zig-bootstrap-0.7.0.tar.xz", + "shasum": "f073beaf5c53c8c57c0d374cbfcb332ef92ad703173edba0d9e0f2ed28401b72", + "size": "40200436" + }, + "x86_64-freebsd": { + "tarball": "https://ziglang.org/download/0.7.0/zig-freebsd-x86_64-0.7.0.tar.xz", + "shasum": "a0c926272ee4ae720034b4a6a1dc98399d76156dd84182554740f0ca8a41fc99", + "size": "34798992" + }, + "aarch64-linux": { + "tarball": "https://ziglang.org/download/0.7.0/zig-linux-aarch64-0.7.0.tar.xz", + "shasum": "f89933bac87d44be82325754ff88423020c81c7032a6fc41cfeb81e982eeab9b", + "size": "33096140" + }, + "armv7a-linux": { + "tarball": "https://ziglang.org/download/0.7.0/zig-linux-armv7a-0.7.0.tar.xz", + "shasum": "011c267e25a96ee160505a560c441daa045359a9d50e13ab1bada9d75c95db2d", + "size": "35157584" + }, + "i386-linux": { + "tarball": "https://ziglang.org/download/0.7.0/zig-linux-i386-0.7.0.tar.xz", + "shasum": "4bb2072cd363bcb1cbeb4872ff5cbc1f683b02d0cc1f90c46e3ea7422ce53222", + "size": "38530596" + }, + "riscv64-linux": { + "tarball": "https://ziglang.org/download/0.7.0/zig-linux-riscv64-0.7.0.tar.xz", + "shasum": "40dff81faa6f232ac40abbf88b9371f3cc932b6e09c423b94387c9ea580cb7be", + "size": "36759992" + }, + "x86_64-linux": { + "tarball": "https://ziglang.org/download/0.7.0/zig-linux-x86_64-0.7.0.tar.xz", + "shasum": "e619b1c6094c095b932767f527aee2507f847ea981513ff8a08aab0fd730e0ac", + "size": "37154432" + }, + "aarch64-macos": { + "tarball": "https://ziglang.org/download/0.7.0/zig-macos-aarch64-0.7.0.tar.xz", + "shasum": "338238035734db74ea4f30e500a4893bf741d38305c10952d5e39fa05bdb057d", + "size": "33739424" + }, + "x86_64-macos": { + "tarball": "https://ziglang.org/download/0.7.0/zig-macos-x86_64-0.7.0.tar.xz", + "shasum": "94063f9a311cbbf7a2e0a12295e09437182cf950f18cb0eb30ea9893f3677f24", + "size": "35258328" + }, + "i386-windows": { + "tarball": "https://ziglang.org/download/0.7.0/zig-windows-i386-0.7.0.zip", + "shasum": "b1e520aacbfbd645ff3521b3eb4d44166d9a0288b8725e4b001f8b50a425eb2e", + "size": "53390517" + }, + "x86_64-windows": { + "tarball": "https://ziglang.org/download/0.7.0/zig-windows-x86_64-0.7.0.zip", + "shasum": "965f56c0a36f9cda2125e3a348bc654f7f155e2804c3667d231775ec228f8553", + "size": "53943784" + } + }, + "0.6.0": { + "date": "2020-04-13", + "docs": "https://ziglang.org/documentation/0.6.0/", + "stdDocs": "https://ziglang.org/documentation/0.6.0/std/", + "notes": "https://ziglang.org/download/0.6.0/release-notes.html", + "src": { + "tarball": "https://ziglang.org/download/0.6.0/zig-0.6.0.tar.xz", + "shasum": "5d167dc19354282dd35dd17b38e99e1763713b9be8a4ba9e9e69284e059e7204", + "size": "10349552" + }, + "bootstrap": { + "tarball": "https://ziglang.org/download/0.6.0/zig-bootstrap-0.6.0.tar.xz", + "shasum": "5e0e4dc878b3dd0c1852a442b174f0732e8c07869a8fcd226b71a93b89b381ab", + "size": "38469948" + }, + "x86_64-freebsd": { + "tarball": "https://ziglang.org/download/0.6.0/zig-freebsd-x86_64-0.6.0.tar.xz", + "shasum": "190ff79c1eb56805a315d7c7a51082e32f62926250c0702b36760c225e1634a3", + "size": "36974604" + }, + "aarch64-linux": { + "tarball": "https://ziglang.org/download/0.6.0/zig-linux-aarch64-0.6.0.tar.xz", + "shasum": "e7520efd42cfa02be48c2e430d08fe1f3cbb999d21d9f0d3ffd0febb976b2f41", + "size": "37090044" + }, + "armv6kz-linux": { + "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv6kz-0.6.0.tar.xz", + "shasum": "36b6493b3fed43eb1f0000e765798ad31a6bb7d7fd3f553ac1c3761dbc919b82", + "size": "39133452" + }, + "armv7a-linux": { + "tarball": "https://ziglang.org/download/0.6.0/zig-linux-armv7a-0.6.0.tar.xz", + "shasum": "946969abe357def95ca9cbbfcebfcf2d90cf967bcd3f48ee87662e32d91d8f35", + "size": "39143748" + }, + "i386-linux": { + "tarball": "https://ziglang.org/download/0.6.0/zig-linux-i386-0.6.0.tar.xz", + "shasum": "a97a2f9ae21575743cdd763c1917d49400d83fc562ef64582b18bade43eb24ce", + "size": "44877640" + }, + "riscv64-linux": { + "tarball": "https://ziglang.org/download/0.6.0/zig-linux-riscv64-0.6.0.tar.xz", + "shasum": "68ddee43f7503c8ae5f26a921f3602c34719a02ed2241f528c0b8b888cc14b38", + "size": "41993144" + }, + "x86_64-linux": { + "tarball": "https://ziglang.org/download/0.6.0/zig-linux-x86_64-0.6.0.tar.xz", + "shasum": "08fd3c757963630645441c2772362e9c2294020c44f14fce1b89f45de0dc1253", + "size": "44766320" + }, + "x86_64-macos": { + "tarball": "https://ziglang.org/download/0.6.0/zig-macos-x86_64-0.6.0.tar.xz", + "shasum": "17270360e87ddc49f737e760047b2fac49f1570a824a306119b1194ac4093895", + "size": "42573184" + }, + "i386-windows": { + "tarball": "https://ziglang.org/download/0.6.0/zig-windows-i386-0.6.0.zip", + "shasum": "3b0a02618743e92175990dc6d1a787bb95ff62c4cda016f1c14c7786f575f8ca", + "size": "60446431" + }, + "x86_64-windows": { + "tarball": "https://ziglang.org/download/0.6.0/zig-windows-x86_64-0.6.0.zip", + "shasum": "c3b897832523e1026e10b2d8d55d7f895185c0a27a63681f3a23219c3f1c38f4", + "size": "49065511" + } + }, + "0.5.0": { + "date": "2019-09-30", + "docs": "https://ziglang.org/documentation/0.5.0/", + "notes": "https://ziglang.org/download/0.5.0/release-notes.html", + "src": { + "tarball": "https://ziglang.org/download/0.5.0/zig-0.5.0.tar.xz", + "shasum": "55ae16960f152bcb9cf98b4f8570902d0e559a141abf927f0d3555b7cc838a31", + "size": "10956132" + }, + "x86_64-freebsd": { + "tarball": "https://ziglang.org/download/0.5.0/zig-freebsd-x86_64-0.5.0.tar.xz", + "shasum": "9e1f4d36c3d584c0aa01f20eb4cd0a0eef3eee5af23e483b8414de55feab6ab6", + "size": "33650744" + }, + "x86_64-macos": { + "tarball": "https://ziglang.org/download/0.5.0/zig-macos-x86_64-0.5.0.tar.xz", + "shasum": "28702cc05745c7c0bd450487d5f4091bf0a1ad279b35eb9a640ce3e3a15b300d", + "size": "37898664" + }, + "x86_64-windows": { + "tarball": "https://ziglang.org/download/0.5.0/zig-windows-x86_64-0.5.0.zip", + "shasum": "58141323db8d84a5af62746be5f9140bc161ee760ef33dc91a887bf9ac021976", + "size": "44871804" + }, + "x86_64-linux": { + "tarball": "https://ziglang.org/download/0.5.0/zig-linux-x86_64-0.5.0.tar.xz", + "shasum": "43e8f8a8b8556edd373ddf9c1ef3ca6cf852d4d09fe07d5736d12fefedd2b4f7", + "size": "40895068" + } + }, + "0.4.0": { + "date": "2019-04-08", + "docs": "https://ziglang.org/documentation/0.4.0/", + "notes": "https://ziglang.org/download/0.4.0/release-notes.html", + "src": { + "tarball": "https://ziglang.org/download/0.4.0/zig-0.4.0.tar.xz", + "shasum": "fec1f3f6b359a3d942e0a7f9157b3b30cde83927627a0e1ea95c54de3c526cfc", + "size": "5348776" + }, + "x86_64-freebsd": { + "tarball": "https://ziglang.org/download/0.4.0/zig-freebsd-x86_64-0.4.0.tar.xz", + "shasum": "3d557c91ac36d8262eb1733bb5f261c95944f9b635e43386e3d00a3272818c30", + "size": "27269672" + }, + "x86_64-macos": { + "tarball": "https://ziglang.org/download/0.4.0/zig-macos-x86_64-0.4.0.tar.xz", + "shasum": "67c932982484d017c5111e54af9f33f15e8e05c6bc5346a55e04052159c964a8", + "size": "30841504" + }, + "x86_64-windows": { + "tarball": "https://ziglang.org/download/0.4.0/zig-windows-x86_64-0.4.0.zip", + "shasum": "fbc3dd205e064c263063f69f600bedb18e3d0aa2efa747a63ef6cafb6d73f127", + "size": "35800101" + }, + "x86_64-linux": { + "tarball": "https://ziglang.org/download/0.4.0/zig-linux-x86_64-0.4.0.tar.xz", + "shasum": "fb1954e2fb556a01f8079a08130e88f70084e08978ff853bb2b1986d8c39d84e", + "size": "32876100" + } + }, + "0.3.0": { + "date": "2018-09-28", + "docs": "https://ziglang.org/documentation/0.3.0/", + "notes": "https://ziglang.org/download/0.3.0/release-notes.html", + "src": { + "tarball": "https://ziglang.org/download/0.3.0/zig-0.3.0.tar.xz", + "shasum": "d70af604f3a8622f3393d93abb3e056bf60351e32d121e6fa4fe03d8d41e1f5a", + "size": "2335592" + }, + "x86_64-macos": { + "tarball": "https://ziglang.org/download/0.3.0/zig-macos-x86_64-0.3.0.tar.xz", + "shasum": "19dec1f1943ab7be26823376d466f7e456143deb34e17502778a949034dc2e7e", + "size": "23712696" + }, + "x86_64-windows": { + "tarball": "https://ziglang.org/download/0.3.0/zig-windows-x86_64-0.3.0.zip", + "shasum": "bb568c03950958f8bb3472139c3ab5ed74547c8c694ab50f404c202faf51baf4", + "size": "22524425" + }, + "x86_64-linux": { + "tarball": "https://ziglang.org/download/0.3.0/zig-linux-x86_64-0.3.0.tar.xz", + "shasum": "b378d0aae30cb54f28494e7bc4efbc9bfb6326f47bfb302e8b5287af777b2f3c", + "size": "25209304" + } + }, + "0.2.0": { + "date": "2018-03-15", + "docs": "https://ziglang.org/documentation/0.2.0/", + "notes": "https://ziglang.org/download/0.2.0/release-notes.html", + "src": { + "tarball": "https://ziglang.org/download/0.2.0/zig-0.2.0.tar.xz", + "shasum": "29c9beb172737f4d5019b88ceae829ae8bc6512fb4386cfbf895ae2b42aa6965", + "size": "1940832" + }, + "x86_64-windows": { + "tarball": "https://ziglang.org/download/0.2.0/zig-win64-0.2.0.zip", + "shasum": "4f8a2979941a1f081ec8e545cca0b72608c0db1c5a3fd377a94db40649dcd3d4", + "size": "21076274" + }, + "x86_64-linux": { + "tarball": "https://ziglang.org/download/0.2.0/zig-linux-x86_64-0.2.0.tar.xz", + "shasum": "209c6fb745d42474c0a73d6f291c7ae3a38b6a1b6b641eea285a7f840cc1a890", + "size": "22551928" + } + }, + "0.1.1": { + "date": "2017-10-17", + "docs": "https://ziglang.org/documentation/0.1.1/", + "notes": "https://ziglang.org/download/0.1.1/release-notes.html", + "src": { + "tarball": "https://ziglang.org/download/0.1.1/zig-0.1.1.tar.xz", + "shasum": "ffca0cfb263485287e19cc997b08701fcd5f24b700345bcdc3dd8074f5a104e0", + "size": "1659716" + }, + "x86_64-windows": { + "tarball": "https://ziglang.org/download/0.1.1/zig-win64-0.1.1.zip", + "shasum": "6fc88bef531af7e567fe30bf60da1487b86833cbee84c7a2f3e317030aa5b660", + "size": "19757776" + } + } +} diff --git a/ci/srht/update-download-page.zig b/ci/srht/update-download-page.zig new file mode 100644 index 0000000000..0fb1f3913c --- /dev/null +++ b/ci/srht/update-download-page.zig @@ -0,0 +1,103 @@ +const std = @import("std"); +const path = std.fs.path; +const mem = std.mem; + +pub fn main() !void { + var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); + defer arena.deinit(); + + const allocator = &arena.allocator; + + const out_dir = "out"; + try std.fs.cwd().makePath(out_dir); + { + const out_file = out_dir ++ path.sep_str ++ "index.html"; + const in_file = "index.html"; + try render(allocator, in_file, out_file, .html); + } + { + const out_file = out_dir ++ path.sep_str ++ "index.json"; + const in_file = "index.json"; + try render(allocator, in_file, out_file, .plain); + } +} + +fn render( + allocator: *mem.Allocator, + in_file: []const u8, + out_file: []const u8, + fmt: enum { + html, + plain, + }, +) !void { + const in_contents = try std.fs.cwd().readFileAlloc(allocator, in_file, 1 * 1024 * 1024); + + var vars = try std.process.getEnvMap(allocator); + + var buffer = std.ArrayList(u8).init(allocator); + defer buffer.deinit(); + + const State = enum { + Start, + OpenBrace, + VarName, + EndBrace, + }; + const writer = buffer.writer(); + var state = State.Start; + var var_name_start: usize = undefined; + var line: usize = 1; + for (in_contents) |byte, index| { + switch (state) { + State.Start => switch (byte) { + '{' => { + state = State.OpenBrace; + }, + else => try writer.writeByte(byte), + }, + State.OpenBrace => switch (byte) { + '{' => { + state = State.VarName; + var_name_start = index + 1; + }, + else => { + try writer.writeByte('{'); + try writer.writeByte(byte); + state = State.Start; + }, + }, + State.VarName => switch (byte) { + '}' => { + const var_name = in_contents[var_name_start..index]; + if (vars.get(var_name)) |value| { + const trimmed = mem.trim(u8, value, " \r\n"); + if (fmt == .html and mem.endsWith(u8, var_name, "BYTESIZE")) { + try writer.print("{Bi:.1}", .{try std.fmt.parseInt(u64, trimmed, 10)}); + } else { + try writer.writeAll(trimmed); + } + } else { + std.debug.warn("line {d}: missing variable: {s}\n", .{ line, var_name }); + try writer.writeAll("(missing)"); + } + state = State.EndBrace; + }, + else => {}, + }, + State.EndBrace => switch (byte) { + '}' => { + state = State.Start; + }, + else => { + std.debug.warn("line {d}: invalid byte: '0x{x}'", .{ line, byte }); + std.process.exit(1); + }, + }, + } + if (byte == '\n') { + line += 1; + } + } + try std.fs.cwd().writeFile(out_file, buffer.items); +} diff --git a/ci/srht/update_download_page b/ci/srht/update_download_page index 159ae44c90..52d4b76324 100755 --- a/ci/srht/update_download_page +++ b/ci/srht/update_download_page @@ -28,12 +28,21 @@ curl --fail -I "$X86_64_FREEBSD_JSON_URL" >/dev/null || exit 0 pip3 install s3cmd --user S3CMD="$HOME/.local/bin/s3cmd" +# This is the user when pushing to the website repo. +git config --global user.email "ziggy@ziglang.org" +git config --global user.name "Ziggy" + +# Refresh this with `ssh-keyscan github.com` from a trusted Internet connection. +# We hard code the public key here to detect man-in-the-middle attacks. +echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" >> ~/.ssh/known_hosts + +# We don't want the .git folder inside the tarball. rm -rf .git cd "$HOME" wget "https://ziglang.org/builds/$NATIVE_TARBALL" tar xf "$NATIVE_TARBALL" -ZIGDIR=$(basename $NATIVE_TARBALL .tar.xz) +ZIGDIR="$(pwd)/$(basename $NATIVE_TARBALL .tar.xz)" ZIG="$ZIGDIR/zig" LANGREF="$ZIGDIR/docs/langref.html" SRCTARBALLDIR="zig-$VERSION" @@ -68,28 +77,32 @@ export X86_64_FREEBSD_TARBALL="$(echo "$X86_64_FREEBSD_JSON" | jq .tarball -r)" export X86_64_FREEBSD_BYTESIZE="$(echo "$X86_64_FREEBSD_JSON" | jq .size -r)" export X86_64_FREEBSD_SHASUM="$(echo "$X86_64_FREEBSD_JSON" | jq .shasum -r)" -# Refresh this with `ssh-keyscan github.com` from a trusted Internet connection. -# We hard code the public key here to detect man-in-the-middle attacks. -echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" >> ~/.ssh/known_hosts +export MASTER_DATE="$(date +%Y-%m-%d)" +export MASTER_VERSION="$VERSION" +cd "$SRCTARBALLDIR/ci/srht" +"$ZIG" run update-download-page.zig +CIDIR="$(pwd)" + +# Create index.json and index.html and update the website repo. +cd "$HOME" git clone git@github.com:ziglang/www.ziglang.org.git cd www.ziglang.org git checkout hugo-redesign -export MASTER_DATE="$(date +%Y-%m-%d)" -export MASTER_VERSION="$VERSION" -"../$ZIG" run ci/update-download-page.zig +WWWDIR="$(pwd)" -$S3CMD put -P --no-mime-magic --add-header="cache-control: public, max-age=31536000, immutable" "../$SRC_TARBALL" s3://ziglang.org/builds/ +$S3CMD put -P --no-mime-magic --add-header="cache-control: public, max-age=31536000, immutable" "$HOME/$SRC_TARBALL" s3://ziglang.org/builds/ -$S3CMD put -P --no-mime-magic "../$LANGREF" s3://ziglang.org/documentation/master/index.html --add-header="Cache-Control: max-age=0, must-revalidate" -$S3CMD put -P --no-mime-magic "../$ZIGDIR/docs/std/index.html" s3://ziglang.org/documentation/master/std/index.html --add-header="Cache-Control: max-age=0, must-revalidate" -$S3CMD put -P --no-mime-magic "../$ZIGDIR/docs/std/data.js" s3://ziglang.org/documentation/master/std/data.js --add-header="Cache-Control: max-age=0, must-revalidate" -$S3CMD put -P --no-mime-magic "../$ZIGDIR/docs/std/main.js" s3://ziglang.org/documentation/master/std/main.js --add-header="Cache-Control: max-age=0, must-revalidate" +$S3CMD put -P --no-mime-magic "$LANGREF" s3://ziglang.org/documentation/master/index.html --add-header="Cache-Control: max-age=0, must-revalidate" +$S3CMD put -P --no-mime-magic "$ZIGDIR/docs/std/index.html" s3://ziglang.org/documentation/master/std/index.html --add-header="Cache-Control: max-age=0, must-revalidate" +$S3CMD put -P --no-mime-magic "$ZIGDIR/docs/std/data.js" s3://ziglang.org/documentation/master/std/data.js --add-header="Cache-Control: max-age=0, must-revalidate" +$S3CMD put -P --no-mime-magic "$ZIGDIR/docs/std/main.js" s3://ziglang.org/documentation/master/std/main.js --add-header="Cache-Control: max-age=0, must-revalidate" -$S3CMD put -P --no-mime-magic ci/out/index.html s3://ziglang.org/download/index.html --add-header="Cache-Control: max-age=0, must-revalidate" -$S3CMD put -P --no-mime-magic ci/out/index.json s3://ziglang.org/download/index.json --add-header="Cache-Control: max-age=0, must-revalidate" +$S3CMD put -P --no-mime-magic "$CIDIR/out/index.html" s3://ziglang.org/download/index.html --add-header="Cache-Control: max-age=0, must-revalidate" +$S3CMD put -P --no-mime-magic "$CIDIR/out/index.json" s3://ziglang.org/download/index.json --add-header="Cache-Control: max-age=0, must-revalidate" -cp ci/out/index.json data/releases.json +cd "$WWWDIR" +cp "$CIDIR/out/index.json" data/releases.json git add data/releases.json git commit -m "CI: update releases.json" git push origin hugo-redesign