Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from bazelbuild/mishas/update_readme_v2
Browse files Browse the repository at this point in the history
Update README.md for v2
  • Loading branch information
mishas authored Mar 30, 2022
2 parents 95c9bf4 + 3240f47 commit 4f5448e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# setup-bazelisk
# setup-bazelisk v2
Set up your GitHub Actions workflow with a specific version of Bazelisk

Note that GitHub Actions includes Bazelisk by default as of <https://github.com/actions/virtual-environments/pull/490> so this setup is not necessary unless you want to customize the Bazelisk version, or are running Bazel inside a container.
Expand All @@ -10,17 +10,22 @@ This action sets up Bazelisk for use in actions by:
- optionally downloading and caching a version of Bazelisk by version and adding to PATH
- setting up cache for downloaded Bazel versions

# What's new

- Updated to the node16 runtime by default
- This requires a minimum [Actions Runner](https://github.com/actions/runner/releases/tag/v2.285.0) version of v2.285.0 to run, which is by default available in GHES 3.4 or later.

# Usage

See [action.yml](action.yml)

Basic:
```yaml
steps:
- uses: actions/checkout@v2
- uses: bazelbuild/setup-bazelisk@v1
- uses: actions/checkout@v3
- uses: bazelbuild/setup-bazelisk@v2
- name: Mount bazel cache # Optional
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel
Expand Down

0 comments on commit 4f5448e

Please sign in to comment.