From 050c4b65dd16fae60a1398471efd4cdf96d9f070 Mon Sep 17 00:00:00 2001 From: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:47:35 +0000 Subject: [PATCH] Publish bazel-ios/rules_ios@4.8.0 --- modules/rules_ios/4.8.0/MODULE.bazel | 103 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++ modules/rules_ios/4.8.0/presubmit.yml | 17 +++ modules/rules_ios/4.8.0/source.json | 9 ++ modules/rules_ios/metadata.json | 3 +- 5 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 modules/rules_ios/4.8.0/MODULE.bazel create mode 100644 modules/rules_ios/4.8.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_ios/4.8.0/presubmit.yml create mode 100644 modules/rules_ios/4.8.0/source.json diff --git a/modules/rules_ios/4.8.0/MODULE.bazel b/modules/rules_ios/4.8.0/MODULE.bazel new file mode 100644 index 00000000000..ba0b92c7988 --- /dev/null +++ b/modules/rules_ios/4.8.0/MODULE.bazel @@ -0,0 +1,103 @@ +""" +Defines all the external repositories and dependencies for rules_ios. +""" + +# Defines the rules_ios bzlmod module. +# Version is updated during release to the registry. +module( + name = "rules_ios", + version = "4.8.0", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, + repo_name = "build_bazel_rules_ios", +) + +# Declare the bzlmod dependencies needed by rules_ios and users of rules_ios +bazel_dep( + name = "apple_support", + version = "1.15.1", + repo_name = "build_bazel_apple_support", +) +bazel_dep( + name = "rules_apple", + version = "3.5.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "rules_cc", + version = "0.0.6", +) +bazel_dep( + name = "rules_swift", + version = "1.18.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "bazel_skylib", + version = "1.4.2", +) + +# Declare the development dependencies needed for rules_ios development +bazel_dep( + name = "buildifier_prebuilt", + version = "6.1.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_pkg", + version = "0.9.1", + dev_dependency = True, +) +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +# Load non-bzlmod dependencies from rules_ios +non_module_deps = use_extension("//rules:module_extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "arm64-to-sim", + "com_github_yonaskolb_xcodegen", + "tart", +) + +non_module_dev_deps = use_extension( + "//rules:module_extensions.bzl", + "non_module_dev_deps", + dev_dependency = True, +) +use_repo( + non_module_dev_deps, + "com_github_apple_swiftcollections", +) + +# Configure Xcode +xcode_configure = use_extension( + "//rules:module_extensions.bzl", + "xcode_configure", + dev_dependency = True, +) +xcode_configure.configure( + remote_xcode_label = "", + xcode_locator_label = "//tools/toolchains/xcode_configure:xcode_locator.m", +) + +# Load non-bzlmod dependencies used in this repo from rules_swift +swift_non_module_deps = use_extension("@build_bazel_rules_swift//swift:extensions.bzl", "non_module_deps") +use_repo( + swift_non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", +) + +# Load non-bzlmod dependencies used in this repo from rules_apple +apple_non_module_deps = use_extension("@build_bazel_rules_apple//apple:extensions.bzl", "non_module_deps") +use_repo( + apple_non_module_deps, + "xctestrunner", +) diff --git a/modules/rules_ios/4.8.0/patches/module_dot_bazel_version.patch b/modules/rules_ios/4.8.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..bdd2c3cba6d --- /dev/null +++ b/modules/rules_ios/4.8.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -5,9 +5,9 @@ + # Defines the rules_ios bzlmod module. + # Version is updated during release to the registry. + module( + name = "rules_ios", +- version = "0", ++ version = "4.8.0", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, diff --git a/modules/rules_ios/4.8.0/presubmit.yml b/modules/rules_ios/4.8.0/presubmit.yml new file mode 100644 index 00000000000..13feb413e34 --- /dev/null +++ b/modules/rules_ios/4.8.0/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + bazel: ["6.x", "7.x"] +tasks: + verify_build_targets_bazel_6: + name: Verify Build targets on macOS with Bazel 6 + platform: macos_arm64 + bazel: 6.x + build_targets: + - "@rules_ios//rules/..." + verify_build_targets_bazel_7: + name: Verify Build targets on macOS with Bazel 7 + platform: macos_arm64 + bazel: 7.x + build_targets: + - "@rules_ios//rules/..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_ios/4.8.0/source.json b/modules/rules_ios/4.8.0/source.json new file mode 100644 index 00000000000..5e1a7f038bd --- /dev/null +++ b/modules/rules_ios/4.8.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-P979fmK3nG+ZgYdtttneKkdycS4sIbdG8hcCS5jMUUU=", + "strip_prefix": "", + "url": "https://github.com/bazel-ios/rules_ios/releases/download/4.8.0/rules_ios.4.8.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-CjvwB9f2uZzufl/kSSdcDQssxyp74/g3Ir51hCL4mZM=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ios/metadata.json b/modules/rules_ios/metadata.json index 0e931910222..143b72a2ab8 100644 --- a/modules/rules_ios/metadata.json +++ b/modules/rules_ios/metadata.json @@ -33,7 +33,8 @@ "4.5.0", "4.6.0", "4.7.0", - "4.7.1" + "4.7.1", + "4.8.0" ], "yanked_versions": {} }