Update .github/workflows/build.yml
/ build (push) Failing after 44m19s

This commit is contained in:
2026-06-19 12:26:16 +08:00
Unverified
parent b2d81f4c9f
commit e158bc9c8c
+6 -2
View File
@@ -26,6 +26,9 @@ jobs:
- name: Configure Mirror - name: Configure Mirror
run: | run: |
$fileName = "github_mirror.lua"
$currentDir = Get-Location
$absoluteFilePath = Join-Path $currentDir $fileName
$luaContent = @' $luaContent = @'
function mirror(url) function mirror(url)
url = url:gsub("github.com", "github.bibk.top") url = url:gsub("github.com", "github.bibk.top")
@@ -35,8 +38,9 @@ jobs:
return true return true
end end
'@ '@
$luaContent | Out-File -FilePath "github_mirror.lua" -Encoding utf8 $luaContent | Out-File -FilePath $absoluteFilePath -Encoding utf8
xmake g --proxy_pac=github_mirror.lua Write-Host "Mirror config generated at: $absoluteFilePath"
xmake g --proxy_pac=$absoluteFilePath
shell: powershell shell: powershell
- name: Update Repo - name: Update Repo