-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (38 loc) · 1.29 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
44
45
name: Continuous Integration
on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
- '*.txt'
- '*.PNG'
- 'makerelease.bat'
- 'testfiles/**'
- 'translation/**'
jobs:
build:
runs-on: windows-2022
strategy:
max-parallel: 4
matrix:
build_configuration: [Release, Debug]
build_platform: [x64, x86]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: MSBuild of solution
run: msbuild JsonToolsNppPlugin/JsonToolsNppPlugin.sln /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /m /verbosity:minimal
- name: Archive artifacts for x64
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: plugin_dll_x64
path: JsonToolsNppPlugin\bin\${{ matrix.build_configuration }}-x64\JsonTools.dll
- name: Archive artifacts for x86
if: matrix.build_platform == 'x86' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: plugin_dll_x86
path: JsonToolsNppPlugin\bin\${{ matrix.build_configuration }}\JsonTools.dll