From 4b6937280e8c01863e2ad175b8a955646cb0b410 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Wed, 9 Oct 2024 13:09:58 -0700 Subject: [PATCH] chore: upgrade bazel to v7.3.2 --- .bazelversion | 2 +- .github/workflows/ci.yaml | 9 +++++---- .github/workflows/release.yml | 8 +++++--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.bazelversion b/.bazelversion index 21c8c7b46..eab246c06 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 c50ab6953..cfe297ebf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -207,10 +207,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') }}- @@ -257,7 +261,6 @@ jobs: ASPECT_GH_PACKAGES_AUTH_TOKEN: ${{ secrets.ASPECT_GH_PACKAGES_AUTH_TOKEN }} ASPECT_NPM_AUTH_TOKEN: ${{ secrets.ASPECT_NPM_AUTH_TOKEN }} ASPECT_RULES_JS_FROZEN_PNPM_LOCK: 1 - XDG_CACHE_HOME: ~/.cache/xdg-cache # bazelisk will download bazel to here - name: Check that unused npm packages were not fetched if: matrix.os != 'windows' @@ -301,7 +304,6 @@ jobs: ASPECT_GH_PACKAGES_AUTH_TOKEN: ${{ secrets.ASPECT_GH_PACKAGES_AUTH_TOKEN }} ASPECT_NPM_AUTH_TOKEN: ${{ secrets.ASPECT_NPM_AUTH_TOKEN }} ASPECT_RULES_JS_FROZEN_PNPM_LOCK: 1 - XDG_CACHE_HOME: ~/.cache/xdg-cache # bazelisk will download bazel to here - name: ./test.sh # Run if there is a test.sh file in the folder. @@ -315,7 +317,6 @@ jobs: ASPECT_GH_PACKAGES_AUTH_TOKEN: ${{ secrets.ASPECT_GH_PACKAGES_AUTH_TOKEN }} ASPECT_NPM_AUTH_TOKEN: ${{ secrets.ASPECT_NPM_AUTH_TOKEN }} ASPECT_RULES_JS_FROZEN_PNPM_LOCK: 1 - XDG_CACHE_HOME: ~/.cache/xdg-cache # bazelisk will download bazel to here # For branch protection settings, this job provides a "stable" name that can be used to gate PR merges # on "all matrix jobs were successful". diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a046e326..8e7ad4eca 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-disk-cache ~/.cache/bazel-repository-cache - ~/.cache/xdg-cache + ~/.cache/bazel + ~/.cache/bazelisk key: bazel-cache-release-${{ hashFiles('.bazelrc', '.bazelversion', '.bazeliskrc', '**/BUILD', '**/BUILD.bazel', '**/*.bzl', 'WORKSPACE', 'WORKSPACE.bazel', 'WORKSPACE.bzlmod', 'MODULE.bazel', '**/*.js', '!e2e') }} restore-keys: bazel-cache-release- - name: bazel test //... - env: - XDG_CACHE_HOME: ~/.cache/xdg-cache # bazelisk will download bazel to here 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