Skip to content

Commit

Permalink
Xcode RBE
Browse files Browse the repository at this point in the history
  • Loading branch information
ofalvai committed Feb 7, 2025
1 parent dcb0724 commit e2d2e0e
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,11 @@ test:ci-windows --test_env=JAVA_HOME
test:ci-windows --test_env=TEST_INSTALL_BASE=C:/b/bazeltest_install_base
test:ci-windows --test_env=REPOSITORY_CACHE=C:/b/bazeltest_repo_cache
test:ci-windows --test_tag_filters=-no_windows,-slow

build:remote_bitrise --remote_executor=grpcs://remote-execution-iad.services.bitrise.io:443
build:remote_bitrise --remote_cache=grpcs://build-cache-api-iad.services.bitrise.io:443
build:remote_bitrise --jobs=100
build:remote_bitrise --remote_download_minimal
build:remote_bitrise --noremote_upload_local_results
build:remote_bitrise --extra_execution_platforms=//:darwin_arm64
build:remote_bitrise --xcode_version_config=//:explicit_xcode_config
42 changes: 42 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -307,3 +307,45 @@ REMOTE_PLATFORMS = ("rbe_ubuntu2004",)
)
for platform_name in REMOTE_PLATFORMS
]

# Execution platform for remote builds (referenced in .bazelrc)
platform(
name = "darwin_arm64",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:arm64",
],
exec_properties = {
"OSFamily": "Darwin",
"Arch": "arm64",
},
)

xcode_version(
name = 'version16_2_0_16C5032a',
version = '16.2.0.16C5032a',
aliases = ['16C5032a', '16.2', '16', '16.2.0.16C5032a', '16.2.0'],
default_ios_sdk_version = '18.2',
default_tvos_sdk_version = '18.2',
default_macos_sdk_version = '15.2',
default_visionos_sdk_version = '2.2',
default_watchos_sdk_version = '11.2',
)

available_xcodes(
name = "remote_xcodes",
default = ":version16_2_0_16C5032a",
versions = [":version16_2_0_16C5032a"]
)

available_xcodes(
name = 'host_xcodes',
versions = [':version16_2_0_16C5032a'],
default = ':version16_2_0_16C5032a',
)

xcode_config(
name = "explicit_xcode_config",
local_versions = ":host_xcodes",
remote_versions = ":remote_xcodes",
)
3 changes: 2 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module(
# Bazel module dependencies
# =========================================

bazel_dep(name = "apple_support", version = "1.17.1")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "grpc", version = "1.66.0.bcr.2", repo_name = "com_github_grpc_grpc")
Expand Down Expand Up @@ -90,7 +91,7 @@ local_path_override(

# The following Bazel modules are not direct dependencies for building Bazel,
# but are required for visibility from DIST_ARCHIVE_REPOS in repositories.bzl
bazel_dep(name = "apple_support", version = "1.15.1")
# bazel_dep(name = "apple_support", version = "1.15.1")
bazel_dep(name = "c-ares", version = "1.15.0")
bazel_dep(name = "rules_go", version = "0.48.0")
bazel_dep(name = "rules_kotlin", version = "1.9.6")
Expand Down
8 changes: 5 additions & 3 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e2d2e0e

Please sign in to comment.