Skip to content

Commit dab2a56

Browse files
1 parent e02a628 commit dab2a56

File tree

5 files changed

+94
-1
lines changed

5 files changed

+94
-1
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
module(
2+
name = "rules_apple",
3+
version = "3.20.1",
4+
bazel_compatibility = [">=7.0.0"],
5+
compatibility_level = 1,
6+
)
7+
8+
bazel_dep(name = "apple_support", version = "1.15.1", repo_name = "build_bazel_apple_support")
9+
bazel_dep(name = "bazel_features", version = "1.9.0")
10+
bazel_dep(name = "bazel_skylib", version = "1.3.0")
11+
bazel_dep(name = "platforms", version = "0.0.9")
12+
bazel_dep(name = "rules_cc", version = "0.0.10")
13+
bazel_dep(
14+
name = "rules_swift",
15+
version = "2.4.0",
16+
repo_name = "build_bazel_rules_swift",
17+
)
18+
19+
bazel_dep(
20+
name = "stardoc",
21+
version = "0.6.2",
22+
dev_dependency = True,
23+
repo_name = "io_bazel_stardoc",
24+
)
25+
bazel_dep(
26+
name = "protobuf",
27+
version = "21.7",
28+
dev_dependency = True,
29+
repo_name = "com_google_protobuf",
30+
)
31+
32+
non_module_deps = use_extension("//apple:extensions.bzl", "non_module_deps")
33+
use_repo(
34+
non_module_deps,
35+
"xctestrunner",
36+
)
37+
38+
provisioning_profile_repository = use_extension("//apple:apple.bzl", "provisioning_profile_repository_extension")
39+
use_repo(provisioning_profile_repository, "local_provisioning_profiles")
40+
41+
apple_cc_configure = use_extension("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure_extension")
42+
use_repo(apple_cc_configure, "local_config_apple_cc")
43+
44+
# TODO: Remove override when a protobuf release is available that supports
45+
# Bazel 8
46+
archive_override(
47+
module_name = "protobuf",
48+
integrity = "sha256-+dloYVexGlGsxKLTARuU4KXZ5ORo/BWPR6obFk73d+Q=",
49+
strip_prefix = "protobuf-b93b8e5f64ed922d101759380d7c6a2bbe474e26",
50+
urls = ["https://github.com/protocolbuffers/protobuf/archive/b93b8e5f64ed922d101759380d7c6a2bbe474e26.zip"],
51+
)
52+
53+
# TODO: Remove override when a protobuf release that marks `stardoc` as a
54+
# dev_dependency is available, until then it's upgrading our stardoc version
55+
# so override it here.
56+
single_version_override(
57+
module_name = "stardoc",
58+
version = "0.6.2",
59+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -1,7 +1,7 @@
5+
module(
6+
name = "rules_apple",
7+
- version = "0",
8+
+ version = "3.20.1",
9+
bazel_compatibility = [">=7.0.0"],
10+
compatibility_level = 1,
11+
)
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
matrix:
2+
bazel: ["7.x", "rolling"]
3+
4+
tasks:
5+
verify_targets:
6+
name: Verify build targets
7+
platform: macos_arm64
8+
bazel: ${{ bazel }}
9+
test_targets:
10+
- '@rules_apple//examples/macos/CommandLine:ExamplesBuildTest'
11+
test_flags:
12+
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-c612jf6CTHNtCoqBUhhnsft6girNou0mWJfAPeauZ2c=",
3+
"strip_prefix": "",
4+
"url": "https://github.com/bazelbuild/rules_apple/releases/download/3.20.1/rules_apple.3.20.1.tar.gz",
5+
"patches": {
6+
"module_dot_bazel_version.patch": "sha256-eCQIXeiKL4nINg5uDqIg1S1Os16obQu806wLL+tVFcM="
7+
},
8+
"patch_strip": 1
9+
}

modules/rules_apple/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
"3.18.0",
7272
"3.19.0",
7373
"3.19.1",
74-
"3.20.0"
74+
"3.20.0",
75+
"3.20.1"
7576
],
7677
"yanked_versions": {}
7778
}

0 commit comments

Comments
 (0)