From 649517c1bc14314d23ed13fd6e9289ddcd49bf87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Vu=C4=8Dica?= Date: Tue, 26 Mar 2024 01:43:29 +0000 Subject: [PATCH] .github: Run bazel tests on BuildBuddy using RBE. --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0c566d7..f1bdea74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,3 +54,29 @@ jobs: run: bazel build //:yatc - name: bazel test run: bazel test //:util_test + + bazel-buildbuddy: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, which is the CWD for + # the rest of the steps + - uses: actions/checkout@v1 + + # Caches and restores the bazel build directory. + - name: Cache bazel build results + uses: actions/cache@v2.0.0 + env: + cache-name: bazel-cache + with: + path: ~/.cache/bazel + key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }} + restore-keys: | + ${{ runner.os }}-${{ env.cache-name }}-master + + - name: Checkout submodules + run: git submodule init && git submodule update + - name: rbe bazel build + run: bazel build --config=remote //:yatc + - name: rbe bazel test + run: bazel test --config=remote //:util_test