Skip to content

update GH build #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
runs-on: windows-2019
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a specifc need to still use VS2019 and .net framework 4.0

strategy:
max-parallel: 4
fail-fast: false
matrix:
build_configuration: [Release, Debug]
build_platform: [x64, x86]
Expand All @@ -16,22 +16,29 @@ jobs:
uses: actions/checkout@v4

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2.0.0
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: Archive artifacts for x64
- name: zip artifacts for ${{ matrix.build_platform }}
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: plugin_dll_x64
path: CSVLintNppPlugin\bin\${{ matrix.build_configuration }}-x64\CSVLint.dll
run: 7z a CSVLint_${{ matrix.build_platform }}.zip .\CSVLintNppPlugin\bin\${{ matrix.build_configuration }}-x64\CSVLint.dll

- name: Archive artifacts for x86
- 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: plugin_dll_x86
path: CSVLintNppPlugin\bin\${{ matrix.build_configuration }}\CSVLint.dll
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

Binary file removed releases/CSVLint_x64_v0.4.6.4.zip
Binary file not shown.
Binary file removed releases/CSVLint_x86_v0.4.6.4.zip
Binary file not shown.