CI, release, publish-to-BCR automation (#5)

15 files changed
tree: da83a694deb6728af979a08eb79031b44c5575fa
  1. .bcr/
  2. .github/
  3. private/
  4. test/
  5. .bazelrc
  6. .bazelversion
  7. .gitignore
  8. .pre-commit-config.yaml
  9. BUILD.bazel
  10. CONTRIBUTING.md
  11. deps.bzl
  12. features.bzl
  13. globals.bzl
  14. LICENSE
  15. MODULE.bazel
  16. README.md
  17. WORKSPACE.bazel
  18. WORKSPACE.bzlmod
README.md

Bazel Features

Use this to determine the availability of a Bazel feature in your ruleset. It works under the hood by comparing the Bazel version against a known range in which the feature is available. Example usage:

load("@bazel_features//:features.bzl", "bazel_features")
if bazel_features.toolchains.has_optional_toolchains:
    # Do something

The features.bzl file contains the list of features.