From 706d8df953790c83ac71c4e2bbd3de948e5bf91d Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Tue, 26 Sep 2023 23:09:19 -0700 Subject: [PATCH] Add google_benchmark 1.8.3 (#954) --- modules/google_benchmark/1.8.3/MODULE.bazel | 24 ++++++++++++++++++++ modules/google_benchmark/1.8.3/presubmit.yml | 12 ++++++++++ modules/google_benchmark/1.8.3/source.json | 5 ++++ modules/google_benchmark/metadata.json | 3 ++- 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 modules/google_benchmark/1.8.3/MODULE.bazel create mode 100644 modules/google_benchmark/1.8.3/presubmit.yml create mode 100644 modules/google_benchmark/1.8.3/source.json diff --git a/modules/google_benchmark/1.8.3/MODULE.bazel b/modules/google_benchmark/1.8.3/MODULE.bazel new file mode 100644 index 00000000000..37a5f5de5e3 --- /dev/null +++ b/modules/google_benchmark/1.8.3/MODULE.bazel @@ -0,0 +1,24 @@ +module(name = "google_benchmark", version="1.8.3") + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "platforms", version = "0.0.6") +bazel_dep(name = "rules_foreign_cc", version = "0.9.0") +bazel_dep(name = "rules_cc", version = "0.0.6") +bazel_dep(name = "rules_python", version = "0.24.0", dev_dependency = True) +bazel_dep(name = "googletest", version = "1.12.1", repo_name = "com_google_googletest", dev_dependency = True) +bazel_dep(name = "libpfm", version = "4.11.0") + +# Register a toolchain for Python 3.9 to be able to build numpy. Python +# versions >=3.10 are problematic. +# A second reason for this is to be able to build Python hermetically instead +# of relying on the changing default version from rules_python. + +python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True) +python.toolchain(python_version = "3.9") + +pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency = True) +pip.parse( + hub_name="tools_pip_deps", + python_version = "3.9", + requirements_lock="//tools:requirements.txt") +use_repo(pip, "tools_pip_deps") diff --git a/modules/google_benchmark/1.8.3/presubmit.yml b/modules/google_benchmark/1.8.3/presubmit.yml new file mode 100644 index 00000000000..2060943df2c --- /dev/null +++ b/modules/google_benchmark/1.8.3/presubmit.yml @@ -0,0 +1,12 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - windows +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + build_targets: + - '@google_benchmark//:all' diff --git a/modules/google_benchmark/1.8.3/source.json b/modules/google_benchmark/1.8.3/source.json new file mode 100644 index 00000000000..2d99069340e --- /dev/null +++ b/modules/google_benchmark/1.8.3/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://github.com/google/benchmark/archive/refs/tags/v1.8.3.tar.gz", + "integrity": "sha256-a8GApX0j1NlRVRn5KwyD1hsFtbqxiJYfNqx7BrDZ6c4=", + "strip_prefix": "benchmark-1.8.3" +} diff --git a/modules/google_benchmark/metadata.json b/modules/google_benchmark/metadata.json index c570b94ed7d..ee8c5eb0e3a 100644 --- a/modules/google_benchmark/metadata.json +++ b/modules/google_benchmark/metadata.json @@ -5,7 +5,8 @@ "github:google/benchmark" ], "versions": [ - "1.8.2" + "1.8.2", + "1.8.3" ], "yanked_versions": {} }