Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

Setup Bazelisk

v1.0.1

Setup Bazelisk

box

Setup Bazelisk

Set up Bazelisk and add it to the PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Bazelisk

uses: bazelbuild/setup-bazelisk@v1.0.1

Learn more about this action in bazelbuild/setup-bazelisk

Choose a version

setup-bazelisk

Set up your GitHub Actions workflow with a specific version of Baelisk

Validate 'setup-bazelisk'

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

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v2
- uses: mishas/setup-bazelisk-action@v1
- name: Mount bazel cache  # Optional
  uses: actions/cache@v1
  with:
    path: "~/.cache/bazel"
    key: bazel
- run: bazel build //...

License

The scripts and documentation in this project are released under the MIT License