Skip to content

Commit 4faa099

Browse files
committed
ci: switch workflow to use build.cmd instead of inline MSBuild
1 parent c8572b2 commit 4faa099

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v6
26+
with:
27+
# Fetch full history and all tags so build.cmd can run `git describe`
28+
fetch-depth: 0
29+
fetch-tags: true
2630

2731
- name: Add MSBuild to PATH
2832
uses: microsoft/setup-msbuild@v3
@@ -69,17 +73,10 @@ jobs:
6973
exit 1
7074
}
7175
72-
- name: Run MSBuild with Code Analysis
76+
- name: Build using build.cmd
77+
shell: pwsh
7378
run: |
74-
$msbuildArgs = @(
75-
"ColorCop.sln"
76-
"/p:Configuration=${{ matrix.configuration }}"
77-
"/p:Platform=Win32"
78-
"/p:RunCodeAnalysis=true"
79-
"/p:CodeAnalysisRuleSet=NativeMinimumRules.ruleset"
80-
"/p:CodeAnalysisTreatWarningsAsErrors=false"
81-
)
82-
MSBuild.exe $msbuildArgs
79+
./build.cmd
8380
8481
- name: Download VC++ Redistributable
8582
shell: pwsh

0 commit comments

Comments
 (0)