Skip to content

GitHub Action to install @bazelbuild on Windows, MacOS, Ubuntu for your workflows

Notifications You must be signed in to change notification settings

abhinavsingh/setup-bazel

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Setup Bazel

Cross platform Bazel installation for your GitHub workflows.

Table of Contents

How it works

  • Action installs bazel binary for your GitHub workflows.
  • It follows official installation instructions.
  • Support for pinning to specific bazel version.

Usage

Install Latest Bazel Release

- name: Setup Bazel
  uses: abhinavsingh/setup-bazel@v3
- name: Use Bazel (Windows only)
  if: matrix.os == 'windows'
  run: ./bazel.exe -h
- name: Use Bazel
  if: matrix.os != 'windows'
  run: bazel -h

Pin Bazel Release

To install a specific version of bazel:

- name: Setup Bazel
  uses: abhinavsingh/setup-bazel@v3
  with:
    version: 2.0.0

Notes for Windows

  • bazel.exe is placed in your project root
  • Use as ./bazel.exe

Changelog

v3

  • Aborts workflow if bazel setup fails.
  • Clean up after bazel setup.

v2

  • Added support for bazel version pinning.

v1

  • First release.

About

GitHub Action to install @bazelbuild on Windows, MacOS, Ubuntu for your workflows

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •