From e6fdbf450386ab63a5650c8a68dd1f5d33a93f30 Mon Sep 17 00:00:00 2001 From: Ted Pudlik Date: Mon, 15 Jul 2024 14:24:27 -0700 Subject: [PATCH] Add rules_platform (#2433) Created using `bazel run //tools:add_module`. Fixes https://github.com/bazelbuild/rules_platform/issues/13 --- modules/rules_platform/0.1.0/MODULE.bazel | 14 ++++++++++++++ modules/rules_platform/0.1.0/presubmit.yml | 17 +++++++++++++++++ modules/rules_platform/0.1.0/source.json | 5 +++++ modules/rules_platform/metadata.json | 22 ++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 modules/rules_platform/0.1.0/MODULE.bazel create mode 100644 modules/rules_platform/0.1.0/presubmit.yml create mode 100644 modules/rules_platform/0.1.0/source.json create mode 100644 modules/rules_platform/metadata.json diff --git a/modules/rules_platform/0.1.0/MODULE.bazel b/modules/rules_platform/0.1.0/MODULE.bazel new file mode 100644 index 00000000000..8934c17095a --- /dev/null +++ b/modules/rules_platform/0.1.0/MODULE.bazel @@ -0,0 +1,14 @@ +"""Bazel build and test dependencies.""" + +# NOTE: When editing this file, also update the lockfile. +# bazel mod deps --lockfile_mode=update + +module( + name = "rules_platform", + version = "0.1.0", +) + +bazel_dep(name = "bazel_skylib", version = "1.5.0") + +# Dev dependencies +bazel_dep(name = "rules_pkg", version = "0.10.1", dev_dependency = True) diff --git a/modules/rules_platform/0.1.0/presubmit.yml b/modules/rules_platform/0.1.0/presubmit.yml new file mode 100644 index 00000000000..45062dc97dd --- /dev/null +++ b/modules/rules_platform/0.1.0/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_platform//platform_data:srcs' diff --git a/modules/rules_platform/0.1.0/source.json b/modules/rules_platform/0.1.0/source.json new file mode 100644 index 00000000000..0976b70c807 --- /dev/null +++ b/modules/rules_platform/0.1.0/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://github.com/bazelbuild/rules_platform/releases/download/0.1.0/rules_platform-0.1.0.tar.gz", + "integrity": "sha256-Cq3RvTUAkaofm28vvKyM2YIBR2KJRU5HWyiAHs+F0/0=", + "patch_strip": 0 +} diff --git a/modules/rules_platform/metadata.json b/modules/rules_platform/metadata.json new file mode 100644 index 00000000000..03bf2a56f55 --- /dev/null +++ b/modules/rules_platform/metadata.json @@ -0,0 +1,22 @@ +{ + "homepage": "https://github.com/bazelbuild/rules_platform", + "maintainers": [ + { + "email": "aranguyen@google.com", + "github": "aranguyen", + "name": "Ara Nguyen" + }, + { + "email": "gregce@google.com", + "github": "gregestren", + "name": "Greg Estren" + } + ], + "repository": [ + "github:bazelbuild/rules_platform" + ], + "versions": [ + "0.1.0" + ], + "yanked_versions": {} +}