Robolectric's Android framework jars (about 200 MB each) get their own
cache entry, keyed on their versions. The build job saves it also when a
test fails. setup-gradle's cache does not keep them a second time.
.github/actions/android-sdk: sdkmanager install, with the packages that
the runner image does not have (CMake each run until now, and the
emulator's system image) cached, keyed on the image and the package list.
The three Android jobs use it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSYSk1rgeTZ9ZWMcZL
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
GitHub warns that Node 20 actions are deprecated. checkout v6, cache
(and cache/restore, cache/save) v5, setup-java v5, setup-node v6,
upload-artifact v7, gradle setup-gradle v5 (v6 defaults to a proprietary
cache provider).
setup-swift has no Node 24 release yet: the DModemKit test uses the
runner image's Swift instead (6.4 on ubuntu-24.04; the package needs
tools 5.9).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
ImageOS and ImageVersion are the runner's environment variables, not the
workflow's env context, so ${{ env.ImageVersion }} was empty and the
cache key never changed with the image. Build the key in the shell.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
Package installs sometimes stall on GitHub's runners. A local action
(.github/actions/apt, and .github/actions/brew where macOS builds) caches
the downloaded packages, and apt's package lists with them, keyed on the
runner image and the package list. A cache hit installs offline; a miss
installs as before, with retries and timeouts, and saves the cache.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S