diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d54e80..f559313 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,11 +24,14 @@ jobs: - name: Configure XMake Custom Mirror run: | - echo 'function mirror(url)' > github_mirror.lua - echo ' return url:gsub("github.com", "github.bibk.top")' >> github_mirror.lua - echo 'end' >> github_mirror.lua + $luaContent = @' + function mirror(url) + return url:gsub("github.com", "kkgithub.com") + end + '@ + $luaContent | Out-File -FilePath "github_mirror.lua" -Encoding utf8 xmake g --proxy_pac=github_mirror.lua - shell: pwsh + shell: powershell - name: Update Repo run: xmake repo -u