From 8e39e958f2dfcc80d8427c0d91b53e915668af24 Mon Sep 17 00:00:00 2001 From: Kishan B Date: Mon, 11 Nov 2024 17:08:01 +0530 Subject: [PATCH 1/2] Use unmanaged installation --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 8b1e135..1e49f25 100644 --- a/action.yml +++ b/action.yml @@ -24,8 +24,10 @@ runs: - name: Install uv shell: bash run: | - echo "Installing uv.. HOME=${HOME}" - curl -LsSf https://astral.sh/uv/install.sh | bash --login + installation_directory="${HOME}/.setup-python-amazon-linux/uv" + echo "Installing uv.. installation_directory=${installation_directory}" + curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL="${installation_directory}" sh + echo "${installation_directory}" >> "${GITHUB_PATH}" - name: Find desired python version id: find-desired-python-version From 240524f8fc77776306ef51c6b068885aab48d0fa Mon Sep 17 00:00:00 2001 From: Kishan B Date: Mon, 11 Nov 2024 21:32:10 +0530 Subject: [PATCH 2/2] Refactor installation logic --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1e49f25..06a75b8 100644 --- a/action.yml +++ b/action.yml @@ -26,7 +26,8 @@ runs: run: | installation_directory="${HOME}/.setup-python-amazon-linux/uv" echo "Installing uv.. installation_directory=${installation_directory}" - curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL="${installation_directory}" sh + uv_version="0.5.1" + curl -LsSf "https://github.com/astral-sh/uv/releases/download/${uv_version}/uv-installer.sh" | UV_UNMANAGED_INSTALL="${installation_directory}" bash --login echo "${installation_directory}" >> "${GITHUB_PATH}" - name: Find desired python version