Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.57 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.57 KB

CI Status Docker Hub

Bazel Action

This actions allows you to run bazel commands.

How to use

Create a .github/workflows/workflow.yml file with the following contents:

on: push
name: My Action
jobs:
  checks:
    name: run
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master

    - name: run
      uses: ngalaiko/bazel-action/1.1.0@master
      with:
        args: build //...

bazel version

In order to speed up builds, ngalaiko/bazel-action/<version>@<tag> uses prebuilt images with installed bazel and all dependencies. Images are stored in the DockerHub.

If you need a specific bazel version, you can import it by changeing uses import path. For example:

uses: ngalaiko/bazel-action/1.1.0@master

or

uses: ngalaiko/bazel-action/0.29.0@master

If you need another version, please open an issue, or send a PR.

If you don't want to use a prebuild image, the action with the bazel's latest version is always accessible via

uses: ngalaiko/bazel-action@master

GitHub actions

You can read more about GitHub actions in the documentation.