mirror of
https://github.com/actions/setup-python
synced 2025-04-05 14:59:42 +00:00
Add example of GraalPy to docs (#773)
This commit is contained in:
@ -11,9 +11,10 @@
|
||||
- [Outputs](advanced-usage.md#outputs)
|
||||
- [Environment variables](advanced-usage.md#environment-variables)
|
||||
- [Using update-environment flag](advanced-usage.md#using-update-environment-flag)
|
||||
- [Available versions of Python and PyPy](advanced-usage.md#available-versions-of-python-and-pypy)
|
||||
- [Available versions of Python and PyPy](advanced-usage.md#available-versions-of-python-pypy-and-graalpy)
|
||||
- [Python](advanced-usage.md#python)
|
||||
- [PyPy](advanced-usage.md#pypy)
|
||||
- [GraalPy](advanced-usage.md#graalpy)
|
||||
- [Hosted tool cache](advanced-usage.md#hosted-tool-cache)
|
||||
- [Using `setup-python` with a self-hosted runner](advanced-usage.md#using-setup-python-with-a-self-hosted-runner)
|
||||
- [Windows](advanced-usage.md#windows)
|
||||
@ -459,7 +460,7 @@ Such a requirement on side-effect could be because you don't want your composite
|
||||
update-environment: false
|
||||
- run: ${{ steps.cp310.outputs.python-path }} my_script.py
|
||||
```
|
||||
## Available versions of Python and PyPy
|
||||
## Available versions of Python, PyPy and GraalPy
|
||||
### Python
|
||||
|
||||
`setup-python` is able to configure **Python** from two sources:
|
||||
@ -490,6 +491,11 @@ Such a requirement on side-effect could be because you don't want your composite
|
||||
- PyPy < 7.3.3 are not available to install on-flight.
|
||||
- If some versions are not available, you can open an issue in https://foss.heptapod.net/pypy/pypy/
|
||||
|
||||
### GraalPy
|
||||
|
||||
`setup-python` is able to download GraalPy versions from the [official GraalPy repository](https://github.com/oracle/graalpython).
|
||||
- All available versions that we can download are listed in [releases](https://github.com/oracle/graalpython/releases).
|
||||
|
||||
## Hosted tool cache
|
||||
|
||||
GitHub hosted runners have a tool cache that comes with a few versions of Python + PyPy already installed. This tool cache helps speed up runs and tool setup by not requiring any new downloads. There is an environment variable called `RUNNER_TOOL_CACHE` on each runner that describes the location of the tool cache with Python and PyPy installed. `setup-python` works by taking a specific version of Python or PyPy from this tool cache and adding it to PATH.
|
||||
|
Reference in New Issue
Block a user