From 281effa763fd5ece264f070783a395d2d249e25c Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Wed, 16 Oct 2024 15:29:28 -0700 Subject: [PATCH] build: upgrade to latest bazel 7.3.2 --- .bazelversion | 2 +- .github/workflows/ci.yaml | 8 +++++--- .github/workflows/release.yml | 12 +++++++----- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.bazelversion b/.bazelversion index 21c8c7b4..eab246c0 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -7.1.1 +7.3.2 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ca5e44d9..02b33394 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -107,10 +107,14 @@ jobs: - name: Mount bazel caches uses: actions/cache@v4 with: + # Cache the --dist_cache and --repository_cache directories (see ci.bazelrc) + # and the default bazel output (https://bazel.build/remote/output-directories#layout) + # and bazelisk cache. path: | ~/.cache/bazel-disk-cache ~/.cache/bazel-repository-cache - ~/.cache/xdg-cache + ~/.cache/bazel + ~/.cache/bazelisk key: >- bazel-cache-${{ matrix.bazel-version.version }}-${{ matrix.bzlmod }}-${{ matrix.os }}-${{ matrix.folder }}- ${{ hashFiles('.bazelrc', '.bazelversion', '.bazeliskrc', '**/BUILD', '**/BUILD.bazel', '**/*.bzl', 'WORKSPACE', 'WORKSPACE.bazel', 'WORKSPACE.bzlmod', 'MODULE.bazel', '**/*.js', '!e2e') }}- @@ -152,8 +156,6 @@ jobs: --build_tag_filters=-skip-on-bazel${{ matrix.bazel-version.major }},-skip-on-bzlmod-${{ matrix.bzlmod }} \ --enable_bzlmod=${{ matrix.bzlmod }} \ //... - env: - XDG_CACHE_HOME: ~/.cache/xdg-cache # bazelisk will download bazel to here test-worker: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0fee2ff4..d1f1d823 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,15 +17,17 @@ jobs: - name: Mount bazel caches uses: actions/cache@v4 with: + # Cache the --dist_cache and --repository_cache directories (see ci.bazelrc) + # and the default bazel output (https://bazel.build/remote/output-directories#layout) + # and bazelisk cache. path: | - "~/.cache/bazel" - "~/.cache/bazel-repo" + ~/.cache/bazel-disk-cache + ~/.cache/bazel-repository-cache + ~/.cache/bazel + ~/.cache/bazelisk key: bazel-cache-${{ hashFiles('**/BUILD.bazel', '**/*.bzl', 'WORKSPACE') }} restore-keys: bazel-cache- - name: bazel test //... - env: - # Bazelisk will download bazel to here - XDG_CACHE_HOME: ~/.cache/bazel-repo run: bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc test //... - name: Prepare release run: .github/workflows/release_prep.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt