@@ -24,11 +24,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure XMake Custom Mirror
|
- name: Configure XMake Custom Mirror
|
||||||
run: |
|
run: |
|
||||||
echo 'function mirror(url)' > github_mirror.lua
|
$luaContent = @'
|
||||||
echo ' return url:gsub("github.com", "github.bibk.top")' >> github_mirror.lua
|
function mirror(url)
|
||||||
echo 'end' >> github_mirror.lua
|
return url:gsub("github.com", "kkgithub.com")
|
||||||
|
end
|
||||||
|
'@
|
||||||
|
$luaContent | Out-File -FilePath "github_mirror.lua" -Encoding utf8
|
||||||
xmake g --proxy_pac=github_mirror.lua
|
xmake g --proxy_pac=github_mirror.lua
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
|
|
||||||
- name: Update Repo
|
- name: Update Repo
|
||||||
run: xmake repo -u
|
run: xmake repo -u
|
||||||
|
|||||||
Reference in New Issue
Block a user