VS 2026 projects #346
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| # | |
| # https://go.microsoft.com/fwlink/?LinkID=324981 | |
| name: MSBuild | |
| on: | |
| push: | |
| branches: "main" | |
| paths-ignore: | |
| - '*.md' | |
| - LICENSE | |
| - '.azuredevops/**' | |
| - '.nuget/*' | |
| - build/* | |
| pull_request: | |
| branches: "main" | |
| paths-ignore: | |
| - '*.md' | |
| - LICENSE | |
| - '.azuredevops/**' | |
| - '.nuget/*' | |
| - build/* | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-2022 # has v142 tools but not v142 spectre libs | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| vs: [2019, 2022] | |
| build_type: [Debug, Release] | |
| platform: [x86, x64, ARM64] | |
| exclude: | |
| - vs: 2019 | |
| platform: ARM64 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Add MSBuild to PATH | |
| uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0 | |
| - if: matrix.platform != 'ARM64' | |
| name: Build | |
| working-directory: ${{ github.workspace }} | |
| run: > | |
| msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} | |
| DirectXMesh_Desktop_${{ matrix.vs }}.sln | |
| - name: 'Build (Windows 10)' | |
| working-directory: ${{ github.workspace }} | |
| run: > | |
| msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} | |
| DirectXMesh_Desktop_${{ matrix.vs }}_Win10.sln | |
| - if: matrix.vs == '2022' | |
| name: 'Build (UWP)' | |
| working-directory: ${{ github.workspace }} | |
| run: > | |
| msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} | |
| DirectXMesh_Windows10_2022.sln | |
| - if: matrix.platform != 'ARM64' && matrix.vs != '2019' | |
| name: 'Build (Spectre)' | |
| working-directory: ${{ github.workspace }} | |
| run: > | |
| msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} | |
| /p:SpectreMitigation=Spectre | |
| DirectXMesh_Desktop_${{ matrix.vs }}.sln | |
| - if: matrix.platform != 'ARM64' && matrix.vs != '2019' | |
| name: 'Build (Spectre Windows 10)' | |
| working-directory: ${{ github.workspace }} | |
| run: > | |
| msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} | |
| /p:SpectreMitigation=Spectre | |
| DirectXMesh_Desktop_${{ matrix.vs }}_Win10.sln | |
| build2026: | |
| runs-on: windows-2025-vs2026 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| build_type: [Debug, Release] | |
| platform: [x86, x64, ARM64] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Add MSBuild to PATH | |
| uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0 | |
| - name: 'Build VS 2026' | |
| working-directory: ${{ github.workspace }} | |
| run: > | |
| msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} | |
| DirectXMesh_Desktop_2026.slnx |