From a192af8ff9cc0520a005c6d4b5c4ac049111bdeb Mon Sep 17 00:00:00 2001 From: Paul Adelsbach Date: Fri, 24 Jul 2026 11:56:31 -0700 Subject: [PATCH] CI: set ccache path so settings are saved on initial seed --- .github/actions/ccache-setup/action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/actions/ccache-setup/action.yml b/.github/actions/ccache-setup/action.yml index 775e9fd72ec..978822e5588 100644 --- a/.github/actions/ccache-setup/action.yml +++ b/.github/actions/ccache-setup/action.yml @@ -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).