Skip to content

Commit f7292ce

Browse files
committed
1 parent 0e7197f commit f7292ce

File tree

5 files changed

+96
-1
lines changed

5 files changed

+96
-1
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
"""
2+
Perl rules
3+
"""
4+
5+
module(
6+
name = "rules_perl",
7+
version = "0.4.3",
8+
)
9+
10+
bazel_dep(name = "platforms", version = "0.0.10")
11+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
12+
bazel_dep(name = "rules_cc", version = "0.0.17")
13+
bazel_dep(name = "rules_shell", version = "0.4.0")
14+
15+
repos = use_extension("@rules_perl//perl:extensions.bzl", "perl_repositories")
16+
use_repo(
17+
repos,
18+
"perl_darwin_amd64",
19+
"perl_darwin_arm64",
20+
"perl_linux_amd64",
21+
"perl_linux_arm64",
22+
"perl_windows_x86_64",
23+
)
24+
25+
register_toolchains(
26+
"@rules_perl//perl:perl_darwin_arm64_toolchain",
27+
"@rules_perl//perl:perl_darwin_amd64_toolchain",
28+
"@rules_perl//perl:perl_linux_amd64_toolchain",
29+
"@rules_perl//perl:perl_linux_arm64_toolchain",
30+
"@rules_perl//perl:perl_windows_x86_64_toolchain",
31+
)
32+
33+
cpan = use_extension("@rules_perl//perl/cpan:extensions.bzl", "cpan")
34+
cpan.install(
35+
name = "cpan_compiler_deps",
36+
lock = "//perl/cpan/3rdparty:cpanfile.snapshot.lock.json",
37+
)
38+
use_repo(
39+
cpan,
40+
"cpan_compiler_deps",
41+
)
42+
43+
dev_repos = use_extension("@rules_perl//perl:extensions.bzl", "perl_dev_repositories", dev_dependency = True)
44+
use_repo(
45+
dev_repos,
46+
"fcgi",
47+
"genhtml",
48+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/MODULE.bazel b/MODULE.bazel
2+
index d5f0bfe..91dac51 100644
3+
--- a/MODULE.bazel
4+
+++ b/MODULE.bazel
5+
@@ -4,7 +4,7 @@ Perl rules
6+
7+
module(
8+
name = "rules_perl",
9+
- version = "0.0.0",
10+
+ version = "0.4.3",
11+
)
12+
13+
bazel_dep(name = "platforms", version = "0.0.10")
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2024 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
matrix:
16+
platform: ["debian11", "macos_arm64", "ubuntu2004", "windows"]
17+
bazel: [7.x, 8.x]
18+
tasks:
19+
verify_targets:
20+
name: Verify build targets
21+
platform: ${{ platform }}
22+
bazel: ${{ bazel }}
23+
test_targets:
24+
- '@rules_perl//test/...'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"url": "https://github.com/bazel-contrib/rules_perl/archive/refs/tags/0.4.3.tar.gz",
3+
"integrity": "sha256-KFIiMSG0MaEAYKQrc3v9e2HIDndxf2ADcNYSO2yT6mU=",
4+
"strip_prefix": "rules_perl-0.4.3",
5+
"patch_strip": 1,
6+
"patches": {
7+
"module_dot_bazel.patch": "sha256-8TjvCG+JZz/kme7HnF4/srqMuXh+9Lr4bW0R8fwa/+Y="
8+
}
9+
}

modules/rules_perl/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"0.3.0",
2525
"0.4.0",
2626
"0.4.1",
27-
"0.4.2"
27+
"0.4.2",
28+
"0.4.3"
2829
]
2930
}

0 commit comments

Comments
 (0)