From c0572dac36f2fd0abb8b2fbda5ea69af54b11ee5 Mon Sep 17 00:00:00 2001 From: Isaac Torres Date: Mon, 5 Dec 2022 11:32:42 -0800 Subject: [PATCH] bazel: Add CI check for bazel Adds a check for the bazel build to CI. --- .github/workflows/c.yaml | 11 +++++++++++ c/BUILD.bazel | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index d70ef9b283..cee12b8b29 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -133,6 +133,17 @@ jobs: CMAKEFLAGS: -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-static" -Dgtest_disable_pthreads=ON + bazel: + name: Bazel + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Bazel Build & Test + run: + bazel test //... + windows-2019: strategy: diff --git a/c/BUILD.bazel b/c/BUILD.bazel index be507582e2..967dc2817e 100644 --- a/c/BUILD.bazel +++ b/c/BUILD.bazel @@ -75,7 +75,7 @@ swift_cc_test( type = UNIT, deps = [ ":sbp", - "@check//:check", + "@check", ], ) @@ -94,7 +94,7 @@ swift_cc_test( type = UNIT, deps = [ ":sbp", - "@check//:check", + "@check", ], )