GitHub Action
install rye
v1.4
Latest version
install rye in github action
- uses: phi-friday/[email protected]
id: install-rye
with:
rye_version: "latest" # optional
rye_home: "" # optional
python_version: 3.12 # optional
use_uv: true # optional
strategy:
fail-fast: true
matrix:
include:
- rye_version: "0.28.0"
rye_home: "/opt/rye"
use_uv: "true"
steps:
- uses: actions/cache@v4
id: get-cache
key: "${{ matrix.rye_version }}-${{ matrix.use_uv }}"
path: "${{ matrix.rye_home }}"
- uses: phi-friday/[email protected]
if: steps.get-cache.outputs.cache-hit != 'true'
id: install-rye
with:
rye_version: "${{ matrix.rye_version }}"
rye_home: "${{ matrix.rye_home }}"
use_uv: "${{ matrix.use_uv }}"
rye-version
installed rye version.
ex:
0.28.0
rye-home
installed rye path
ex:
/home/runner/.rye
python-version
pinned python version
ex:
3.12.2
use-uv
use uv flag
ex:
true