|
1 | | -name: Continuous Integration |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - paths-ignore: |
6 | | - - 'docs/**' |
7 | | - - 'NppCSharpPluginPack/*.zip' |
8 | | - - '*.md' |
9 | | - - '*.txt' |
10 | | - - '*.PNG' |
11 | | - - 'makerelease.bat' |
12 | | - - 'testfiles/**' |
13 | | - - 'translation/**' |
14 | | - |
15 | | -jobs: |
16 | | - build: |
17 | | - runs-on: windows-2022 |
18 | | - strategy: |
19 | | - max-parallel: 4 |
20 | | - matrix: |
21 | | - build_configuration: [Release, Debug] |
22 | | - build_platform: [x64, x86] |
23 | | - |
24 | | - steps: |
25 | | - - name: Checkout repo |
26 | | - uses: actions/checkout@v4 |
27 | | - |
28 | | - - name: Add msbuild to PATH |
29 | | - uses: microsoft/setup-msbuild@v2.0.0 |
30 | | - |
31 | | - - name: MSBuild of solution |
32 | | - run: > |
33 | | - msbuild /t:Restore NppCSharpPluginPack/NppCSharpPluginPack.sln; |
34 | | - msbuild NppCSharpPluginPack/NppCSharpPluginPack.sln /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /m /verbosity:minimal |
35 | | -
|
36 | | - - name: Archive artifacts for x64 |
37 | | - if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release' |
38 | | - uses: actions/upload-artifact@v4 |
39 | | - with: |
40 | | - name: plugin_dll_x64 |
41 | | - path: NppCSharpPluginPack\bin\${{ matrix.build_configuration }}-x64\CSharpPluginPack.dll |
42 | | - |
43 | | - - name: Archive artifacts for x86 |
44 | | - if: matrix.build_platform == 'x86' && matrix.build_configuration == 'Release' |
45 | | - uses: actions/upload-artifact@v4 |
46 | | - with: |
47 | | - name: plugin_dll_x86 |
48 | | - path: NppCSharpPluginPack\bin\${{ matrix.build_configuration }}\CSharpPluginPack.dll |
49 | | - |
| 1 | +name: Continuous Integration |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths-ignore: |
| 6 | + - 'docs/**' |
| 7 | + - 'NppCSharpPluginPack/*.zip' |
| 8 | + - '*.md' |
| 9 | + - '*.txt' |
| 10 | + - '*.PNG' |
| 11 | + - 'makerelease.bat' |
| 12 | + - 'testfiles/**' |
| 13 | + - 'translation/**' |
| 14 | + |
| 15 | +jobs: |
| 16 | + build: |
| 17 | + runs-on: windows-2022 |
| 18 | + strategy: |
| 19 | + max-parallel: 4 |
| 20 | + matrix: |
| 21 | + build_configuration: [Release, Debug] |
| 22 | + build_platform: [x64, x86] |
| 23 | + |
| 24 | + steps: |
| 25 | + - name: Checkout repo |
| 26 | + uses: actions/checkout@v5 |
| 27 | + |
| 28 | + - name: Add msbuild to PATH |
| 29 | + uses: microsoft/setup-msbuild@v2.0.0 |
| 30 | + |
| 31 | + - name: MSBuild of solution |
| 32 | + run: > |
| 33 | + msbuild /t:Restore NppCSharpPluginPack/NppCSharpPluginPack.sln; |
| 34 | + msbuild NppCSharpPluginPack/NppCSharpPluginPack.sln /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /m /verbosity:minimal |
| 35 | +
|
| 36 | + - name: Archive artifacts for x64 |
| 37 | + if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release' |
| 38 | + uses: actions/upload-artifact@v4 |
| 39 | + with: |
| 40 | + name: plugin_dll_x64 |
| 41 | + path: NppCSharpPluginPack\bin\${{ matrix.build_configuration }}-x64\CSharpPluginPack.dll |
| 42 | + |
| 43 | + - name: Archive artifacts for x86 |
| 44 | + if: matrix.build_platform == 'x86' && matrix.build_configuration == 'Release' |
| 45 | + uses: actions/upload-artifact@v4 |
| 46 | + with: |
| 47 | + name: plugin_dll_x86 |
| 48 | + path: NppCSharpPluginPack\bin\${{ matrix.build_configuration }}\CSharpPluginPack.dll |
| 49 | + |
0 commit comments