generated from Stick_Mods/stick.plugins.tmpl
Compare commits
3 Commits
v1.0.0-ci-
...
v1.0.0-ci-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63b0ab1393 | ||
|
|
c3f48b9fde | ||
|
|
7c203f130a |
@@ -18,20 +18,14 @@ jobs:
|
|||||||
uses: http://MonBianG.lan:3000/action/setup-dotnet@v4.3.0
|
uses: http://MonBianG.lan:3000/action/setup-dotnet@v4.3.0
|
||||||
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 --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
|
- name: Build
|
||||||
run: dotnet build --no-restore --configuration Release
|
run: dotnet build --no-restore --configuration Release
|
||||||
|
|||||||
Reference in New Issue
Block a user