generated from Stick_Mods/stick.plugins.tmpl
Compare commits
2 Commits
7c203f130a
...
v1.0.0-ci-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63b0ab1393 | ||
|
|
c3f48b9fde |
@@ -19,22 +19,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
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
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
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