Skip to content

Commit

Permalink
add bzlws (#2369)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy authored Jul 8, 2024
1 parent 86812e7 commit 7294131
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
27 changes: 27 additions & 0 deletions modules/bzlws/0.2.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module(
name = "bzlws",
version = "0.2.0",
compatibility_level = 1,
)

bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "yaml-cpp", version = "0.8.0")

bazel_dep(name = "stardoc", version = "0.7.0", dev_dependency = True)
bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True)
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
commit = "204aa593e002cbd177d30f11f54cff3559110bb9",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
)

llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
llvm.toolchain(llvm_version = "17.0.6")
use_repo(llvm, "llvm_toolchain")

register_toolchains(
"@llvm_toolchain//:all",
dev_dependency = True,
)
18 changes: 18 additions & 0 deletions modules/bzlws/0.2.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
bcr_test_module:
module_path: test
matrix:
platform:
- ubuntu2204
- windows
- macos_arm64
# https://github.com/zaucy/bzlws/issues/19
# - macos
bazel: [7.x]
tasks:
run_test_module:
name: Build test module
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets: ['//...']
# https://github.com/zaucy/bzlws/issues/16
# test_targets: ['//...']
4 changes: 4 additions & 0 deletions modules/bzlws/0.2.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"integrity": "sha256-jl+BOXQ4QpE2DpndYZ6tN2TSMPvrL023GjfMtL9JjhQ=",
"url": "https://github.com/zaucy/bzlws/releases/download/0.2.0/bzlws-0.2.0.tar.gz"
}
17 changes: 17 additions & 0 deletions modules/bzlws/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/zaucy/bzlws",
"maintainers": [
{
"email": "[email protected]",
"github": "zaucy",
"name": "Ezekiel Warren"
}
],
"repository": [
"github:zaucy/bzlws"
],
"versions": [
"0.2.0"
],
"yanked_versions": {}
}

0 comments on commit 7294131

Please sign in to comment.