Skip to content

Commit 496a58f

Browse files
committed
Create ci_build.yml
Use git action to build the code
1 parent 15beb18 commit 496a58f

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci_build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: windows-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
build_configuration: [Release, Debug]
17+
build_platform: [Win32, x64, ARM64]
18+
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@v4
22+
with:
23+
submodules: recursive
24+
25+
- name: Pre Build
26+
uses: microsoft/setup-msbuild@v1
27+
28+
- name: Build
29+
working-directory: NppJSONViewer
30+
run: msbuild NppJSONViewer.sln /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="v143"
31+
32+
- name: Archive binaries artifacts
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: ${{ matrix.build_platform}}_${{ matrix.build_configuration}}
36+
path: NppJSONViewer\Build\Bin\${{ matrix.build_configuration}}\${{ matrix.build_platform}}\NPPJSONViewer.dll
37+
38+
- name: Archive symbols artifacts
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: ${{ matrix.build_platform}}_${{ matrix.build_configuration}}
42+
path: NppJSONViewer\Build\Bin\${{ matrix.build_configuration}}\${{ matrix.build_platform}}\NPPJSONViewer.pdb
43+
44+

0 commit comments

Comments
 (0)