Bump actions/checkout from 4 to 5 #322
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
name: Continuous Integration | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_configuration: [Release, Debug] | |
build_platform: [x64, x86] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v5 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: MSBuild of solution | |
run: msbuild CsvLintSolution.sln /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /m /verbosity:minimal | |
- name: zip artifacts for ${{ matrix.build_platform }} | |
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release' | |
run: 7z a CSVLint_${{ matrix.build_platform }}.zip .\CSVLintNppPlugin\bin\${{ matrix.build_configuration }}-x64\CSVLint.dll | |
- name: zip artifacts for ${{ matrix.build_platform }} | |
if: matrix.build_platform == 'x86' && matrix.build_configuration == 'Release' | |
run: 7z a CSVLint_${{ matrix.build_platform }}.zip .\CSVLintNppPlugin\bin\${{ matrix.build_configuration }}\CSVLint.dll | |
- name: Archive artifacts for ${{ matrix.build_platform }} | |
if: matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CSVLint_${{ matrix.build_platform }}.zip | |
path: CSVLint_${{ matrix.build_platform }}.zip | |
- name: Create release on tagging | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: CSVLint_${{ matrix.build_platform }}.zip | |