Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Release: https://github.com/aherrmann/rules_zig/releases/tag/v0.6.1

_Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_

---------

Co-authored-by: Andreas Herrmann <[email protected]>
  • Loading branch information
publish-to-bcr-bot[bot] and aherrmann authored Dec 9, 2024
1 parent 07ff35e commit f3b711a
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 1 deletion.
83 changes: 83 additions & 0 deletions modules/rules_zig/0.6.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
module(
name = "rules_zig",
version = "0.6.1",
compatibility_level = 1,
)

bazel_dep(name = "aspect_bazel_lib", version = "2.9.4")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "platforms", version = "0.0.10")

zig = use_extension("//zig:extensions.bzl", "zig")
zig.index(file = "//zig/private:versions.json")
use_repo(zig, "zig_toolchains")

register_toolchains("@rules_zig//zig/target:all")

register_toolchains("@zig_toolchains//:all")

zig_dev = use_extension(
"//zig:extensions.bzl",
"zig",
dev_dependency = True,
)
zig_dev.toolchain(zig_version = "0.13.0")
zig_dev.toolchain(zig_version = "0.12.1")
zig_dev.toolchain(zig_version = "0.12.0")
zig_dev.toolchain(zig_version = "0.11.0")

bazel_dep(name = "toolchains_buildbuddy", dev_dependency = True)
archive_override(
module_name = "toolchains_buildbuddy",
integrity = "sha256-UA+poYaWFbPxgtoA2re4mX89c3/8yYchpKwr4pvvGOw=",
strip_prefix = "buildbuddy-toolchain-ffd296b7a9821174cdb2188d1373fd262cacb09d",
urls = "https://github.com/buildbuddy-io/buildbuddy-toolchain/archive/ffd296b7a9821174cdb2188d1373fd262cacb09d.tar.gz",
)

buildbuddy = use_extension(
"@toolchains_buildbuddy//:extensions.bzl",
"buildbuddy",
dev_dependency = True,
)
use_repo(buildbuddy, "buildbuddy_toolchain")

bazel_dep(name = "rules_cc", version = "0.0.13", dev_dependency = True)
bazel_dep(name = "stardoc", version = "0.7.1", dev_dependency = True, repo_name = "io_bazel_stardoc")
bazel_dep(name = "gazelle", version = "0.39.1", dev_dependency = True, repo_name = "bazel_gazelle")
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.7.1", dev_dependency = True)
bazel_dep(
name = "buildifier_prebuilt",
version = "7.3.1",
dev_dependency = True,
)
bazel_dep(name = "rules_multirun", version = "0.10.0", dev_dependency = True)
bazel_dep(name = "rules_python", version = "0.38.0", dev_dependency = True)
bazel_dep(
name = "rules_bazel_integration_test",
version = "0.27.0",
dev_dependency = True,
)

bazel_binaries = use_extension(
"@rules_bazel_integration_test//:extensions.bzl",
"bazel_binaries",
dev_dependency = True,
)

# NOTE: Keep in sync with WORKSPACE.
bazel_binaries.download(version_file = "//:.bazelversion")
bazel_binaries.download(version = "7.1.0")
use_repo(
bazel_binaries,
"bazel_binaries",
"bazel_binaries_bazelisk",
"build_bazel_bazel_.bazelversion",
"build_bazel_bazel_7_1_0",
)

# TODO[AH] Should be an implicit transitive dependency through rules_bazel_integration_test.
# However, if we do not include it explicitly, then the runfiles resolution for
# cgrindel_bazel_starlib/shlib/lib/message.sh fails in
# rules_bazel_integration_test/tools/update_deleted_packages.sh when invoked
# through the rules_multirun target //util:update.
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.21.0", dev_dependency = True)
12 changes: 12 additions & 0 deletions modules/rules_zig/0.6.1/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,7 +1,7 @@
module(
name = "rules_zig",
- version = "0.0.0",
+ version = "0.6.1",
compatibility_level = 1,
)

bazel_dep(name = "aspect_bazel_lib", version = "2.9.4")
22 changes: 22 additions & 0 deletions modules/rules_zig/0.6.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
matrix:
platform: ["ubuntu2204", "macos"] # ["windows"]
bazel: [7.x]
tasks:
run_tests:
name: "Run tests"
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- "//..."
bcr_test_module:
module_path: "e2e/workspace"
matrix:
platform: ["ubuntu2204", "macos"] # ["windows"]
bazel: [7.x]
tasks:
run_tests:
name: "Run test module"
platform: ${{ platform }}
bazel: ${{ bazel }}
test_targets:
- "//..."
9 changes: 9 additions & 0 deletions modules/rules_zig/0.6.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-kVAUB1Ml0QPemnMAyrxxa8EwQh3iDAvXQMc61hPOzR4=",
"strip_prefix": "rules_zig-0.6.1",
"url": "https://github.com/aherrmann/rules_zig/releases/download/v0.6.1/rules_zig-0.6.1.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-FqUqDW5tpMCCgzS88shz5XIfNG2y6TBT+X24G6xMqoY="
},
"patch_strip": 1
}
3 changes: 2 additions & 1 deletion modules/rules_zig/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"0.3.0",
"0.4.0",
"0.5.0",
"0.6.0"
"0.6.0",
"0.6.1"
],
"yanked_versions": {}
}

0 comments on commit f3b711a

Please sign in to comment.