This actions allows you to run bazel commands.
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 //...
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
You can read more about GitHub actions in the documentation.