astral-sh-setup-uv/.github/workflows
Kevin Stillhammer 58b6d7b303
fix: add OS version to cache key to prevent binary incompatibility (#716)
## Summary

- Adds OS name and version (e.g., `ubuntu-22.04`, `macos-14`,
`windows-2022`) to cache keys to prevent binary incompatibility when
GitHub updates runner images
- Fixes issue where cached uv binaries compiled against older
glibc/library versions fail on newer runner OS versions

## Changes

- Added `getOSNameVersion()` function to `src/utils/platforms.ts` with
OS-specific detection for Linux (via `/etc/os-release`), macOS (Darwin
kernel version mapping), and Windows
- Updated cache key format to include OS version, bumped `CACHE_VERSION`
to `"2"`
- Added `cache-key` output to expose the generated cache key for
debugging
- Added `test-cache-key-os-version` job testing across multiple OS
versions
- Updated `docs/caching.md` with cache key documentation

Closes #703
2025-12-13 17:25:42 +01:00
..
codeql-analysis.yml Bump github/codeql-action from 4.30.9 to 4.31.6 (#698) 2025-12-07 17:13:22 +01:00
release-drafter.yml chore(ci): address CI lint findings (#545) 2025-09-02 13:29:06 +00:00
test.yml fix: add OS version to cache key to prevent binary incompatibility (#716) 2025-12-13 17:25:42 +01:00
update-known-versions.yml Bump peter-evans/create-pull-request from 7.0.8 to 7.0.9 (#695) 2025-12-07 18:56:50 +01:00
update-major-minor-tags.yml chore(ci): address CI lint findings (#545) 2025-09-02 13:29:06 +00:00