Update `rules_cc` dep to `0.2.25`

An upcoming change requires a release that contains  https://github.com/bazelbuild/rules_cc/commit/ebe56324a069b05c9de2d22a47511ad76e3b0a86

(ignore-relnotes)

PiperOrigin-RevId: 990894729
Change-Id: I0fe3db122e97e27749a3b7864908db8d83f23a51
diff --git a/MODULE.bazel b/MODULE.bazel
index 6135ff7..b11bd66 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -6,7 +6,7 @@
 )
 
 bazel_dep(name = "platforms", version = "0.0.11")
-bazel_dep(name = "rules_cc", version = "0.2.17")
+bazel_dep(name = "rules_cc", version = "0.2.25")
 bazel_dep(name = "bazel_features", version = "1.30.0")
 bazel_dep(name = "bazel_skylib", version = "1.6.1")
 bazel_dep(name = "protobuf", version = "32.1", repo_name = "com_google_protobuf")
diff --git a/java/common/BUILD b/java/common/BUILD
index 7887b1f..096f77b 100644
--- a/java/common/BUILD
+++ b/java/common/BUILD
@@ -38,6 +38,7 @@
     visibility = ["//visibility:public"],
     deps = [
         "@bazel_features//:features",
+        "@rules_cc//cc:action_names_bzl",
         "@rules_cc//cc/common:cc_helper_bzl",
     ],
 )
diff --git a/java/common/rules/impl/BUILD b/java/common/rules/impl/BUILD
index a6eb44b..ed1eb2f 100644
--- a/java/common/rules/impl/BUILD
+++ b/java/common/rules/impl/BUILD
@@ -21,6 +21,7 @@
     deps = [
         ":java_helper_bzl",
         "//java/common:proguard_spec_info_bzl",
+        "@rules_cc//cc:action_names_bzl",  # TODO: remove after https://github.com/bazelbuild/rules_cc/issues/913 is fixed
         "@rules_cc//cc/common:cc_helper_bzl",
     ],
 )