2 Commits

Author SHA1 Message Date
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

@@ -18,20 +18,11 @@ jobs:
uses: http://MonBianG.lan:3000/action/setup-dotnet@v4.3.0
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:
DOTNET_RESTORE_SOURCES: "https://repo.huaweicloud.com/repository/nuget/v3/index.json"
- name: Build
run: dotnet build --no-restore --configuration Release