Skip to content

workflows: centralize and optimize setup-bazel configuration - #4227

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:optimize_setup_bazel_actions
Oct 6, 2026
Merged

rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:optimize_setup_bazel_actions

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

GitHub Actions workflows previously invoked bazel-contrib/setup-bazel
without caching or build optimizations, causing each run to download
Bazel, Python toolchains, PyPI wheels, and the pyrefly type checker
from scratch.

Extract a shared composite action that configures setup-bazel with
bazelisk, disk, and lockfile-aware repository caches. Disable the
default pyrefly output group and select the install_only_stripped
Python distribution to avoid unnecessary toolchain downloads and
type-checking overhead during operational workflow runs.

GitHub Actions workflows previously invoked `bazel-contrib/setup-bazel`
without caching or build optimizations, causing each run to download
Bazel, Python toolchains, PyPI wheels, and the pyrefly type checker
from scratch.

Extract a shared composite action that configures `setup-bazel` with
bazelisk, disk, and lockfile-aware repository caches. Disable the
default `pyrefly` output group and select the `install_only_stripped`
Python distribution to avoid unnecessary toolchain downloads and
type-checking overhead during operational workflow runs.
@rickeylev
rickeylev requested a review from aignas as a code owner October 6, 2026 04:05
@rickeylev
rickeylev merged commit d7bd86c into bazel-contrib:main Oct 6, 2026
4 of 5 checks passed
@rickeylev
rickeylev deleted the optimize_setup_bazel_actions branch October 6, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant