fix(ci): replace curl-based uv install with astral-sh/setup-uv action#405
fix(ci): replace curl-based uv install with astral-sh/setup-uv action#405danielmeppiel merged 1 commit intomainfrom
Conversation
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>
There was a problem hiding this comment.
Pull request overview
This PR hardens and stabilizes CI/CD by replacing the flaky curl | sh / PowerShell installer for uv with the official astral-sh/setup-uv@v6 action across workflows, addressing intermittent astral.sh/uv/install.sh 404 failures (notably on macOS release jobs).
Changes:
- Replace
curl -LsSf https://astral.sh/uv/install.sh | sh(and the Windowsirm ... | iexequivalent) withuses: astral-sh/setup-uv@v6in CI and release workflows. - Bump existing
astral-sh/setup-uvusage in auxiliary workflows (auth-acceptance,copilot-setup-steps) from@v4to@v6.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/ci.yml |
Switches uv installation in PR CI and Linux PR binary build to setup-uv@v6. |
.github/workflows/ci-integration.yml |
Switches uv installation in workflow_run-based integration pipeline to setup-uv@v6. |
.github/workflows/build-release.yml |
Replaces conditional Unix/Windows uv install scripts with a single setup-uv@v6 step across build/test/release jobs (incl. macOS). |
.github/workflows/auth-acceptance.yml |
Bumps uv setup action from @v4 to @v6. |
.github/workflows/copilot-setup-steps.yml |
Bumps uv setup action from @v4 to @v6. |
| - name: Install uv | ||
| run: | | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||
| uses: astral-sh/setup-uv@v6 |
There was a problem hiding this comment.
CI now installs uv via astral-sh/setup-uv@v6 to avoid intermittent 404s from astral.sh/uv/install.sh, but the repo still documents the curl-based installer in docs/src/content/docs/getting-started/installation.md (contributors section) and in .github/workflows/cli-consistency-checker.md. Those instructions are likely to remain flaky for contributors/automation; please update them to a more reliable uv install method (or link to Astral’s official install docs) to keep documentation consistent with this change.
Problem
The
astral.sh/uv/install.shURL intermittently returns HTTP 404, breaking macOS builds (and potentially other platforms). This caused the v0.8.4 release pipeline to fail on both macOS jobs.Fix
Replace all
curl -LsSf https://astral.sh/uv/install.sh | sh(and the Windows PowerShell equivalent) with the officialastral-sh/setup-uv@v6GitHub Action across all CI/CD workflows:ci.yml(2 instances)ci-integration.yml(2 instances)build-release.yml(5 instances)auth-acceptance.yml(bumped v4 → v6)copilot-setup-steps.yml(bumped v4 → v6)The
setup-uvaction:GITHUB_PATHmanipulation)Context
This blocked the v0.8.4 release. After merging, we need to re-trigger the release pipeline for the v0.8.4 tag.