summaryrefslogtreecommitdiff
path: root/.github/workflows/bazel-build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/bazel-build.yml')
-rw-r--r--.github/workflows/bazel-build.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/bazel-build.yml b/.github/workflows/bazel-build.yml
new file mode 100644
index 0000000..5156799
--- /dev/null
+++ b/.github/workflows/bazel-build.yml
@@ -0,0 +1,28 @@
+name: Bazel build
+
+on:
+ pull_request:
+
+permissions: read-all
+
+jobs:
+ bazel-build:
+ name: Build and run tests using Bazel
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ runs-on: ${{matrix.os}}
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: '0'
+ - name: Clone submodules
+ run: git submodule update --init --recursive
+ - name: Mount Bazel cache
+ uses: actions/cache@v3
+ with:
+ path: ~/.bazel/cache
+ key: bazel-cache-${{ runner.os }}
+ - name: Build
+ run: bazel --output_user_root=~/.bazel/cache build :all