Skip to content

ci: Set CCACHE only for github hosted runner#34670

Merged
sagudev merged 1 commit intomainfrom
sagudev-patch-4
Dec 17, 2024
Merged

ci: Set CCACHE only for github hosted runner#34670
sagudev merged 1 commit intomainfrom
sagudev-patch-4

Conversation

@sagudev
Copy link
Copy Markdown
Member

@sagudev sagudev commented Dec 17, 2024

I believe this should fix #34603 (comment), same tricks as in linux workflow:

- if: ${{ ! fromJSON(needs.runner-select.outputs.is-self-hosted) }}
run: |
echo SCCACHE_GHA_ENABLED=true >> $GITHUB_ENV

Alternative would be to actually install ccache in windows images, but that could/will take a long time and I am not sure if we have persistent storage on self hosted anyway cc @delan?


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because it's CI and I do not have time to manually test

I believe this should fix #34603 (comment)

Signed-off-by: Samson <[email protected]>
@mukilan
Copy link
Copy Markdown
Member

mukilan commented Dec 17, 2024

I am not sure if we have persistent storage on self hosted anyway

Do we need persistent storage if ccache-action uses the Github Action cache?

From https://github.com/hendrikmuhs/ccache-action?tab=readme-ov-file#how-it-works

In a nutshell, the .ccache folder is configured in the runner path and the folder is persisted and reloaded using cache

Copy link
Copy Markdown
Member

@mukilan mukilan left a comment

Choose a reason for hiding this comment

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

Approving this as it looks good to me as a workaround.

@sagudev sagudev added this pull request to the merge queue Dec 17, 2024
Merged via the queue into main with commit 324e929 Dec 17, 2024
@sagudev sagudev deleted the sagudev-patch-4 branch December 17, 2024 19:42
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.

CI: Self hosted Windows github runner can't compile mozjs from source

2 participants