Skip to content

Commit

Permalink
add bzlws
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Jul 5, 2024
1 parent a7c42e8 commit b484984
Show file tree
Hide file tree
Showing 4 changed files with 71 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,
)
23 changes: 23 additions & 0 deletions modules/bzlws/0.2.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
matrix:
platform: [ubuntu2004, macos, macos_arm64, windows]
bazel: [7.x]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets: ['@bzlws//...']

bcr_test_module:
module_path: test
matrix:
platform: [ubuntu2004, macos, macos_arm64, windows]
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 b484984

Please sign in to comment.