Skip to content

ci: install Bazelisk without rewriting home configuration - #20

Merged
realityforge merged 1 commit into
mainfrom
ci/use-bazelisk-without-home-config
Oct 5, 2026
Merged

realityforge merged 1 commit into
mainfrom
ci/use-bazelisk-without-home-config

Conversation

@realityforge

@realityforge realityforge commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

The Bazel setup action overwrites ~/.bazelrc on every run and forces builds into one shared output directory, even when repository caching is disabled. Install Bazelisk directly so CI uses Bazel's normal configuration and workspace-specific output directories.

The workflows download Bazelisk 1.29.0 into the runner's temporary directory, verify its pinned SHA-256 checksum, and add it to PATH as bazel (or bazel.exe). Existing Bazel version selection continues to apply. Removing the action also removes its managed caches; Bazel retains its normal local caches.

Verified the release downloads and checksums for Linux x86_64/arm64, macOS x86_64/arm64, and Windows x86_64. Exercised the Linux installer and Bazel launcher locally without modifying the user's .bazelrc.

Install checksum-pinned Bazelisk in the runner temporary directory instead of setup-bazel, which unconditionally overwrites ~/.bazelrc and forces a shared output base.
@realityforge
realityforge enabled auto-merge October 5, 2026 11:48
@realityforge
realityforge merged commit 50d598c into main Oct 5, 2026
19 of 21 checks passed
@realityforge
realityforge deleted the ci/use-bazelisk-without-home-config branch October 5, 2026 11:52
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