Bump microsoft/setup-msbuild from 1 to 2 #40
Workflow file for this run
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
name: MSBuild | |
on: [ push, pull_request ] | |
jobs: | |
build_windows: | |
runs-on: windows-latest | |
strategy: | |
max-parallel: 3 | |
matrix: | |
build_configuration: [ Release ] | |
build_platform: [ x64, Win32, ARM64 ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Show MSBuild version | |
run: msbuild -version | |
- name: Run MSBuild | |
run: msbuild NppSnippets.vcxproj /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" | |
- name: Archive artifacts for x64 | |
if: matrix.build_platform == 'x64' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nppsnippets_dll_x64 | |
path: ${{ matrix.build_platform }}/${{ matrix.build_configuration }}/NppSnippets.dll | |
- name: Archive artifacts for x32 | |
if: matrix.build_platform == 'Win32' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nppsnippets_dll_x32 | |
path: ${{ matrix.build_platform }}/${{ matrix.build_configuration }}/NppSnippets.dll | |
- name: Archive artifacts for ARM64 | |
if: matrix.build_platform == 'ARM64' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nppsnippets_dll_arm64 | |
path: ${{ matrix.build_platform }}/${{ matrix.build_configuration }}/NppSnippets.dll |