Skip to content

Commit

Permalink
CI: Install bazel directly forgo bazelisk
Browse files Browse the repository at this point in the history
  • Loading branch information
stagnation committed Dec 17, 2024
1 parent f9b1800 commit 7cbc48d
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/pull-requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
"build_and_test": {
"runs-on": "ubuntu-latest",
"steps": [
{
"name": "Restore Bazelisk cache",
"uses": "actions/cache@v1",
"with": {
"key": "bazelisk",
"path": "~/.cache/bazelisk"
}
},
{
"name": "Installing Bazelisk",
"run": "bazelisk_fingerprint=231ec5ca8115e94c75a1f4fbada1a062b48822ca04f21f26e4cb1cd8973cd458 &&\n(echo \"${bazelisk_fingerprint} ${HOME}/.cache/bazelisk/bazel\" | sha256sum --check --quiet) || (\n mkdir -p ~/.cache/bazelisk &&\n curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64 > ~/.cache/bazelisk/bazelisk.tmp &&\n chmod +x ~/.cache/bazelisk/bazelisk.tmp &&\n mv ~/.cache/bazelisk/bazelisk.tmp ~/.cache/bazelisk/bazel\n) &&\n(echo \"${bazelisk_fingerprint} ${HOME}/.cache/bazelisk/bazel\" | sha256sum --check --quiet) &&\necho \"~/.cache/bazelisk\" >> ${GITHUB_PATH}\n"
},
{
"name": "Installing grpcurl",
"run": "mkdir -p ~/.cache/grpcurl &&\ncurl -L https://github.com/fullstorydev/grpcurl/releases/download/v1.8.9/grpcurl_1.8.9_linux_x86_64.tar.gz | tar -xz -C ~/.cache/grpcurl &&\necho \"~/.cache/grpcurl\" >> ${GITHUB_PATH}\n"
Expand All @@ -27,9 +15,13 @@
"name": "Check out source code",
"uses": "actions/checkout@v1"
},
{
"name": "Installing Bazel",
"run": "v=$(cat .bazelversion) && curl -L https://github.com/bazelbuild/bazel/releases/download/${v}/bazel-${v}-linux-x86_64 > ~/bazel && chmod +x ~/bazel && echo ~ >> ${GITHUB_PATH}"
},
{
"name": "Gazelle",
"run": "set -x; ls -la ~/.cache/bazelisk; echo $HOME; echo $PATH; ls -la /usr/local/bin/bazel; which -a bazel; cat .bazelversion; USE_BAZEL_VERSION=7.2.0 ~/.cache/bazelisk/bazel version; bazel run //:gazelle"
"run": "bazel run //:gazelle"
},
{
"name": "Buildifier",
Expand Down

0 comments on commit 7cbc48d

Please sign in to comment.