From 7d15d388d7e92547f1cc8ca47748b79589701051 Mon Sep 17 00:00:00 2001 From: Gangzheng Tong Date: Tue, 2 Sep 2025 17:07:06 -0700 Subject: Enable ccache for self-hosted runner (#8345) Related to https://github.com/shader-slang/slang/issues/6728 --------- Co-authored-by: slangbot Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- .github/actions/common-setup/action.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to '.github/actions') diff --git a/.github/actions/common-setup/action.yml b/.github/actions/common-setup/action.yml index a3b219c15..bf6174c75 100644 --- a/.github/actions/common-setup/action.yml +++ b/.github/actions/common-setup/action.yml @@ -117,3 +117,18 @@ runs: windows*) echo "${{github.workspace}}/external/slang-binaries/spirv-tools/windows-$win_platform/bin" >> "$GITHUB_PATH";; linux*) echo "${{github.workspace}}/external/slang-binaries/spirv-tools/$(uname -m)-linux/bin" >> "$GITHUB_PATH";; esac + + # Setup ccache for self-hosted runners (Windows only for now) + - name: Setup ccache + if: ${{ inputs.os == 'windows' && runner.environment == 'self-hosted' }} + uses: Chocobo1/setup-ccache-action@v1 + with: + update_packager_index: false + install_ccache: true + prepend_symlinks_to_path: true + windows_compile_environment: msvc + ccache_options: | + max_size=2G + compression=true + compression_level=6 + sloppiness=pch_defines,time_macros -- cgit v1.2.3