Adds Bazel build to the CI
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 //...