From 3797b49a3797cec44364203aa6bfd90b541fdfaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurenz=20Altenm=C3=BCller?= Date: Sat, 17 Aug 2024 14:56:57 +0200 Subject: [PATCH 1/2] Add rules_cpan --- modules/rules_cpan/1.0.0/MODULE.bazel | 7 +++++++ modules/rules_cpan/1.0.0/presubmit.yml | 21 +++++++++++++++++++++ modules/rules_cpan/1.0.0/source.json | 6 ++++++ modules/rules_cpan/metadata.json | 17 +++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 modules/rules_cpan/1.0.0/MODULE.bazel create mode 100644 modules/rules_cpan/1.0.0/presubmit.yml create mode 100644 modules/rules_cpan/1.0.0/source.json create mode 100644 modules/rules_cpan/metadata.json diff --git a/modules/rules_cpan/1.0.0/MODULE.bazel b/modules/rules_cpan/1.0.0/MODULE.bazel new file mode 100644 index 00000000000..f5b3a180065 --- /dev/null +++ b/modules/rules_cpan/1.0.0/MODULE.bazel @@ -0,0 +1,7 @@ +module( + name = "rules_cpan", + version = "1.0.0", +) + +bazel_dep(name = "rules_perl", version = "0.2.3.bcr.1") # https://github.com/bazelbuild/bazel-central-registry/pull/2631 +bazel_dep(name = "rules_python", version = "0.34.0") \ No newline at end of file diff --git a/modules/rules_cpan/1.0.0/presubmit.yml b/modules/rules_cpan/1.0.0/presubmit.yml new file mode 100644 index 00000000000..fa8e4c39be9 --- /dev/null +++ b/modules/rules_cpan/1.0.0/presubmit.yml @@ -0,0 +1,21 @@ +--- +matrix: + platform: ["debian11", "macos", "ubuntu2204"] + bazel: [6.x, 7.x] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: ['@rules_cpan//...'] +bcr_test_module: + module_path: example + matrix: + platform: ["debian11", "macos", "ubuntu2204"] + bazel: [6.x, 7.x] + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: [//...] \ No newline at end of file diff --git a/modules/rules_cpan/1.0.0/source.json b/modules/rules_cpan/1.0.0/source.json new file mode 100644 index 00000000000..66b56880072 --- /dev/null +++ b/modules/rules_cpan/1.0.0/source.json @@ -0,0 +1,6 @@ +{ + "integrity": "sha256-lvsn7SQP2B1r0hydC6qAS/F0gPANMIsI45pqGkoQql4=", + "strip_prefix": "rules_cpan-1.0.0", + "url": "https://github.com/lalten/rules_cpan/releases/download/v1.0.0/rules_cpan-1.0.0.tar.gz", + "patch_strip": 1 +} diff --git a/modules/rules_cpan/metadata.json b/modules/rules_cpan/metadata.json new file mode 100644 index 00000000000..a5e649fb572 --- /dev/null +++ b/modules/rules_cpan/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/lalten/rules_cpan", + "maintainers": [ + { + "email": "bcr@laure.nz", + "github": "lalten", + "name": "Laurenz Altenmueller" + } + ], + "repository": [ + "github:lalten/rules_cpan" + ], + "versions": [ + "1.0.0" + ], + "yanked_versions": {} +} From 30e3a852e1a1bd5c7cd73cdc04b4dd56c6de59a8 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 20 Aug 2024 10:52:48 +0200 Subject: [PATCH 2/2] Example uses use_repo_rule, skip Bazel 6 --- modules/rules_cpan/1.0.0/presubmit.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/rules_cpan/1.0.0/presubmit.yml b/modules/rules_cpan/1.0.0/presubmit.yml index fa8e4c39be9..499b4acbd6d 100644 --- a/modules/rules_cpan/1.0.0/presubmit.yml +++ b/modules/rules_cpan/1.0.0/presubmit.yml @@ -12,10 +12,11 @@ bcr_test_module: module_path: example matrix: platform: ["debian11", "macos", "ubuntu2204"] - bazel: [6.x, 7.x] + bazel: [7.x] tasks: run_test_module: name: Run test module platform: ${{ platform }} bazel: ${{ bazel }} - test_targets: [//...] \ No newline at end of file + test_targets: [//...] +