Skip to content

Commit 40f752c

Browse files
committed
Enforce -maxcpucount switch on MSBuild commands in CI
1 parent b17e64f commit 40f752c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ jobs:
375375
- name: Build
376376
run: |
377377
msbuild $env:THIS_PROJECT_PATH `
378+
-maxcpucount `
378379
-t:Build `
379380
-p:Platform="Any CPU" `
380381
-p:Configuration=$env:CONFIGURATION `
@@ -415,13 +416,15 @@ jobs:
415416
- name: Restore
416417
run: |
417418
msbuild $env:SOLUTION_PATH `
419+
-maxcpucount `
418420
-t:Restore `
419421
-p:Platform="Any CPU" `
420422
-p:Configuration=$env:CONFIGURATION
421423
422424
- name: Build
423425
run: |
424426
msbuild $env:THIS_PROJECT_PATH `
427+
-maxcpucount `
425428
-t:Build `
426429
-p:Platform="Any CPU" `
427430
-p:Configuration=$env:CONFIGURATION `

0 commit comments

Comments
 (0)