From 8dedf9d86bd005f92bcc00bff6b348bf73495f13 Mon Sep 17 00:00:00 2001 From: Isaac Torres Date: Tue, 20 Dec 2022 11:55:52 -0700 Subject: [PATCH 1/3] Pin bazel version to latest 5.x LTS release --- .bazeliskrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .bazeliskrc 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 From ea31fced091f476b3e1016cdb706bc1137fdc611 Mon Sep 17 00:00:00 2001 From: Isaac Torres Date: Tue, 20 Dec 2022 11:59:41 -0700 Subject: [PATCH 2/3] Use bazelisk --- .github/workflows/c.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index cee12b8b29..3e55f3894c 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -140,8 +140,12 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive + - name: Install Bazel + run: + npm install -g @bazel/bazelisk - name: Bazel Build & Test run: + bazel --version bazel test //... From 16cd59b12ef7a4984dec78f60683d2d1ff155319 Mon Sep 17 00:00:00 2001 From: Isaac Torres Date: Tue, 20 Dec 2022 12:13:03 -0700 Subject: [PATCH 3/3] Use curl instead of npm --- .github/workflows/c.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 3e55f3894c..00a4375a35 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -141,12 +141,14 @@ jobs: with: submodules: recursive - name: Install Bazel - run: - npm install -g @bazel/bazelisk + 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 --version - bazel test //... + run: | + ${GITHUB_WORKSPACE}/bin/bazel test //... windows-2019: