@@ -7,15 +7,15 @@ name: MSBuild
77
88on :
99 push :
10- branches : [ "main" ]
10+ branches : " main"
1111 paths-ignore :
1212 - ' *.md'
1313 - LICENSE
1414 - ' .azuredevops/**'
1515 - ' .nuget/*'
1616 - build/*
1717 pull_request :
18- branches : [ "main" ]
18+ branches : " main"
1919 paths-ignore :
2020 - ' *.md'
2121 - LICENSE
@@ -28,7 +28,7 @@ permissions:
2828
2929jobs :
3030 build :
31- runs-on : windows-${{ matrix.vs }}
31+ runs-on : windows-2022
3232
3333 strategy :
3434 fail-fast : false
@@ -39,31 +39,43 @@ jobs:
3939 platform : [x86, x64, ARM64]
4040
4141 steps :
42- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
42+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4343
44- - name : Add MSBuild to PATH
45- uses : microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
44+ - name : Add MSBuild to PATH
45+ uses : microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
4646
47- - if : matrix.platform != 'ARM64'
48- name : Build (Windows 8.1)
49- working-directory : ${{ github.workspace }}
50- run : msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTK_Desktop_${{ matrix.vs }}.sln
47+ - if : matrix.platform != 'ARM64'
48+ name : Build (Windows 8.1)
49+ working-directory : ${{ github.workspace }}
50+ run : >
51+ msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }}
52+ DirectXTK_Desktop_${{ matrix.vs }}.sln
5153
52- - name : ' Build (Windows 10)'
53- working-directory : ${{ github.workspace }}
54- run : msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTK_Desktop_${{ matrix.vs }}_Win10.sln
54+ - name : ' Build (Windows 10)'
55+ working-directory : ${{ github.workspace }}
56+ run : >
57+ msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }}
58+ DirectXTK_Desktop_${{ matrix.vs }}_Win10.sln
5559
56- - if : matrix.vs == '2022'
57- name : ' Build (UWP)'
58- working-directory : ${{ github.workspace }}
59- run : msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTK_Windows10_2022.sln
60+ - if : matrix.vs == '2022'
61+ name : ' Build (UWP)'
62+ working-directory : ${{ github.workspace }}
63+ run : >
64+ msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }}
65+ DirectXTK_Windows10_2022.sln
6066
61- - if : matrix.platform != 'ARM64'
62- name : ' Build (Windows 8.1 w/ Spectre)'
63- working-directory : ${{ github.workspace }}
64- run : msbuild /m /p:SpectreMitigation=Spectre /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTK_Desktop_${{ matrix.vs }}.sln
67+ - if : matrix.platform != 'ARM64'
68+ name : ' Build (Windows 8.1 w/ Spectre)'
69+ working-directory : ${{ github.workspace }}
70+ run : >
71+ msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }}
72+ /p:SpectreMitigation=Spectre
73+ DirectXTK_Desktop_${{ matrix.vs }}.sln
6574
66- - if : matrix.platform != 'ARM64'
67- name : ' Build (Spectre Windows 10)'
68- working-directory : ${{ github.workspace }}
69- run : msbuild /m /p:SpectreMitigation=Spectre /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTK_Desktop_${{ matrix.vs }}_Win10.sln
75+ - if : matrix.platform != 'ARM64'
76+ name : ' Build (Spectre Windows 10)'
77+ working-directory : ${{ github.workspace }}
78+ run : >
79+ msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }}
80+ /p:SpectreMitigation=Spectre
81+ DirectXTK_Desktop_${{ matrix.vs }}_Win10.sln
0 commit comments