diff --git a/.bazeliskrc b/.bazeliskrc new file mode 100644 index 0000000000..f5f1a08e94 --- /dev/null +++ b/.bazeliskrc @@ -0,0 +1 @@ +USE_BAZEL_VERSION=5.4.0 diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index cee12b8b29..00a4375a35 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -140,9 +140,15 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive + - name: Install Bazel + run: | + curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.15.0/bazelisk-linux-amd64" + mkdir -p "${GITHUB_WORKSPACE}/bin/" + mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel" + chmod +x "${GITHUB_WORKSPACE}/bin/bazel" - name: Bazel Build & Test - run: - bazel test //... + run: | + ${GITHUB_WORKSPACE}/bin/bazel test //... windows-2019: