diff options
author | Nathaniel Brough <nathaniel.brough@gmail.com> | 2022-01-05 11:02:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 21:59:01 +0300 |
commit | 9d13556c85508a77900aacf003d80545a22b5433 (patch) | |
tree | a0c55fc3737cbb68b7c50b665321b36659114441 /.github | |
parent | 6ec6538e3a98cd7b4dcd6a08c6d94b1c8a5b2d52 (diff) |
Adds Bazel build to the CI
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/bazel.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml new file mode 100644 index 0000000..3f7bd19 --- /dev/null +++ b/.github/workflows/bazel.yml @@ -0,0 +1,31 @@ +name: Bazel + +on: + push: + pull_request: + branches: + - master + +jobs: + build_embedded: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, macos-10.15] + + steps: + - uses: actions/checkout@v2 + + - name: Mount bazel cache + uses: actions/cache@v2 + with: + path: "/home/runner/.cache/bazel" + key: ${{ runner.os }}-bazel + + - name: Test + run: | + bazelisk test //... + + - name: Build + run: | + bazelisk build //... |