@@ -53,15 +53,10 @@ jobs:
53
53
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
54
54
run : cmake --build . --target cppcheck_static_analysis
55
55
56
- - name : Build Debug
57
- # Linux has 2 cores
58
- run : |
59
- cmake --build --list-presets
60
- cmake --build --preset=${{env.BUILD_DEV_ALL_PRESET}} --parallel 2 --config Debug
61
-
62
- - name : Test
56
+ - name : Build Release
57
+ working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
63
58
run : |
64
- ctest --preset=${{env.BUILD_DEV_ALL_PRESET}} --parallel 2 -C Debug
59
+ cmake --build . --parallel 2 --config Release
65
60
66
61
- name : Bootstrap through CMake
67
62
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
73
68
run : |
74
69
cmake --build . --target run_buildexe_im_tpl_linux_gcc --config Release
75
70
71
+ - name : CPack Release
72
+ working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
73
+ run : |
74
+ cpack -C Release -G ZIP
75
+
76
+ - name : Upload CPack
77
+ uses : actions/upload-artifact@v2
78
+ with :
79
+ name : " BuildExe_Linux"
80
+ path : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}/BuildCC-0.1.1-Linux.zip
81
+
76
82
- name : Install
77
83
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
78
84
run : |
@@ -167,14 +173,11 @@ jobs:
167
173
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
168
174
run : cmake --build . --target cppcheck_static_analysis
169
175
170
- - name : Build
176
+ - name : Build Debug for test
171
177
# Linux has 2 cores
172
178
run : |
173
179
cmake --build --list-presets
174
180
cmake --build --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2 --config Debug
175
-
176
- - name : Test
177
- run : |
178
181
ctest --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2 -C Debug
179
182
180
183
- name : Codecov
@@ -184,6 +187,10 @@ jobs:
184
187
cat ../codecov.yml | curl --data-binary @- https://codecov.io/validate
185
188
bash <(curl -s https://codecov.io/bash) -f coverage_truncated.info || echo "Codecov did not collect coverage reports"
186
189
190
+ - name : Build Release for example
191
+ run : |
192
+ cmake --build --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2 --config Release
193
+
187
194
- name : Bootstrap through CMake
188
195
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
189
196
run : |
@@ -196,18 +203,6 @@ jobs:
196
203
197
204
# - name: TODO, BuildExe SM simple hyrid example
198
205
199
- - name : Release Build for Upload
200
- working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
201
- run : |
202
- cmake --build . --parallel 2 --config Release
203
- cpack -C Release -G ZIP
204
-
205
- - name : Upload BuildExe
206
- uses : actions/upload-artifact@v2
207
- with :
208
- name : " BuildExe_Linux"
209
- path : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}/BuildCC-0.1.1-Linux.zip
210
-
211
206
- name : Install
212
207
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
213
208
run : |
@@ -293,7 +288,7 @@ jobs:
293
288
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_INTERFACE}}
294
289
run : cmake --build . --target cppcheck_static_analysis
295
290
296
- - name : Build
291
+ - name : Build Debug
297
292
# Linux has 2 cores
298
293
run : |
299
294
cmake --build --list-presets
0 commit comments