diff options
| author | Gangzheng Tong <tonggangzheng@gmail.com> | 2025-09-02 17:07:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-03 00:07:06 +0000 |
| commit | 7d15d388d7e92547f1cc8ca47748b79589701051 (patch) | |
| tree | 457312d7278eb8aa5186ca03237477b3f3ad5993 /.github/actions | |
| parent | f02b08490aa905f42a8d90381db84b1f8e409c0c (diff) | |
Enable ccache for self-hosted runner (#8345)
Related to https://github.com/shader-slang/slang/issues/6728
---------
Co-authored-by: slangbot <ellieh+slangbot@nvidia.com>
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to '.github/actions')
| -rw-r--r-- | .github/actions/common-setup/action.yml | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
