mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-10-17 23:15:16 +02:00
Windows ARM64 jobs may need x64 Python independently of their Python version pin. Add `python-arch` to export `UV_PYTHON_ARCH` for subsequent steps and include the selected architecture in the uv and managed-Python cache keys. The input takes precedence over an inherited environment value, and unsupported uv versions fail before environment creation. Requires a uv release with `UV_PYTHON_ARCH` support.
92 lines
1.5 KiB
YAML
92 lines
1.5 KiB
YAML
# See https://github.com/typesafegithub/github-actions-typing
|
|
|
|
inputs:
|
|
version:
|
|
type: string
|
|
version-file:
|
|
type: string
|
|
python-version:
|
|
type: string
|
|
python-arch:
|
|
type: string
|
|
activate-environment:
|
|
type: boolean
|
|
venv-path:
|
|
type: string
|
|
no-project:
|
|
type: boolean
|
|
working-directory:
|
|
type: string
|
|
checksum:
|
|
type: string
|
|
github-token:
|
|
type: string
|
|
enable-cache:
|
|
type: enum
|
|
allowed-values:
|
|
- "true"
|
|
- "false"
|
|
- auto
|
|
cache-dependency-glob:
|
|
type: list
|
|
separator: "\n"
|
|
list-item:
|
|
type: string
|
|
restore-cache:
|
|
type: boolean
|
|
save-cache:
|
|
type: enum
|
|
allowed-values:
|
|
- "true"
|
|
- "false"
|
|
- auto
|
|
cache-suffix:
|
|
type: string
|
|
cache-local-path:
|
|
type: string
|
|
prune-cache:
|
|
type: boolean
|
|
cache-python:
|
|
type: boolean
|
|
ignore-nothing-to-cache:
|
|
type: boolean
|
|
ignore-empty-workdir:
|
|
type: boolean
|
|
tool-dir:
|
|
type: string
|
|
tool-bin-dir:
|
|
type: string
|
|
manifest-file:
|
|
type: string
|
|
download-from-astral-mirror:
|
|
type: boolean
|
|
add-problem-matchers:
|
|
type: boolean
|
|
quiet:
|
|
type: boolean
|
|
resolution-strategy:
|
|
type: enum
|
|
allowed-values:
|
|
- highest
|
|
- lowest
|
|
|
|
outputs:
|
|
uv-version:
|
|
type: string
|
|
uv-path:
|
|
type: string
|
|
uvx-path:
|
|
type: string
|
|
cache-hit:
|
|
type: boolean
|
|
cache-key:
|
|
type: string
|
|
venv:
|
|
type: string
|
|
python-version:
|
|
type: string
|
|
python-runtime-id:
|
|
type: string
|
|
python-cache-hit:
|
|
type: boolean
|