2 Commits

Author SHA1 Message Date
Yue-bin
3d82f43bfe chore(ci): 添加网络诊断步骤以排查NuGet恢复问题
Some checks failed
Publish Release / build (push) Has been cancelled
添加了网络诊断步骤,包括DNS测试、curl连接测试和代理环境检查,
以便更好地排查NuGet包恢复时的网络连接问题。
2026-06-10 17:35:53 +08:00
cf2c581716 chore(ci): 使用华为镜像
Some checks failed
Publish Release / build (push) Failing after 3m54s
2026-06-10 17:18:45 +08:00

View File

@@ -19,8 +19,19 @@ jobs:
with: with:
dotnet-version: 8.0.x 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 - name: Restore dependencies
run: dotnet restore run: dotnet restore --source "https://repo.huaweicloud.com/repository/nuget/v3/index.json"
- name: Build - name: Build
run: dotnet build --no-restore --configuration Release run: dotnet build --no-restore --configuration Release