NppMarkdownPanel Version 0.9.0 #644
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: CI_build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
build_configuration: [Release] | |
build_platform: [x64, Win32, arm64] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install python modules | |
working-directory: . | |
run: pip3 install -r requirements.txt | |
- name: check used package versions | |
working-directory: . | |
run: pip3 freeze | |
- name: Validate json | |
working-directory: . | |
run: python validator.py ${{ matrix.build_platform }} | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: MSBuild of plugin dll | |
working-directory: vcxproj | |
run: msbuild nppPluginList.vcxproj /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="v143" | |
- name: Archive artifacts for x64 | |
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plugin_dll_and_list_x64 | |
path: | | |
bin64\nppPluginList.dll | |
doc\plugin_list_x64.md | |
- name: Archive artifacts for Win32 | |
if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plugin_dll_and_list_x86 | |
path: | | |
bin\nppPluginList.dll | |
doc\plugin_list_x86.md | |
- name: Archive artifacts for ARM64 | |
if: matrix.build_platform == 'ARM64' && matrix.build_configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plugin_dll_and_list_arm64 | |
path: | | |
binarm64\nppPluginList.dll | |
doc\plugin_list_arm64.md | |
- name: Generate all plugin lists markdown from json on tagging | |
if: startsWith(github.ref, 'refs/tags/') && matrix.build_platform == 'ARM64' && matrix.build_configuration == 'Release' | |
working-directory: . | |
run: python validator.py all_md | |
- name: Push markdown changes on tagging | |
if: startsWith(github.ref, 'refs/tags/') && matrix.build_platform == 'ARM64' && matrix.build_configuration == 'Release' | |
uses: stefanzweifel/git-auto-commit-action@v6 | |
with: | |
file_pattern: 'doc/*.md' |