Merge pull request #60 from ffes/dependabot/github_actions/actions/ch… #35
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@v1 | |
- 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@v3 | |
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@v3 | |
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@v3 | |
with: | |
name: nppsnippets_dll_arm64 | |
path: ${{ matrix.build_platform }}/${{ matrix.build_configuration }}/NppSnippets.dll |