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.0

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.0

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@master
- uses: mishas/setup-bazelisk@v1
  with:
    bazelisk-version: '1.x'
- 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