🌐 AI搜索 & 代理 主页
Skip to content

Commit 4cd252e

Browse files
committed
Restore with lock file
1 parent bae708d commit 4cd252e

File tree

7 files changed

+1479
-8
lines changed

7 files changed

+1479
-8
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,22 @@ jobs:
5151
python: ["3.10", "3.11", "3.12", "3.13"]
5252

5353
steps:
54-
- name: Checkout code
55-
uses: actions/checkout@v6
56-
57-
- name: Setup .NET
58-
uses: actions/setup-dotnet@v5
59-
with:
60-
dotnet-version: '8.0.x'
61-
6254
- name: Install Mono
6355
uses: ConorMacBride/install-package@v1.1.0
6456
with:
6557
brew: mono
6658
choco: mono
6759
apt: mono-runtime-sgen
6860

61+
- name: Setup .NET
62+
uses: actions/setup-dotnet@v5
63+
with:
64+
cache: true
65+
dotnet-version: '8.x'
66+
67+
- uses: actions/checkout@v6
68+
- run: dotnet restore --locked-mode
69+
6970
- name: Set up Python ${{ matrix.python }}
7071
uses: astral-sh/setup-uv@v7
7172
with:

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<AssemblyProduct>Python.NET</AssemblyProduct>
77
<LangVersion>12.0</LangVersion>
88
<IsPackable>false</IsPackable>
9+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
910
<FullVersion>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)version.txt").Trim())</FullVersion>
1011
<VersionPrefix>$(FullVersion.Split('-', 2)[0])</VersionPrefix>
1112
<VersionSuffix Condition="$(FullVersion.Contains('-'))">$(FullVersion.Split('-', 2)[1])</VersionSuffix>

0 commit comments

Comments
 (0)