build: move ci cache flags to bazelrc (#6)

3 files changed
tree: e1135a43ccb6d7297018da47fc3401fb32607099
  1. .github/
  2. docs/
  3. mylang/
  4. .bazelrc
  5. .bazelversion
  6. .gitignore
  7. .pre-commit-config.yaml
  8. .prettierignore
  9. BUILD.bazel
  10. CONTRIBUTING.md
  11. internal_deps.bzl
  12. LICENSE
  13. README.md
  14. WORKSPACE
README.md

Template for Bazel rules

Copy this template to create a Bazel ruleset.

Features:

See https://docs.bazel.build/versions/main/skylark/deploying.html#readme

Ready to get started? Copy this repo, then

  1. search for “com_myorg_rules_mylang” and replace with the name you'll use for your workspace
  2. search for “myorg” and replace with GitHub org
  3. search for “mylang” and replace with the language/tool your rules are for
  4. rename directory “mylang” similarly
  5. run pre-commit install to get lints (see CONTRIBUTING.md)
  6. if you don't need to fetch platform-dependent tools, then remove anything toolchain-related.
  7. update the actions/cache@v2 bazel cache key in .github/workflows/ci.yaml and .github/workflows/release.yml to be a hash of your source files.
  8. delete this section of the README (everything up to the SNIP).

---- SNIP ----

Bazel rules for mylang

Installation

From the release you wish to use: https://github.com/myorg/rules_mylang/releases copy the WORKSPACE snippet into your WORKSPACE file.