Skip to content

Commit

Permalink
.github/workflows: Add Bazel CI
Browse files Browse the repository at this point in the history
This will replace the kokoro-based CI. We need to upgrade the image
Kokoro runs on, but it is easier to add a GitHub Actions CI than to run
a one-off test on a new image with Kokoro.

A clean run takes 10 minutes and a cached run takes 8.5. So it is a
little bit slower than the 5.5 minutes on Kokoro, but still pretty
quick.
  • Loading branch information
ejona86 committed Apr 13, 2023
1 parent 9af202f commit 445efe7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,22 @@ jobs:
run: ./gradlew :grpc-all:coveralls -PskipAndroid=true -x compileJava
- name: Codecov
uses: codecov/codecov-action@v3

bazel:
runs-on: ubuntu-latest
env:
USE_BAZEL_VERSION: 5.0.0

steps:
- uses: actions/checkout@v2

- name: Bazel cache
uses: actions/cache@v3
with:
path: |
~/.cache/bazel/*/cache
~/.cache/bazelisk/downloads
key: ${{ runner.os }}-bazel-${{ env.USE_BAZEL_VERSION }}-${{ hashFiles('WORKSPACE', 'repositories.bzl') }}

- name: Run bazel build
run: bazelisk build //...

0 comments on commit 445efe7

Please sign in to comment.