Skip to content

Commit

Permalink
update Zig versions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 22, 2023
1 parent 7791bc5 commit 0eaa821
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bazel_dep(name = "bazel_skylib", version = "1.4.1")
bazel_dep(name = "platforms", version = "0.0.6")

zig = use_extension("//zig:extensions.bzl", "zig")
zig.toolchain(zig_version = "0.10.1")
zig.toolchain(zig_version = "0.11.0")
use_repo(zig, "zig_toolchains")

register_toolchains("@rules_zig//zig/target:all")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ rules_zig_dependencies()

zig_register_toolchains(
name = "zig",
zig_version = "0.10.1",
zig_version = "0.11.0",
)
```

Expand Down
2 changes: 1 addition & 1 deletion e2e/workspace/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ rules_zig_dependencies()

zig_register_toolchains(
name = "zig",
zig_version = "0.10.1",
zig_version = "0.11.0",
)
2 changes: 1 addition & 1 deletion e2e/workspace/zig_version.expected
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.1
0.11.0
34 changes: 34 additions & 0 deletions zig/private/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,40 @@ Generated from https://ziglang.org/download/index.json.
"""

TOOL_VERSIONS = {
"0.11.0": {
"aarch64-linux": struct(
url = "https://ziglang.org/download/0.11.0/zig-linux-aarch64-0.11.0.tar.xz",
integrity = "sha256-lW6wldi6RKxuvSf3yZVuR9kpN8EDv3VHRdCjnNql1MY=",
),
"aarch64-macos": struct(
url = "https://ziglang.org/download/0.11.0/zig-macos-aarch64-0.11.0.tar.xz",
integrity = "sha256-xuv5J7sTpwfXQmdHSp9VMnTmSQb9Ib8cdaIL3oyt97I=",
),
"aarch64-windows": struct(
url = "https://ziglang.org/download/0.11.0/zig-windows-aarch64-0.11.0.zip",
integrity = "sha256-XUvRPbXssN3HSSMeAPElwdMQh9cI6f+bRcT04T5IxmE=",
),
"x86-linux": struct(
url = "https://ziglang.org/download/0.11.0/zig-linux-x86-0.11.0.tar.xz",
integrity = "sha256-ew3D4OBwrg4NIkCxiSr2ofn6rDUWyuJOV/eg57BGYqg=",
),
"x86-windows": struct(
url = "https://ziglang.org/download/0.11.0/zig-windows-x86-0.11.0.zip",
integrity = "sha256-5ys2KJfyjGcWM+ZQqgUony5isVTvzKl3CURWyNrDrvo=",
),
"x86_64-linux": struct(
url = "https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz",
integrity = "sha256-LQDnif7E9xeQpue/g/+R1WSUPF7oQ8X9lm78R0tCMEc=",
),
"x86_64-macos": struct(
url = "https://ziglang.org/download/0.11.0/zig-macos-x86_64-0.11.0.tar.xz",
integrity = "sha256-HBxrmpBrQrquc2VuJOEI/YREu1C26P0D6eej+LXwVoY=",
),
"x86_64-windows": struct(
url = "https://ziglang.org/download/0.11.0/zig-windows-x86_64-0.11.0.zip",
integrity = "sha256-FCyqO4BNhrR1JVbJtrA5t1F6CK+jr4QmRcfi3NEl9lI=",
),
},
"0.10.1": {
"aarch64-linux": struct(
url = "https://ziglang.org/download/0.10.1/zig-linux-aarch64-0.10.1.tar.xz",
Expand Down
2 changes: 1 addition & 1 deletion zig/tests/versions_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ load("//zig/private:versions.bzl", "TOOL_VERSIONS")

def _smoke_test_impl(ctx):
env = unittest.begin(ctx)
asserts.equals(env, "0.10.1", TOOL_VERSIONS.keys()[0])
asserts.equals(env, "0.11.0", TOOL_VERSIONS.keys()[0])
return unittest.end(env)

_smoke_test = unittest.make(_smoke_test_impl)
Expand Down

0 comments on commit 0eaa821

Please sign in to comment.