From 24c8d9a6b7e2cfe3d7547d3bb5b32fbb9648e5bb Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Thu, 1 Jun 2023 18:43:34 +0000 Subject: [PATCH] Add RE2 release `2023-06-02`. --- modules/re2/2023-06-02/MODULE.bazel | 10 +++++++ .../2023-06-02/patches/module_dot_bazel.patch | 13 +++++++++ modules/re2/2023-06-02/presubmit.yml | 28 +++++++++++++++++++ modules/re2/2023-06-02/source.json | 9 ++++++ modules/re2/metadata.json | 11 ++++++-- 5 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 modules/re2/2023-06-02/MODULE.bazel create mode 100644 modules/re2/2023-06-02/patches/module_dot_bazel.patch create mode 100644 modules/re2/2023-06-02/presubmit.yml create mode 100644 modules/re2/2023-06-02/source.json diff --git a/modules/re2/2023-06-02/MODULE.bazel b/modules/re2/2023-06-02/MODULE.bazel new file mode 100644 index 00000000000..b15d2fc9916 --- /dev/null +++ b/modules/re2/2023-06-02/MODULE.bazel @@ -0,0 +1,10 @@ +module( + name = "re2", + version = "2023-06-02", + compatibility_level = 11, +) + +bazel_dep(name = "rules_cc", version = "0.0.6") +bazel_dep(name = "platforms", version = "0.0.6") +bazel_dep(name = "abseil-cpp", version = "20230125.1", repo_name = "com_google_absl") +bazel_dep(name = "googletest", version = "1.12.1", repo_name = "com_google_googletest") diff --git a/modules/re2/2023-06-02/patches/module_dot_bazel.patch b/modules/re2/2023-06-02/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..f90ef28b7cb --- /dev/null +++ b/modules/re2/2023-06-02/patches/module_dot_bazel.patch @@ -0,0 +1,13 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,10 @@ ++module( ++ name = "re2", ++ version = "2023-06-02", ++ compatibility_level = 11, ++) ++ ++bazel_dep(name = "rules_cc", version = "0.0.6") ++bazel_dep(name = "platforms", version = "0.0.6") ++bazel_dep(name = "abseil-cpp", version = "20230125.1", repo_name = "com_google_absl") ++bazel_dep(name = "googletest", version = "1.12.1", repo_name = "com_google_googletest") diff --git a/modules/re2/2023-06-02/presubmit.yml b/modules/re2/2023-06-02/presubmit.yml new file mode 100644 index 00000000000..90d615e1e63 --- /dev/null +++ b/modules/re2/2023-06-02/presubmit.yml @@ -0,0 +1,28 @@ +matrix: + platform: + - centos7_java11_devtoolset10 + - debian10 + - ubuntu2004 + - macos + - windows +tasks: + build_and_test: + platform: ${{ platform }} + build_flags: + - '--cxxopt=-std=c++14' + build_targets: + - '@re2//:all' + - '-@re2//:benchmark' + - '-@re2//:regexp_benchmark' + test_flags: + - '--cxxopt=-std=c++14' + test_targets: + - '@re2//:all' + - '-@re2//:benchmark' + - '-@re2//:regexp_benchmark' + - '-@re2//:dfa_test' + - '-@re2//:exhaustive1_test' + - '-@re2//:exhaustive2_test' + - '-@re2//:exhaustive3_test' + - '-@re2//:exhaustive_test' + - '-@re2//:random_test' diff --git a/modules/re2/2023-06-02/source.json b/modules/re2/2023-06-02/source.json new file mode 100644 index 00000000000..2a3dea1aef2 --- /dev/null +++ b/modules/re2/2023-06-02/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-HWHq3eRzAacQfKP6j66hqO3fH5uQIRMNniM3aSLoyGc=", + "strip_prefix": "re2-2023-06-02", + "url": "https://github.com/google/re2/releases/download/2023-06-02/re2-2023-06-02.zip", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-yVczUziJokEqTp19tz2JMt/KCQhpd58IAaPEqH+ZNZg=" + } +} diff --git a/modules/re2/metadata.json b/modules/re2/metadata.json index 25174aeaaea..93cd9c74abc 100644 --- a/modules/re2/metadata.json +++ b/modules/re2/metadata.json @@ -1,11 +1,18 @@ { "homepage": "https://github.com/google/re2", - "maintainers": [], + "maintainers": [ + { + "email": "junyer@google.com", + "github": "junyer", + "name": "Paul Wankadia" + } + ], "repository": [ "github:google/re2" ], "versions": [ - "2021-09-01" + "2021-09-01", + "2023-06-02" ], "yanked_versions": {} }