This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
[StepSecurity] Apply security best practices (#41) #26
This file contains 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. | |
# | |
# http://go.microsoft.com/fwlink/?LinkId=320437 | |
name: MSBuild | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: | |
- '*.md' | |
- LICENSE | |
- '.nuget/*' | |
- build/*.yml | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: windows-${{ matrix.vs }} | |
strategy: | |
fail-fast: false | |
matrix: | |
vs: [2019, 2022] | |
build_type: [Debug, Release] | |
platform: [Win32, x64] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0 | |
- name: Build | |
working-directory: ${{ github.workspace }} | |
run: msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DXUT_${{ matrix.vs }}_Win10.sln |