From a9f13fc737cb352e458184525e01e36bbbca8b81 Mon Sep 17 00:00:00 2001 From: Moreno Ambrosin Date: Thu, 22 Aug 2024 09:57:32 +0200 Subject: [PATCH] Add tink-cc@2.2.0 to BCR (#2561) --- modules/tink_cc/2.2.0/MODULE.bazel | 33 +++++++++++++++++++++++++++++ modules/tink_cc/2.2.0/presubmit.yml | 28 ++++++++++++++++++++++++ modules/tink_cc/2.2.0/source.json | 6 ++++++ modules/tink_cc/metadata.json | 3 ++- 4 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 modules/tink_cc/2.2.0/MODULE.bazel create mode 100644 modules/tink_cc/2.2.0/presubmit.yml create mode 100644 modules/tink_cc/2.2.0/source.json diff --git a/modules/tink_cc/2.2.0/MODULE.bazel b/modules/tink_cc/2.2.0/MODULE.bazel new file mode 100644 index 00000000000..fc6cb69e4b9 --- /dev/null +++ b/modules/tink_cc/2.2.0/MODULE.bazel @@ -0,0 +1,33 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Tink C++ Bazel Module definition.""" +module( + name = "tink_cc", + version = "2.2.0", +) + +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "rules_proto", version = "6.0.0-rc3") +bazel_dep(name = "platforms", version = "0.0.9") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "googletest", version = "1.14.0.bcr.1", repo_name = "com_google_googletest") +bazel_dep(name = "protobuf", version = "26.0.bcr.1", repo_name = "com_google_protobuf") +# TODO: Align with the version declared in tink_cc_deps.bzl. +bazel_dep(name = "boringssl", version = "0.0.0-20240126-22d349c") +bazel_dep(name = "rapidjson", version = "1.1.0") +bazel_dep(name = "abseil-cpp", version = "20230802.1", repo_name="com_google_absl") + +wycheproof_extension = use_extension("//:extensions.bzl", "wycheproof_extension") +use_repo(wycheproof_extension, "wycheproof") \ No newline at end of file diff --git a/modules/tink_cc/2.2.0/presubmit.yml b/modules/tink_cc/2.2.0/presubmit.yml new file mode 100644 index 00000000000..939a6d2110f --- /dev/null +++ b/modules/tink_cc/2.2.0/presubmit.yml @@ -0,0 +1,28 @@ +matrix: + bazel: [6.x, 7.x] +tasks: + verify_targets_ubuntu: + name: Verify tink-cc build targets (ubuntu2004) + platform: ubuntu2004 + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + build_targets: + - '@tink_cc//tink:tink_cc' + verify_targets_windows: + name: Verify tink-cc build targets (windows) + platform: windows + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=/std:c++14' + - '--features=compiler_param_file' + build_targets: + - '@tink_cc//tink:tink_cc' + verify_targets_macos: + name: Verify tink-cc build targets (macOS) + platform: macos_arm64 + bazel: 7.x + build_flags: + - '--cxxopt=-std=c++14' + build_targets: + - '@tink_cc//tink:tink_cc' diff --git a/modules/tink_cc/2.2.0/source.json b/modules/tink_cc/2.2.0/source.json new file mode 100644 index 00000000000..eff8669779d --- /dev/null +++ b/modules/tink_cc/2.2.0/source.json @@ -0,0 +1,6 @@ +{ + "url": "https://github.com/tink-crypto/tink-cc/releases/download/v2.2.0/tink-cc-2.2.0.zip", + "integrity": "sha256-iOFEIYJFLKoW0JVM6vc+F7CqMIN+5sDMFr8BEjE851M=", + "strip_prefix": "tink-cc-2.2.0", + "patch_strip": 1 +} diff --git a/modules/tink_cc/metadata.json b/modules/tink_cc/metadata.json index 468c74fdada..602097525a3 100644 --- a/modules/tink_cc/metadata.json +++ b/modules/tink_cc/metadata.json @@ -11,7 +11,8 @@ "github:tink-crypto/tink-cc" ], "versions": [ - "2.1.3" + "2.1.3", + "2.2.0" ], "yanked_versions": {} }