zig sdk: use mirror.bazel.build
The current version of Zig SDK was uploaded to mirror.bazel.build via https://github.com/bazelbuild/bazel/issues/17635 . Thanks Google!
This commit is contained in:
parent
0d0441b9c7
commit
9621da8ad6
@ -34,9 +34,8 @@ http_archive(
|
|||||||
|
|
||||||
load("@bazel-zig-cc//toolchain:defs.bzl", zig_toolchains = "toolchains")
|
load("@bazel-zig-cc//toolchain:defs.bzl", zig_toolchains = "toolchains")
|
||||||
|
|
||||||
# version, url_formats and host_platform_sha256 are optional, but highly
|
# version, url_formats and host_platform_sha256 are optional for those who
|
||||||
# recommended. Zig SDK is by default downloaded from dl.jakstys.lt, which is a
|
# want to control their Zig SDK version.
|
||||||
# tiny server in the closet of Yours Truly.
|
|
||||||
zig_toolchains(
|
zig_toolchains(
|
||||||
version = "<...>",
|
version = "<...>",
|
||||||
url_formats = [
|
url_formats = [
|
||||||
|
@ -20,12 +20,9 @@ URL_FORMAT_RELEASE = "https://ziglang.org/download/{version}/zig-{host_platform}
|
|||||||
# awaiting my attention or your contribution.
|
# awaiting my attention or your contribution.
|
||||||
URL_FORMAT_NIGHTLY = "https://ziglang.org/builds/zig-{host_platform}-{version}.{_ext}"
|
URL_FORMAT_NIGHTLY = "https://ziglang.org/builds/zig-{host_platform}-{version}.{_ext}"
|
||||||
|
|
||||||
# Author's mirror that doesn't purge the nightlies so aggressively. I will be
|
# Official Bazel's mirror with selected Zig SDK versions. Bazel community is
|
||||||
# cleaning those up manually only after the artifacts are not in use for many
|
# generous enough to host the artifacts, which we use.
|
||||||
# months in bazel-zig-cc. dl.jakstys.lt is a small x86_64 server with an NVMe
|
URL_FORMAT_BAZELMIRROR = "https://mirror.bazel.build/" + URL_FORMAT_NIGHTLY.lstrip("https://")
|
||||||
# drive sitting in my home closet on a 1GB/s symmetric residential connection,
|
|
||||||
# which, as of writing, has been quite reliable.
|
|
||||||
URL_FORMAT_JAKSTYS = "https://dl.jakstys.lt/zig/zig-{host_platform}-{version}.{_ext}"
|
|
||||||
|
|
||||||
_VERSION = "0.11.0-dev.1796+c9e02d3e6"
|
_VERSION = "0.11.0-dev.1796+c9e02d3e6"
|
||||||
|
|
||||||
@ -47,7 +44,7 @@ _HOST_PLATFORM_EXT = {
|
|||||||
|
|
||||||
def toolchains(
|
def toolchains(
|
||||||
version = _VERSION,
|
version = _VERSION,
|
||||||
url_formats = [URL_FORMAT_NIGHTLY, URL_FORMAT_JAKSTYS],
|
url_formats = [URL_FORMAT_BAZELMIRROR, URL_FORMAT_NIGHTLY],
|
||||||
host_platform_sha256 = _HOST_PLATFORM_SHA256,
|
host_platform_sha256 = _HOST_PLATFORM_SHA256,
|
||||||
host_platform_ext = _HOST_PLATFORM_EXT):
|
host_platform_ext = _HOST_PLATFORM_EXT):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user