v0.5.0
Using Bzlmod with Bazel >=6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_zig", version = "0.5.0")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_zig",
sha256 = "481f3d191129fe9680f431865949536bb1dff20fc77f4a54d0a4bbe72823435f",
strip_prefix = "rules_zig-0.5.0",
url = "https://github.com/aherrmann/rules_zig/releases/download/v0.5.0/rules_zig-0.5.0.tar.gz",
)
###################
# rules_zig setup #
###################
# Fetches the rules_zig dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_zig//zig:repositories.bzl", "rules_zig_dependencies", "zig_register_toolchains")
rules_zig_dependencies()
zig_register_toolchains(
name = "zig",
zig_versions = [
"0.13.0",
"0.12.1",
"0.12.0",
"0.11.0",
],
)
Highlights
- Adds support for Zig 0.12.1 and 0.13.0.
- Adds support for arbitrary Zig version downloads, see example in tests.
What's Changed
- chore(deps): update dependency bazel_skylib to v1.6.0 by @renovate in #279
- chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.6.0 by @renovate in #280
- chore(deps): update dependency bazel_skylib to v1.6.1 by @renovate in #281
- chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.6.1 by @renovate in #282
- chore(deps): update dependency platforms to v0.0.10 by @renovate in #283
- chore: create devcontainer.json by @aherrmann in #284
- chore: don't hard-code platforms and versions by @aherrmann in #278
- chore: update the BCR presubmit configuration by @aherrmann in #286
- chore!: remove the deprecated zig_package rule by @aherrmann in #287
- refactor: Track Zig versions in JSON file by @aherrmann in #288
- chore(deps): update dependency aspect_bazel_lib to v2.7.2 by @renovate in #289
- chore!: drop Bazel 6 support by @aherrmann in #291
- feat: support user defined version index (incl. pre-release) by @aherrmann in #290
- chore: update .bazelrc configuratio by @aherrmann in #292
- chore: enable Bazel version 8 pre-release by @aherrmann in #293
- chore(deps): update dependency io_bazel_rules_go to v0.47.1 by @renovate in #294
- chore(deps): update dependency aspect_bazel_lib to v2.7.3 by @renovate in #295
- fix: load shared libraries from runfiles by @aherrmann in #297
- chore!: pin the default glibc version to 2.17 by @aherrmann in #299
- chore!: enable remote execution on CI for Linux by @aherrmann in #296
- chore(deps): update io_buildbuddy_buildbuddy_toolchain digest to dfb7aad by @renovate in #301
- chore(deps): update dependency rules_python to v0.32.0 by @renovate in #302
- chore(deps): update dependency rules_python to v0.32.0 by @renovate in #304
- chore(deps): update dependency rules_python to v0.32.1 by @renovate in #305
- chore: enable remote execution in integration tests by @aherrmann in #303
- chore(deps): update dependency rules_python to v0.32.2 by @renovate in #306
- chore(deps): update dependency rules_python to v0.32.2 by @renovate in #307
- chore(deps): update io_buildbuddy_buildbuddy_toolchain digest to dfb7aad by @renovate in #308
- chore(deps): update dependency io_bazel_rules_go to v0.48.0 by @renovate in #310
- chore(deps): update dependency bazel to v8.0.0-pre.20240516.1 by @renovate in #309
- chore(deps): update dependency gazelle to v0.37.0 by @renovate in #313
- chore(deps): update dependency aspect_bazel_lib to v2.7.6 by @renovate in #311
- chore(deps): update dependency bazel_gazelle to v0.37.0 by @renovate in #312
- chore(deps): update dependency aspect_bazel_lib to v2.7.7 by @renovate in #314
- chore(deps): update dependency bazel_skylib to v1.7.0 by @renovate in #315
- chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.7.0 by @renovate in #316
- chore(deps): update dependency bazel_skylib to v1.7.0 by @renovate in #317
- chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.7.0 by @renovate in #318
- chore(deps): update dependency bazel to v8.0.0-pre.20240523.3 by @renovate in #319
- chore(deps): update dependency bazel_skylib to v1.7.1 by @renovate in #320
- chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.7.1 by @renovate in #321
- chore(deps): update dependency bazel to v8.0.0-pre.20240530.1 by @renovate in #322
- chore(deps): update dependency rules_python to v0.33.0 by @renovate in #323
- chore(deps): update dependency rules_python to v0.33.0 by @renovate in #324
- chore(deps): update dependency rules_python to v0.33.1 by @renovate in #325
- chore(deps): update dependency rules_python to v0.33.1 by @renovate in #326
- chore(deps): update dependency bazel to v8.0.0-pre.20240603.2 by @renovate in #327
- chore(deps): update dependency rules_python to v0.33.2 by @renovate in #329
- chore(deps): update dependency rules_python to v0.33.2 by @renovate in #330
- chore(deps): update dependency io_bazel_rules_go to v0.48.1 by @renovate in #331
- chore(deps): update dependency io_bazel_stardoc to v0.7.0 by @renovate in #332
- chore(deps): update dependency stardoc to v0.7.0 by @renovate in #333
- chore(deps): update dependency bazel to v8.0.0-pre.20240607.2 by @renovate in #334
- chore(deps): update dependency rules_bazel_integration_test to v0.24.1 by @renovate in #336
- chore(deps): update dependency rules_bazel_integration_test to v0.24.1 by @renovate in #337
- chore(deps): update dependency aspect_bazel_lib to v2.7.8 by @renovate in #335
- chore(deps): update dependency rules_python to v0.34.0 by @renovate in #338
- chore: refactor CI workflow by @aherrmann in #339
- chore: fix generated files update test by @aherrmann in #341
- chore: update Zig versions up to 0.13.0 by @github-actions in #340
Full Changelog: v0.4.0...v0.5.0