2 Commits

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

View File

@@ -19,8 +19,22 @@ jobs:
with:
dotnet-version: 8.0.x
# 华为云和腾讯云的 NuGet 镜像配置
- name: Configure NuGet mirror
run: |
cat > nuget.config << 'EOF'
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="huawei-mirror" value="https://repo.huaweicloud.com/repository/nuget/v3/index.json" />
<add key="tencent" value="https://mirrors.cloud.tencent.com/nuget/" />
</packageSources>
</configuration>
EOF
- name: Restore dependencies
run: dotnet restore --source "https://repo.huaweicloud.com/repository/nuget/v3/index.json"
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release