3 Commits

Author SHA1 Message Date
Yue-bin
63b0ab1393 chore(ci): 配置.NET构建工作流代理设置
All checks were successful
Publish Release / build (push) Successful in 33s
为解决依赖包还原问题,在Gitea工作流中添加HTTP/HTTPS代理配置,
包括代理服务器地址和本地网络排除规则。
2026-06-11 02:11:04 +08:00
Yue-bin
c3f48b9fde chore(workflow): another try
Some checks failed
Publish Release / build (push) Failing after 3m54s
2026-06-11 01:56:00 +08:00
Yue-bin
7c203f130a chore(workflow): 配置华为云和腾讯云NuGet镜像以提升包恢复速度
Some checks failed
Publish Release / build (push) Failing after 4m16s
# 华为云和腾讯云的 NuGet 镜像配置
- 替换原有的网络诊断步骤为NuGet镜像配置
- 添加华为云和腾讯云的NuGet源到nuget.config文件
- 修改dotnet restore命令使用配置文件而非直接指定源地址
2026-06-10 17:41:36 +08:00

View File

@@ -19,19 +19,13 @@ jobs:
with:
dotnet-version: 8.0.x
- name: Diagnose network
run: |
echo "=== DNS test ==="
nslookup api.nuget.org || dig api.nuget.org || echo "DNS failed"
echo "=== Curl test (nuget.org) ==="
curl -v --connect-timeout 10 https://api.nuget.org/v3/index.json 2>&1 || echo "curl failed"
echo "=== Curl test (huawei mirror) ==="
curl -v --connect-timeout 10 https://repo.huaweicloud.com/repository/nuget/v3/index.json 2>&1 || echo "curl failed"
echo "=== Proxy env ==="
env | grep -i proxy || echo "no proxy set"
- name: Restore dependencies
run: dotnet restore --source "https://repo.huaweicloud.com/repository/nuget/v3/index.json"
run: dotnet restore
# 直接加代理得了
env:
http_proxy: "http://172.17.0.1:7890"
https_proxy: "http://172.17.0.1:7890"
no_proxy: "localhost,127.0.0.1,*.lan"
- name: Build
run: dotnet build --no-restore --configuration Release