From b484984ce48998c0be854ca68d749ae6be6ee713 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Fri, 5 Jul 2024 09:06:06 -0700 Subject: [PATCH 1/3] add bzlws --- modules/bzlws/0.2.0/MODULE.bazel | 27 +++++++++++++++++++++++++++ modules/bzlws/0.2.0/presubmit.yml | 23 +++++++++++++++++++++++ modules/bzlws/0.2.0/source.json | 4 ++++ modules/bzlws/metadata.json | 17 +++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 modules/bzlws/0.2.0/MODULE.bazel create mode 100644 modules/bzlws/0.2.0/presubmit.yml create mode 100644 modules/bzlws/0.2.0/source.json create mode 100644 modules/bzlws/metadata.json diff --git a/modules/bzlws/0.2.0/MODULE.bazel b/modules/bzlws/0.2.0/MODULE.bazel new file mode 100644 index 00000000000..1cc32fd5672 --- /dev/null +++ b/modules/bzlws/0.2.0/MODULE.bazel @@ -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, +) diff --git a/modules/bzlws/0.2.0/presubmit.yml b/modules/bzlws/0.2.0/presubmit.yml new file mode 100644 index 00000000000..0265c61cafe --- /dev/null +++ b/modules/bzlws/0.2.0/presubmit.yml @@ -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: ['//...'] diff --git a/modules/bzlws/0.2.0/source.json b/modules/bzlws/0.2.0/source.json new file mode 100644 index 00000000000..5c8e1202b4a --- /dev/null +++ b/modules/bzlws/0.2.0/source.json @@ -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" +} diff --git a/modules/bzlws/metadata.json b/modules/bzlws/metadata.json new file mode 100644 index 00000000000..5f3f792e99c --- /dev/null +++ b/modules/bzlws/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/zaucy/bzlws", + "maintainers": [ + { + "email": "ezekiel@seaube.com", + "github": "zaucy", + "name": "Ezekiel Warren" + } + ], + "repository": [ + "github:zaucy/bzlws" + ], + "versions": [ + "0.2.0" + ], + "yanked_versions": {} +} From 402c7a0d6f864b25f24684e66c1efeb9fc0c0f9c Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Sat, 6 Jul 2024 20:55:22 -0700 Subject: [PATCH 2/3] fix: only build test module due to stardoc dep --- modules/bzlws/0.2.0/presubmit.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/bzlws/0.2.0/presubmit.yml b/modules/bzlws/0.2.0/presubmit.yml index 0265c61cafe..08b667fbcda 100644 --- a/modules/bzlws/0.2.0/presubmit.yml +++ b/modules/bzlws/0.2.0/presubmit.yml @@ -1,12 +1,6 @@ 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 From 9291c8cbbf2b2427e473c746434a33bf754c22ff Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Sat, 6 Jul 2024 21:01:38 -0700 Subject: [PATCH 3/3] fix: restrict platforms for now --- modules/bzlws/0.2.0/presubmit.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/bzlws/0.2.0/presubmit.yml b/modules/bzlws/0.2.0/presubmit.yml index 08b667fbcda..05448549fde 100644 --- a/modules/bzlws/0.2.0/presubmit.yml +++ b/modules/bzlws/0.2.0/presubmit.yml @@ -1,11 +1,12 @@ -matrix: - platform: [ubuntu2004, macos, macos_arm64, windows] - bazel: [7.x] - bcr_test_module: module_path: test matrix: - platform: [ubuntu2004, macos, macos_arm64, windows] + platform: + - ubuntu2204 + - windows + - macos_arm64 + # https://github.com/zaucy/bzlws/issues/19 + # - macos bazel: [7.x] tasks: run_test_module: