-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (34 loc) · 1.56 KB
/
CI_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI_build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
strategy:
max-parallel: 6
matrix:
build_configuration: [Release, Debug]
build_platform: [x64, Win32, ARM64]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1
- name: MSBuild of plugin dll
working-directory: .\vs.proj
run: msbuild NppMultiReplace.vcxproj /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="v143" /target:zip
env:
ZIPCMD: 7z a -tzip
- name: Archive
uses: actions/upload-artifact@v3
with:
name: NppMultiReplace-${{ matrix.build_configuration }}-${{ matrix.build_platform }}
path: vs.proj\${{ matrix.build_configuration }}\${{ matrix.build_platform }}\NppMultiReplace.dll
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && matrix.build_configuration == 'Release'
with:
body: ${{ github.event.commits[0].message }}
files: vs.proj/${{ matrix.build_configuration }}/${{ matrix.build_platform }}/NppMultiReplace-v${{ github.ref_name }}-${{ matrix.build_platform }}.zip
- name: SHA256
if: startsWith(github.ref, 'refs/tags/') && matrix.build_configuration == 'Release'
run: sha256sum.exe vs.proj\${{ matrix.build_configuration }}\${{ matrix.build_platform }}\NppMultiReplace-v${{ github.ref_name }}-${{ matrix.build_platform }}.zip