Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/actions/ccache-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ runs:
- name: Configure ccache and PATH
shell: bash
run: |
# Set CCACHE_DIR for the commands below too, not only via
# GITHUB_ENV (which applies to later steps): without it the
# settings land in a different default dir on runs where
# ~/.ccache does not exist yet, and seed runs then compile
# with mismatched hash settings that later runs cannot reuse.
export CCACHE_DIR="$HOME/.ccache"
mkdir -p "$CCACHE_DIR"
ccache -M "${{ inputs.max-size }}"
# base_dir lets ccache reuse hits across different workspace
# checkout paths (different runs use different /home/.../work/ dirs).
Expand Down
Loading