Skip to content

Enable sccache for windows runners when enabled#32

Open
AdamGS wants to merge 1 commit into
runs-on:mainfrom
spiraldb:feature/support-sccache-on-windows
Open

Enable sccache for windows runners when enabled#32
AdamGS wants to merge 1 commit into
runs-on:mainfrom
spiraldb:feature/support-sccache-on-windows

Conversation

@AdamGS

@AdamGS AdamGS commented Mar 26, 2026

Copy link
Copy Markdown

Closes #31.

Enables sccache on Windows runners when applicable. Includes a test that verifies it actually works. In my latest run it dropped build time from 56s to 35s, cache hit rate is just under 90%.

Signed-off-by: Adam Gutglick <adam@spiraldb.com>
@AdamGS AdamGS changed the title Enable support for sccache for windows machines by default Enable sccache for windows runners when enabled Mar 26, 2026
@AdamGS

AdamGS commented Mar 26, 2026

Copy link
Copy Markdown
Author

I wasn't sure if I should include the binaries, LMK what to do about them

echo "RUSTC_WRAPPER: $RUSTC_WRAPPER"

test-sccache-windows:
runs-on: runs-on=${{ github.run_id }}/cpu=2/family=m7/image=windows25-full-x64/extras=s3-cache

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to use windows25 here because it seems like the sccache action assumes some stuff about the powershell env that aren't true for the windows22 images

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, windows25 is the future-proof image, I'll probably deprecate windows22 soon

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.

Support sccache on windows

2 participants