mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5176] [CLOSED] ci: use pre-installed MSYS2 on Windows runner to fix intermittent build failure #5806
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5806
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5176
Author: @Copilot
Created: 6/10/2026
Status: ❌ Closed
Base:
main← Head:copilot/fix-github-actions-build-windows📝 Commits (2)
0eb9500Initial plan4a782b5fix(ci): use pre-installed MSYS2 to avoid installer download failure on Windows build📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
.github/workflows/release.yml(+1 -0)📄 Description
Summary
msys2/setup-msys2@v2was silently crashing during the MSYS2 installer download step on the Windows build, causing the job to fail whenever MSYS2 was absent from the Actions tool cache (e.g. fork PRs, fresh runners).Why
The action's default
release: truemode downloads the MSYS2 installer (~100 MB) from GitHub Releases when no cached copy is available. This download fails immediately (~0.37 s) without a useful error in the log. Runs that hit a warm cache (same branch, prior run) succeeded; fork PRs and cache-cold runs failed consistently.Setting
release: falseinstructs the action to use the MSYS2 already pre-installed on everywindows-latestrunner image atC:\msys64, bypassing the download/cache path entirely. Package installation viapacmancontinues to work as before.Type of change
Areas affected
How was this tested?
Compared failing job 80604056581 (MSYS2 download crash after 0.37 s) against a successful run (MSYS2 served from warm tool cache). The
release: falsepath in the action's source code unconditionally usesC:\msys64and is unaffected by cache state.Screenshots / recordings
N/A
Breaking changes
None
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.