From 3436b02ff5298924e73eaf233ee6d69d797c75dd Mon Sep 17 00:00:00 2001 From: James Griffin Date: Thu, 20 Aug 2026 15:49:04 -0300 Subject: [PATCH] Move actions/cache to v4 and probe the cache URL thatguygriff/infra#1 turned the runner cache server on, so actions/cache has an endpoint for the first time. v4 rather than v3 because v4.2+ can speak the cache service v2 API, which is what the runner serves. The instrumentation step now also prints ACTIONS_CACHE_URL, so a single run shows the endpoint arriving and the cache being read in one log rather than needing a separate probe. Refs #178. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Uw545F1vveNJKjzLxdi2ks --- .gitea/workflows/ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 19384a1..a792eaa 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: | sudo tee /etc/apt/apt.conf.d/99keep-downloaded-packages >/dev/null - name: Cache apt packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /var/cache/apt/archives/*.deb key: apt-php-builder-deps-${{ runner.arch }}-v1 @@ -44,6 +44,7 @@ jobs: # builder's dependencies, and times the step that consumes them. - name: Report restored .debs run: | + echo "ACTIONS_CACHE_URL: ${ACTIONS_CACHE_URL:-}" echo "restored .debs: $(ls /var/cache/apt/archives/*.deb 2>/dev/null | wc -l)" echo "restored size: $(du -sh /var/cache/apt/archives 2>/dev/null | cut -f1)" date -u +'setup-php start: %H:%M:%S' @@ -55,7 +56,7 @@ jobs: tools: composer:v2 - name: Cache Composer packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.composer/cache key: composer-${{ hashFiles('composer.json') }} @@ -98,7 +99,7 @@ jobs: | sudo tee /etc/apt/apt.conf.d/99keep-downloaded-packages >/dev/null - name: Cache apt packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /var/cache/apt/archives/*.deb key: apt-php-builder-deps-${{ runner.arch }}-v1 @@ -107,6 +108,7 @@ jobs: # builder's dependencies, and times the step that consumes them. - name: Report restored .debs run: | + echo "ACTIONS_CACHE_URL: ${ACTIONS_CACHE_URL:-}" echo "restored .debs: $(ls /var/cache/apt/archives/*.deb 2>/dev/null | wc -l)" echo "restored size: $(du -sh /var/cache/apt/archives 2>/dev/null | cut -f1)" date -u +'setup-php start: %H:%M:%S' @@ -120,7 +122,7 @@ jobs: tools: composer:v2 - name: Cache Composer packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.composer/cache key: ${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} @@ -170,7 +172,7 @@ jobs: | sudo tee /etc/apt/apt.conf.d/99keep-downloaded-packages >/dev/null - name: Cache apt packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /var/cache/apt/archives/*.deb key: apt-php-builder-deps-${{ runner.arch }}-v1 @@ -179,6 +181,7 @@ jobs: # builder's dependencies, and times the step that consumes them. - name: Report restored .debs run: | + echo "ACTIONS_CACHE_URL: ${ACTIONS_CACHE_URL:-}" echo "restored .debs: $(ls /var/cache/apt/archives/*.deb 2>/dev/null | wc -l)" echo "restored size: $(du -sh /var/cache/apt/archives 2>/dev/null | cut -f1)" date -u +'setup-php start: %H:%M:%S'