Commit Graph

266 Commits

Author SHA1 Message Date
github-actions[bot]
dd9d748439 chore: update known checksums for 0.10.2 (#765)
chore: update known checksums for 0.10.2

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-02-11 12:10:01 +01:00
github-actions[bot]
14eede1834 chore: update known checksums for 0.10.1 (#764)
chore: update known checksums for 0.10.1

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-02-10 17:24:16 +01:00
Kevin Stillhammer
02182fa02a fix: warn instead of error when no python to cache (#762)
Fixes: #754
2026-02-06 16:00:33 +01:00
github-actions[bot]
a3b3eaea92 chore: update known checksums for 0.10.0 (#759)
chore: update known checksums for 0.10.0

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-02-06 15:43:35 +01:00
Kevin Stillhammer
78cebeceac fix: use --clear to create venv (#761)
Fixes: https://github.com/astral-sh/setup-uv/issues/758
2026-02-06 10:48:26 +01:00
github-actions[bot]
e31bec8546 chore: update known checksums for 0.9.30 (#756)
chore: update known checksums for 0.9.30

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-02-05 22:25:51 +01:00
Kevin Stillhammer
3511ff7054 feat: add venv-path input for activate-environment (#746)
Allow customizing the venv location while preserving working-directory
semantics via --directory.

Supersedes: #736
2026-02-04 08:40:32 +01:00
github-actions[bot]
db4d6bf3d6 chore: update known checksums for 0.9.29 (#748)
chore: update known checksums for 0.9.29

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-02-04 08:37:58 +01:00
github-actions[bot]
803947b9bd chore: update known checksums for 0.9.28 (#744)
chore: update known checksums for 0.9.28

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-01-30 08:40:25 +01:00
github-actions[bot]
24553ac46d chore: update known checksums for 0.9.27 (#742)
chore: update known checksums for 0.9.27

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-01-27 09:39:27 +01:00
github-actions[bot]
9cfd029643 chore: update known checksums for 0.9.26 (#734)
chore: update known checksums for 0.9.26

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-01-16 07:43:31 +01:00
github-actions[bot]
dd9d55bc18 chore: update known checksums for 0.9.25 (#733)
chore: update known checksums for 0.9.25

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-01-14 08:07:09 +01:00
github-actions[bot]
cc5581700e chore: update known checksums for 0.9.24 (#730)
chore: update known checksums for 0.9.24

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-01-10 09:16:27 +01:00
Kevin Stillhammer
61cb8a9741 add outputs python-version and python-cache-hit (#728)
This commit splits up the "normal" cache containing the dependencies and
the "python" cache containing the python binaries. This will lead to a
one-time invalidation of caches.

Closes: #713
2026-01-06 18:06:29 +01:00
github-actions[bot]
e0409b43c0 chore: update known checksums for 0.9.22 (#727)
chore: update known checksums for 0.9.22

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2026-01-06 11:56:27 +01:00
github-actions[bot]
702b425af1 chore: update known checksums for 0.9.21 (#726)
chore: update known checksums for 0.9.21

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-12-31 09:03:38 +01:00
github-actions[bot]
2630c86ac3 chore: update known checksums for 0.9.20 (#725)
chore: update known checksums for 0.9.20

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-12-30 10:31:31 +01:00
github-actions[bot]
ce0a8994de chore: update known checksums for 0.9.18 (#718)
chore: update known checksums for 0.9.18

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-12-18 08:05:41 +01:00
Aarni Koskela
9c8d030b7f chore: remove stray space from UV_PYTHON_INSTALL_DIR message (#720)
I was mildly annoyed seeing

```
Post job cleanup.
UV_CACHE_DIR is already set to /home/runner/work/_temp/setup-uv-cache
UV_PYTHON_INSTALL_DIR is already set to  /home/runner/work/_temp/uv-python-dir
```
in my GHA log. 😄 

This fixes that to
```
Post job cleanup.
UV_CACHE_DIR is already set to /home/runner/work/_temp/setup-uv-cache
UV_PYTHON_INSTALL_DIR is already set to /home/runner/work/_temp/uv-python-dir
```
as is good and proper.
2025-12-17 17:04:27 +01:00
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
github-actions[bot]
e8b52af86e chore: update known checksums for 0.9.17 (#714)
chore: update known checksums for 0.9.17

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-12-10 08:18:18 +01:00
Kevin Stillhammer
93202d8fbe bump dependencies (#709) 2025-12-07 18:56:35 +01:00
Kevin Stillhammer
4180991cd9 allow cache-local-path w/o enable-cache (#707)
Fixes: #705
2025-12-07 17:52:54 +01:00
github-actions[bot]
7dd56c18e9 chore: update known checksums for 0.9.16 (#706)
chore: update known checksums for 0.9.16

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-12-07 11:07:09 +01:00
github-actions[bot]
9c12baee96 chore: update known checksums for 0.9.15 (#704)
chore: update known checksums for 0.9.15

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-12-03 09:11:26 +01:00
github-actions[bot]
5ae467fbf9 chore: update known checksums for 0.9.14 (#700)
chore: update known checksums for 0.9.14

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-12-02 08:07:17 +01:00
github-actions[bot]
d500d41ebf chore: update known checksums for 0.9.13 (#694)
chore: update known checksums for 0.9.13

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-11-26 17:50:19 +01:00
github-actions[bot]
1e64fb113b chore: update known checksums for 0.9.12 (#693)
chore: update known checksums for 0.9.12

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-11-25 19:27:53 +01:00
github-actions[bot]
be7fc19b41 chore: update known checksums for 0.9.11 (#688)
chore: update known checksums for 0.9.11

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-11-21 13:24:51 +01:00
Kevin Stillhammer
1e862dfacb Wait 50ms before exit to fix libuv bug (#689)
Fixes: #686
2025-11-21 09:00:37 +01:00
github-actions[bot]
d7d33e16d4 chore: update known checksums for 0.9.10 (#681)
chore: update known checksums for 0.9.10

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-11-17 21:55:33 +01:00
github-actions[bot]
486d0b8872 chore: update known checksums for 0.9.9 (#679)
chore: update known checksums for 0.9.9

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-11-13 07:39:25 +01:00
Kevin Stillhammer
5a7eac68fb use old undici and ES2022 target for act support (#678) 2025-11-10 19:48:23 +01:00
github-actions[bot]
b49dc9e882 chore: update known checksums for 0.9.8 (#677)
chore: update known checksums for 0.9.8

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-11-07 22:12:16 +01:00
github-actions[bot]
0d20755a23 chore: update known checksums for 0.9.7 (#671)
chore: update known checksums for 0.9.7

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-10-31 10:15:52 +01:00
github-actions[bot]
8491d1d9a3 chore: update known checksums for 0.9.6 (#670)
chore: update known checksums for 0.9.6

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-10-30 07:21:44 +01:00
Kevin Stillhammer
85856786d1 Bump dependencies (#664) 2025-10-26 15:59:34 +01:00
github-actions[bot]
14d557131d chore: update known checksums for 0.9.5 (#663)
chore: update known checksums for 0.9.5

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-10-24 16:27:04 +02:00
Christoph Reiter
29cd2350cd Use tar for extracting the uv zip file on Windows too (#660)
Use extractTar() instead of extractZip() which is very slow for some
reason (0.3s vs 10s)

Fixes #659
2025-10-24 16:13:48 +02:00
github-actions[bot]
2ddd2b9cb3 chore: update known checksums for 0.9.4 (#651)
chore: update known checksums for 0.9.4

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-10-19 12:55:38 +02:00
Tom Gillam
b7bf78939d Fix "lowest" resolution strategy with lower-bound only (#649)
- towards https://github.com/astral-sh/setup-uv/issues/648

Fix the bug described there, but this doesn't add the fast-path
optimisation suggested in that issue.
2025-10-16 13:41:50 +02:00
Kevin Stillhammer
dffc6292f2 Use working-directory to detect empty workdir (#645)
Fixes: #642
2025-10-16 08:21:58 +02:00
github-actions[bot]
6e346e1653 chore: update known checksums for 0.9.3 (#644)
chore: update known checksums for 0.9.3

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-10-16 07:45:10 +02:00
Kevin Stillhammer
3259c6206f Bump deps (#633) 2025-10-12 20:47:54 +02:00
Copilot
9c6b5e9fb5 Add resolution-strategy input to support oldest compatible version selection (#631)
Adds a new `resolution-strategy` input that allows users to choose
between installing the highest (default) or lowest compatible version
when resolving version ranges.
2025-10-11 21:02:04 +02:00
Kevin Stillhammer
d18bcc753a Add value of UV_PYTHON_INSTALL_DIR to path (#628)
Closes: #610
2025-10-11 18:42:06 +02:00
Kevin Stillhammer
bd1f875aba Set output venv when activate-environment is used (#627)
Closes: #622
2025-10-11 15:17:25 +02:00
github-actions[bot]
1a91c3851d chore: update known checksums for 0.9.2 (#626)
Co-authored-by: woodruffw <woodruffw@users.noreply.github.com>
2025-10-10 17:11:01 -04:00
github-actions[bot]
c79f606987 chore: update known checksums for 0.9.1 (#625)
chore: update known checksums for 0.9.1

Co-authored-by: eifinger <eifinger@users.noreply.github.com>
2025-10-10 17:24:01 +02:00
Merlin
6d2eb15b49 Cache python installs (#621)
This pull request introduces support for caching Python installs in the
GitHub Action, allowing users to cache not only dependencies but also
the Python interpreter itself.

This works by setting the `UV_PYTHON_INSTALL_DIR` to a subdirectory of
the dependency cache path so that Python installs are directed there.

Fixes #135

---------

Co-authored-by: Kevin Stillhammer <kevin.stillhammer@gmail.com>
2025-10-09 22:47:24 +02:00