feat(ci):使用Runner提供的.Net SDK版本以加快构建速度

Signed-off-by: doudou0720 <98651603+doudou0720@users.noreply.github.com>
This commit is contained in:
doudou0720
2026-02-16 12:55:25 +08:00
parent f252eb068a
commit 85f92ca9a5
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ on:
push:
branches: [ main, beta ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
types: [opened, synchronize, reopened ]
branches: [ main, beta ]
paths-ignore:
- '**/*.md'
+2 -3
View File
@@ -217,7 +217,6 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
cache: true
cache-dependency-path: '**/packages.lock.json'
@@ -226,7 +225,7 @@ jobs:
- name: Build the Solution (Release)
run: |
msbuild /p:platform="AnyCPU" /p:configuration="Release" /p:GitFlow="Github Action" "Ink Canvas/InkCanvasForClass.csproj" /m /p:UseMultiToolTask=true /p:EnforceProcessCountAcrossBuilds=true /verbosity:minimal
msbuild /p:platform="AnyCPU" /p:configuration="Release" /p:GitFlow="Github Action" "Ink Canvas/InkCanvasForClass.csproj" /m /p:UseMultiToolTask=true /p:EnforceProcessCountAcrossBuilds=true /verbosity:minimal -maxcpucount /p:RunAnalyzers=false
- name: Check if exe file is generated
id: check-exe
@@ -630,4 +629,4 @@ jobs:
-f message="Update AutomaticUpdateVersionControl.txt" \
-f content="$CONTENT" \
-f branch="beta" \
${SHA:+-f sha="$SHA"}
${SHA:+-f sha="$SHA"}