11
11
description : ' Target branch'
12
12
required : true
13
13
default : ' master'
14
+ collect_artifacts :
15
+ description : ' Collect build artifacts'
16
+ required : false
17
+ default : ' false'
18
+ type : boolean
14
19
15
20
jobs :
16
21
build_windows :
@@ -21,17 +26,13 @@ jobs:
21
26
22
27
- uses : ilammy/msvc-dev-cmd@v1
23
28
24
- # Creation of the ..\downloads directory
25
- - name : Creation of the "..\downloads" directory
26
- run : mkdir ..\downloads
27
- shell : cmd
28
- working-directory : .\
29
-
30
- # Creation of the ..\tools directory
31
- - name : Creation of the "..\tools" directory
32
- run : mkdir ..\tools
29
+ # Creation of the "..\downloads", "..\build", "..\tools" directories
30
+ - name : Creation of the "..\downloads", "..\build", "..\tools" directories
31
+ run : |
32
+ mkdir ..\build
33
+ mkdir ..\downloads
34
+ mkdir ..\tools
33
35
shell : cmd
34
- working-directory : .\
35
36
36
37
# Installation of jom
37
38
- name : Installation of the jom
@@ -59,12 +60,12 @@ jobs:
59
60
with :
60
61
cmake-version : ' v3.24.x'
61
62
62
- # Checkout dlt-viewer's revision v2.25 .0
63
+ # Checkout dlt-viewer's revision 2.27 .0
63
64
- name : Checkout of the dlt-viewer
64
65
uses : actions/checkout@v3
65
66
with :
66
67
repository : GENIVI/dlt-viewer
67
- ref : v2.25 .0
68
+ ref : 2.27 .0
68
69
69
70
# Checkout project's revision, which is pushed
70
71
- name : Checkout of the project
90
91
dir : ${{ github.workspace }}\Qt5
91
92
cache : true
92
93
93
- # Create build directory
94
- - name : Creation of the ".\build" directory
95
- run : mkdir ..\build
96
- shell : cmd
97
- working-directory : .\
98
-
99
94
# CMake for dlt-viewer, including the DLT-Message_analyzer plugin
100
95
- name : CMake
101
96
run : |
@@ -106,13 +101,62 @@ jobs:
106
101
# List files in build folder
107
102
- name : List files in build folder
108
103
run : |
109
- dir
104
+ dir ..\build
105
+ dir .\
110
106
shell : cmd
111
- working-directory : ..\build
107
+ working-directory : .\
112
108
113
109
# Build of the project
114
110
- name : Jom
115
111
run : |
116
112
jom.exe -j8
117
113
shell : cmd
118
114
working-directory : ..\build
115
+
116
+ # Collect required artifacts
117
+ - name : Collect required artifacts
118
+ if : ${{ github.event.inputs.collect_artifacts == 'true' }}
119
+ run : |
120
+ mkdir .\release_win_qt5_X86_64
121
+ mkdir .\release_win_qt5_X86_64\plugins
122
+ mkdir .\release_win_qt5_X86_64\platforms
123
+ cp ..\build\bin\dlt-viewer.exe .\release_win_qt5_X86_64\dlt-viewer.exe
124
+ cp ..\build\version.txt .\release_win_qt5_X86_64\version.txt
125
+ cp ..\build\bin\plugins\DLT-Message-Analyzer.dll .\release_win_qt5_X86_64\plugins\DLT-Message-Analyzer.dll
126
+ cp ..\build\bin\plugins\dltdbusplugin.dll .\release_win_qt5_X86_64\plugins\dltdbusplugin.dll
127
+ cp ..\build\bin\plugins\dltlogstorageplugin.dll .\release_win_qt5_X86_64\plugins\dltlogstorageplugin.dll
128
+ cp ..\build\bin\plugins\dltsegmentationplugin.dll .\release_win_qt5_X86_64\plugins\dltsegmentationplugin.dll
129
+ cp ..\build\bin\plugins\dltsystemviewerplugin.dll .\release_win_qt5_X86_64\plugins\dltsystemviewerplugin.dll
130
+ cp ..\build\bin\plugins\dlttestrobotplugin.dll .\release_win_qt5_X86_64\plugins\dlttestrobotplugin.dll
131
+ cp ..\build\bin\plugins\dltviewerplugin.dll .\release_win_qt5_X86_64\plugins\dltviewerplugin.dll
132
+ cp ..\build\bin\plugins\filetransferplugin.dll .\release_win_qt5_X86_64\plugins\filetransferplugin.dll
133
+ cp ..\build\bin\plugins\nonverboseplugin.dll .\release_win_qt5_X86_64\plugins\nonverboseplugin.dll
134
+ cp ..\build\bin\plugins\plantuml.jar .\release_win_qt5_X86_64\plugins\plantuml.jar
135
+ cp ..\build\qdlt\qdlt.dll .\release_win_qt5_X86_64\qdlt.dll
136
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\plugins\platforms\qdirect2d.dll .\release_win_qt5_X86_64\platforms\qdirect2d.dll
137
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\plugins\platforms\qdirect2dd.dll .\release_win_qt5_X86_64\platforms\qdirect2dd.dll
138
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\plugins\platforms\qminimal.dll .\release_win_qt5_X86_64\platforms\qminimal.dll
139
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\plugins\platforms\qminimald.dll .\release_win_qt5_X86_64\platforms\qminimald.dll
140
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\plugins\platforms\qoffscreen.dll .\release_win_qt5_X86_64\platforms\qoffscreen.dll
141
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\plugins\platforms\qoffscreend.dll .\release_win_qt5_X86_64\platforms\qoffscreend.dll
142
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\plugins\platforms\qwindows.dll .\release_win_qt5_X86_64\platforms\qwindows.dll
143
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\plugins\platforms\qwindowsd.dll .\release_win_qt5_X86_64\platforms\qwindowsd.dll
144
+ cp .\build\output\amd64\Release\bin\qcustomplot.dll .\release_win_qt5_X86_64\qcustomplot.dll
145
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\bin\Qt5Core.dll .\release_win_qt5_X86_64\Qt5Core.dll
146
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\bin\Qt5Gui.dll .\release_win_qt5_X86_64\Qt5Gui.dll
147
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\bin\Qt5Network.dll .\release_win_qt5_X86_64\Qt5Network.dll
148
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\bin\Qt5PrintSupport.dll .\release_win_qt5_X86_64\Qt5PrintSupport.dll
149
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\bin\Qt5SerialPort.dll .\release_win_qt5_X86_64\Qt5SerialPort.dll
150
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\bin\Qt5Sql.dll .\release_win_qt5_X86_64\Qt5Sql.dll
151
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\bin\Qt5Svg.dll .\release_win_qt5_X86_64\Qt5Svg.dll
152
+ cp .\Qt5\Qt\5.15.0\msvc2019_64\bin\Qt5Widgets.dll .\release_win_qt5_X86_64\Qt5Widgets.dll
153
+ shell : cmd
154
+ working-directory : .\
155
+
156
+ - name : Upload artifacts
157
+ if : ${{ success() && github.event.inputs.collect_artifacts == 'true' }}
158
+ uses : actions/upload-artifact@v4
159
+ with :
160
+ name : release_win_qt5_X86_64
161
+ path : |
162
+ release_win_qt5_X86_64
0 commit comments