Skip to content

Commit a69fc93

Browse files
fix(ci): replace curl-based uv install with astral-sh/setup-uv action (#405)
The astral.sh/uv/install.sh URL intermittently returns 404, breaking macOS builds. The official setup-uv GitHub Action downloads directly from GitHub releases, handles PATH setup automatically, and works reliably across all platforms. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f5b95f8 commit a69fc93

File tree

5 files changed

+14
-56
lines changed

5 files changed

+14
-56
lines changed

.github/workflows/auth-acceptance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
python-version: ${{ env.PYTHON_VERSION }}
5858

5959
- name: Install uv
60-
uses: astral-sh/setup-uv@v4
60+
uses: astral-sh/setup-uv@v6
6161

6262
- name: Install dependencies
6363
run: uv sync

.github/workflows/build-release.yml

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,8 @@ jobs:
6161
with:
6262
python-version: ${{ env.PYTHON_VERSION }}
6363

64-
- name: Install uv (Unix)
65-
if: matrix.platform != 'windows'
66-
run: |
67-
curl -LsSf https://astral.sh/uv/install.sh | sh
68-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
69-
70-
- name: Install uv (Windows)
71-
if: matrix.platform == 'windows'
72-
shell: pwsh
73-
run: |
74-
irm https://astral.sh/uv/install.ps1 | iex
75-
echo "$env:USERPROFILE\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
64+
- name: Install uv
65+
uses: astral-sh/setup-uv@v6
7666

7767
- name: Cache uv environments
7868
uses: actions/cache@v3
@@ -136,18 +126,8 @@ jobs:
136126
sudo apt-get update
137127
sudo apt-get install -y upx-ucl
138128
139-
- name: Install uv (Unix)
140-
if: matrix.platform != 'windows'
141-
run: |
142-
curl -LsSf https://astral.sh/uv/install.sh | sh
143-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
144-
145-
- name: Install uv (Windows)
146-
if: matrix.platform == 'windows'
147-
shell: pwsh
148-
run: |
149-
irm https://astral.sh/uv/install.ps1 | iex
150-
echo "$env:USERPROFILE\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
129+
- name: Install uv
130+
uses: astral-sh/setup-uv@v6
151131

152132
- name: Install Python dependencies
153133
run: |
@@ -217,9 +197,7 @@ jobs:
217197
run: brew install upx
218198

219199
- name: Install uv
220-
run: |
221-
curl -LsSf https://astral.sh/uv/install.sh | sh
222-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
200+
uses: astral-sh/setup-uv@v6
223201

224202
- name: Install dependencies
225203
run: uv sync --extra dev --extra build
@@ -318,9 +296,7 @@ jobs:
318296
run: brew install upx
319297

320298
- name: Install uv
321-
run: |
322-
curl -LsSf https://astral.sh/uv/install.sh | sh
323-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
299+
uses: astral-sh/setup-uv@v6
324300

325301
- name: Install dependencies
326302
run: uv sync --extra dev --extra build
@@ -433,18 +409,8 @@ jobs:
433409
with:
434410
python-version: ${{ env.PYTHON_VERSION }}
435411

436-
- name: Install uv (Unix)
437-
if: matrix.platform != 'windows'
438-
run: |
439-
curl -LsSf https://astral.sh/uv/install.sh | sh
440-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
441-
442-
- name: Install uv (Windows)
443-
if: matrix.platform == 'windows'
444-
shell: pwsh
445-
run: |
446-
irm https://astral.sh/uv/install.ps1 | iex
447-
echo "$env:USERPROFILE\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
412+
- name: Install uv
413+
uses: astral-sh/setup-uv@v6
448414

449415
- name: Install test dependencies
450416
run: uv sync --extra dev

.github/workflows/ci-integration.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ jobs:
6969
python-version: ${{ env.PYTHON_VERSION }}
7070

7171
- name: Install uv
72-
run: |
73-
curl -LsSf https://astral.sh/uv/install.sh | sh
74-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
72+
uses: astral-sh/setup-uv@v6
7573

7674
- name: Cache uv environments
7775
uses: actions/cache@v3
@@ -127,9 +125,7 @@ jobs:
127125
python-version: ${{ env.PYTHON_VERSION }}
128126

129127
- name: Install uv
130-
run: |
131-
curl -LsSf https://astral.sh/uv/install.sh | sh
132-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
128+
uses: astral-sh/setup-uv@v6
133129

134130
- name: Install test dependencies
135131
run: uv sync --extra dev

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ jobs:
3535
python-version: ${{ env.PYTHON_VERSION }}
3636

3737
- name: Install uv
38-
run: |
39-
curl -LsSf https://astral.sh/uv/install.sh | sh
40-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
38+
uses: astral-sh/setup-uv@v6
4139

4240
- name: Cache uv environments
4341
uses: actions/cache@v3
@@ -78,9 +76,7 @@ jobs:
7876
sudo apt-get install -y upx-ucl
7977
8078
- name: Install uv
81-
run: |
82-
curl -LsSf https://astral.sh/uv/install.sh | sh
83-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
79+
uses: astral-sh/setup-uv@v6
8480

8581
- name: Install Python dependencies
8682
run: |

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
python-version: '3.12'
3737

3838
- name: Install uv
39-
uses: astral-sh/setup-uv@v4
39+
uses: astral-sh/setup-uv@v6
4040

4141
- name: Sync dependencies with uv
4242
run: uv sync

0 commit comments

Comments
 (0)