feat(ci):使用Runner提供的.Net SDK版本以加快构建速度
Signed-off-by: doudou0720 <98651603+doudou0720@users.noreply.github.com>
This commit is contained in:
@@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ main, beta ]
|
branches: [ main, beta ]
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened, ready_for_review]
|
types: [opened, synchronize, reopened ]
|
||||||
branches: [ main, beta ]
|
branches: [ main, beta ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
|
|||||||
@@ -217,7 +217,6 @@ jobs:
|
|||||||
- name: Setup dotnet
|
- name: Setup dotnet
|
||||||
uses: actions/setup-dotnet@v5
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: '10.x'
|
|
||||||
cache: true
|
cache: true
|
||||||
cache-dependency-path: '**/packages.lock.json'
|
cache-dependency-path: '**/packages.lock.json'
|
||||||
|
|
||||||
@@ -226,7 +225,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build the Solution (Release)
|
- name: Build the Solution (Release)
|
||||||
run: |
|
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
|
- name: Check if exe file is generated
|
||||||
id: check-exe
|
id: check-exe
|
||||||
|
|||||||
Reference in New Issue
Block a user