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 <[email protected]> Claude-Session: https://claude.ai/code/session_01Uw545F1vveNJKjzLxdi2ks
This commit is contained in:
@@ -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:-<unset>}"
|
||||
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:-<unset>}"
|
||||
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:-<unset>}"
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user