Skip to content

Commit b8fdd9b

Browse files
committed
Add MSBuild to GitHub actions
1 parent 7fa000a commit b8fdd9b

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/msbuild.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
#
4+
# http://go.microsoft.com/fwlink/?LinkId=248926
5+
6+
name: MSBuild
7+
8+
on:
9+
push:
10+
branches: [ "main" ]
11+
pull_request:
12+
branches: [ "main" ]
13+
paths-ignore:
14+
- '*.md'
15+
- LICENSE
16+
- '.nuget/*'
17+
- build/*
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
build:
24+
runs-on: windows-${{ matrix.vs }}
25+
26+
strategy:
27+
fail-fast: false
28+
29+
matrix:
30+
vs: [2019, 2022]
31+
build_type: [Debug, Release]
32+
platform: [x86, x64, ARM64]
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- name: Add MSBuild to PATH
38+
uses: microsoft/setup-msbuild@v2
39+
40+
- if: matrix.platform != 'ARM64'
41+
name: Build
42+
working-directory: ${{ github.workspace }}
43+
run: msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTex_Desktop_${{ matrix.vs }}.sln
44+
45+
- name: 'Build (Windows 10)'
46+
working-directory: ${{ github.workspace }}
47+
run: msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTex_Desktop_${{ matrix.vs }}_Win10.sln
48+
49+
- if: matrix.vs == '2022'
50+
name: 'Build (UWP)'
51+
working-directory: ${{ github.workspace }}
52+
run: msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTex_Windows10_2022.sln

0 commit comments

Comments
 (0)