forked from RapidScada/scada-v6
-
Notifications
You must be signed in to change notification settings - Fork 2
143 lines (104 loc) · 5.67 KB
/
dotnet-desktop.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
132
133
134
135
136
137
138
139
140
141
142
143
name: Build .NET Application and Capture Artifacts
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build-and-upload-artifacts:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
# Restaurez les packages NuGet pour tous les projets nécessaires ici
- name: Restore NuGet packages for all projects
run: |
dotnet restore ScadaCommon/ScadaCommon.sln
dotnet restore ScadaAgent/ScadaAgent/ScadaAgent.sln
dotnet restore ScadaComm/ScadaComm/ScadaComm.sln
dotnet restore ScadaServer/ScadaServer/ScadaServer.sln
dotnet restore ScadaWeb/ScadaWeb/ScadaWeb.sln
dotnet restore ScadaAdmin/ScadaAdmin/ScadaAdmin.sln
dotnet restore ScadaReport/ScadaReport.sln
dotnet restore ScadaComm/OpenDrivers/OpenDrivers.sln
dotnet restore ScadaComm/OpenDrivers2/OpenDrivers2.sln
dotnet restore ScadaServer/OpenModules/OpenModules.sln
dotnet restore ScadaWeb/OpenPlugins/OpenPlugins.sln
## dotnet restore ScadaAdmin/OpenExtensions/OpenExtensions.sln
# Construisez chaque projet dans l'ordre spécifié
- name: Build ScadaCommon
run: dotnet build --no-restore --configuration Release ScadaCommon/ScadaCommon.sln
- name: Build ScadaAgent
run: dotnet build --no-restore --configuration Release ScadaAgent/ScadaAgent/ScadaAgent.sln
- name: Build ScadaComm
run: dotnet build --no-restore --configuration Release ScadaComm/ScadaComm/ScadaComm.sln
- name: Build ScadaServer
run: dotnet build --no-restore --configuration Release ScadaServer/ScadaServer/ScadaServer.sln
- name: Build ScadaWeb
run: dotnet build --no-restore --configuration Release ScadaWeb/ScadaWeb/ScadaWeb.sln
- name: Build ScadaAdmin
run: dotnet build --no-restore --configuration Release ScadaAdmin/ScadaAdmin/ScadaAdmin.sln
- name: Build ScadaReport
run: dotnet build --no-restore --configuration Release ScadaReport/ScadaReport.sln
- name: Build OpenDrivers
run: dotnet build --no-restore --configuration Release ScadaComm/OpenDrivers/OpenDrivers.sln
- name: Build OpenDrivers2
run: dotnet build --no-restore --configuration Release ScadaComm/OpenDrivers2/OpenDrivers2.sln
- name: Build OpenModules
run: dotnet build --no-restore --configuration Release ScadaServer/OpenModules/OpenModules.sln
- name: Build OpenPlugins
run: dotnet build --no-restore --configuration Release ScadaWeb/OpenPlugins/OpenPlugins.sln
# - name: Build OpenExtensions
# run: dotnet build --no-restore --configuration Release ScadaAdmin/OpenExtensions/OpenExtensions.sln
- name: Publish ScadaCommon
run: dotnet publish ScadaCommon/ScadaCommon.sln --no-restore --configuration Release --output ./publish/ScadaCommon
- name: Publish ScadaAgent
run: dotnet publish ScadaAgent/ScadaAgent/ScadaAgent.sln --no-restore --configuration Release --output ./publish/ScadaAgent
- name: Publish ScadaComm
run: dotnet publish ScadaComm/ScadaComm/ScadaComm.sln --no-restore --configuration Release --output ./publish/ScadaComm
- name: Publish ScadaServer
run: dotnet publish ScadaServer/ScadaServer/ScadaServer.sln --no-restore --configuration Release --output ./publish/ScadaServer
- name: Publish ScadaWeb
run: dotnet publish ScadaWeb/ScadaWeb/ScadaWeb.sln --no-restore --configuration Release --output ./publish/ScadaWeb
- name: Publish ScadaAdmin
run: dotnet publish ScadaAdmin/ScadaAdmin/ScadaAdmin.sln --no-restore --configuration Release --output ./publish/ScadaAdmin
- name: Publish ScadaReport
run: dotnet publish ScadaReport/ScadaReport.sln --no-restore --configuration Release --output ./publish/ScadaReport
- name: Publish OpenDrivers
run: dotnet publish ScadaComm/OpenDrivers/OpenDrivers.sln --no-restore --configuration Release --output ./publish/OpenDrivers
- name: Publish OpenDrivers2
run: dotnet publish ScadaComm/OpenDrivers2/OpenDrivers2.sln --no-restore --configuration Release --output ./publish/OpenDrivers2
- name: Publish OpenModules
run: dotnet publish ScadaServer/OpenModules/OpenModules.sln --no-restore --configuration Release --output ./publish/OpenModules
- name: Publish OpenPlugins
run: dotnet publish ScadaWeb/OpenPlugins/OpenPlugins.sln --no-restore --configuration Release --output ./publish/OpenPlugins
- name: Copy PlgSchShapeComp.dll to ScadaWeb Publish Directory
run: |
Copy-Item -Path "./publish/OpenPlugins/PlgSchShapeComp.dll" -Destination "./publish/ScadaWeb/"
shell: pwsh
# - name: Publish OpenExtensions
# run: dotnet publish ScadaAdmin/OpenExtensions/OpenExtensions.sln --no-restore --configuration Release --output ./publish/OpenExtensions
- name: Upload ScadaAdmin Artefacts
uses: actions/upload-artifact@v2
with:
name: scadaadmin-release-artifacts
path: |
./publish/ScadaAdmin/ScadaAdmin.dll
./publish/ScadaAdmin/ScadaAdmin.exe
./publish/ScadaAdmin/ScadaAdminCommon.dll
- name: Upload ScadaWeb Artefacts
uses: actions/upload-artifact@v2
with:
name: scadaweb-release-artifacts
path: |
./publish/ScadaWeb/ScadaWeb.exe
./publish/ScadaWeb/ScadaWeb.dll
./publish/ScadaWeb/ScadaWebCommon.dll
./publish/ScadaWeb/ScadaCommon.dll
./publish/ScadaWeb/PlgSchShapeComp.dll
./publish/OpenPlugins/PlgSchShapeComp.dll
./publish/OpenPlugins/wwwroot/SchShapeComp/**/*