-
Notifications
You must be signed in to change notification settings - Fork 1
131 lines (102 loc) · 3.04 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: Build on push to development
on:
push:
branches:
- development
jobs:
build_debug_x86:
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Setup .NET
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: '4.x'
- name: setup-msbuild
uses: microsoft/setup-msbuild@v2
- name: Restore dependencies
run: nuget restore
- name: Build Debug x86
run: msbuild /t:Build /p:Configuration=Debug /p:Platform=x86
- name: Publish Debug x86 artifacts
uses: actions/upload-artifact@v4
with:
name: Debug_x86
path: |
bin\x86\Debug\Newtonsoft.Json.dll
bin\x86\Debug\Newtonsoft.Json.xml
bin\x86\Debug\xp-apps.exe
build_debug_x64:
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Setup .NET
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: '4.x'
- name: setup-msbuild
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Restore dependencies
run: nuget restore
- name: Build Debug x64
run: msbuild /t:Build /p:Configuration=Debug /p:Platform=x64
- name: Publish Debug x64 artifacts
uses: actions/upload-artifact@v4
with:
name: Debug_x64
path: |
bin\x64\Debug\Newtonsoft.Json.dll
bin\x64\Debug\Newtonsoft.Json.xml
bin\x64\Debug\xp-apps.exe
build_release_x86:
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Setup .NET
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: '4.x'
- name: setup-msbuild
uses: microsoft/setup-msbuild@v2
- name: Restore dependencies
run: nuget restore
- name: Build Release x86
run: msbuild /t:Build /p:Configuration=Release /p:Platform=x86
- name: Publish Release x86 artifacts
uses: actions/upload-artifact@v4
with:
name: Release_x86
path: |
bin\x86\Release\Newtonsoft.Json.dll
bin\x86\Release\Newtonsoft.Json.xml
bin\x86\Release\xp-apps.exe
build_release_x64:
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Setup .NET
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: '4.x'
- name: setup-msbuild
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Restore dependencies
run: nuget restore
- name: Build Release x64
run: msbuild /t:Build /p:Configuration=Release /p:Platform=x64
- name: Publish Release x64 artifacts
uses: actions/upload-artifact@v4
with:
name: Release_x64
path: |
bin\x64\Release\Newtonsoft.Json.dll
bin\x64\Release\Newtonsoft.Json.xml
bin\x64\Release\xp-apps.exe