@@ -53,78 +53,83 @@ 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
57
- # Linux has 2 cores
58
- run : |
59
- cmake --build --list-presets
60
- cmake --build --preset=${{env.BUILD_DEV_ALL_PRESET}} --parallel 2
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
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}}
68
63
run : |
69
- cmake --build . --target run_buildcc_lib_bootstrap_linux_gcc
64
+ cmake --build . --target run_buildcc_lib_bootstrap_linux_gcc --config Release
70
65
71
66
- name : BuildExe IM example tiny-process-library
72
67
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
73
68
run : |
74
- cmake --build . --target run_buildexe_im_tpl_gcc_linux
69
+ cmake --build . --target run_buildexe_im_tpl_linux_gcc --config Release
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
75
81
76
82
- name : Install
77
83
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
78
84
run : |
79
- sudo cmake --install .
85
+ sudo cmake --install . --config Release
80
86
81
87
- name : AfterInstall Example
82
88
working-directory : ${{github.workspace}}/example/gcc/AfterInstall
83
89
run : |
84
- cmake -B build -G Ninja
85
- cmake --build build --parallel 2
86
- cd build
87
- ./build
90
+ cmake -B build -G "Ninja Multi-Config"
91
+ cmake --build build --parallel 2 --config Release
92
+ ./build/Release/build
88
93
89
94
- name : Hybrid Simple Example
90
95
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
91
96
run : |
92
- cmake --build . --target run_hybrid_simple_example_linux
97
+ cmake --build . --target run_hybrid_simple_example_linux --config Release
93
98
94
99
- name : Hybrid Foolib Example
95
100
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
96
101
run : |
97
- cmake --build . --target run_hybrid_foolib_example_linux
102
+ cmake --build . --target run_hybrid_foolib_example_linux --config Release
98
103
99
104
- name : Hybrid External Lib Example
100
105
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
101
106
run : |
102
- cmake --build . --target run_hybrid_externallib_example_linux
107
+ cmake --build . --target run_hybrid_externallib_example_linux --config Release
103
108
104
109
- name : Hybrid Custom Target Example
105
110
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
106
111
run : |
107
- cmake --build . --target run_hybrid_customtarget_example_linux
112
+ cmake --build . --target run_hybrid_customtarget_example_linux --config Release
108
113
109
114
- name : Hybrid Generic Target Example
110
115
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
111
116
run : |
112
- cmake --build . --target run_hybrid_generic_example
117
+ cmake --build . --target run_hybrid_generic_example --config Release
113
118
114
119
- name : Hybrid PCH Target Example
115
120
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
116
121
run : |
117
- cmake --build . --target run_hybrid_pch_example_linux
122
+ cmake --build . --target run_hybrid_pch_example_linux --config Release
118
123
119
124
- name : Hybrid Dep Chaining Target Example
120
125
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
121
126
run : |
122
- cmake --build . --target run_hybrid_depchaining_example_linux
127
+ cmake --build . --target run_hybrid_depchaining_example_linux --config Release
123
128
124
129
- name : Hybrid Target Info Example
125
130
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
126
131
run : |
127
- cmake --build . --target run_hybrid_targetinfo_example_linux
132
+ cmake --build . --target run_hybrid_targetinfo_example_linux --config Release
128
133
129
134
build_single :
130
135
name : GCC single lib
@@ -167,93 +172,87 @@ jobs:
167
172
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
168
173
run : cmake --build . --target cppcheck_static_analysis
169
174
170
- - name : Build
175
+ - name : Build Debug for test
171
176
# Linux has 2 cores
172
177
run : |
173
178
cmake --build --list-presets
174
- cmake --build --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2
175
-
176
- - name : Test
177
- run : |
178
- ctest --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2
179
+ cmake --build --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2 --config Debug
180
+ ctest --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2 -C Debug
179
181
180
- - name : Coveralls
182
+ - name : Codecov
181
183
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
182
184
run : |
183
185
cmake --build . --target lcov_coverage
184
186
cat ../codecov.yml | curl --data-binary @- https://codecov.io/validate
185
187
bash <(curl -s https://codecov.io/bash) -f coverage_truncated.info || echo "Codecov did not collect coverage reports"
186
188
189
+ - name : Build Release for example
190
+ run : |
191
+ cmake --build --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2 --config Release
192
+
187
193
- name : Bootstrap through CMake
188
194
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
189
195
run : |
190
- cmake --build . --target run_buildcc_lib_bootstrap_linux_gcc
196
+ cmake --build . --target run_buildcc_lib_bootstrap_linux_gcc --config Release
191
197
192
198
- name : BuildExe IM example tiny-process-library
193
199
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
194
200
run : |
195
- cmake --build . --target run_buildexe_im_tpl_gcc_linux
201
+ cmake --build . --target run_buildexe_im_tpl_linux_gcc --config Release
196
202
197
203
# - name: TODO, BuildExe SM simple hyrid example
198
204
199
- - name : Upload BuildExe
200
- uses : actions/upload-artifact@v2
201
- with :
202
- name : " BuildExe_Linux"
203
- path : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}/buildexe/buildexe
204
-
205
205
- name : Install
206
206
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
207
207
run : |
208
- sudo cmake --install .
208
+ sudo cmake --install . --config Release
209
209
210
210
- name : AfterInstall Example
211
211
working-directory : ${{github.workspace}}/example/gcc/AfterInstall
212
212
run : |
213
- cmake -B build -G Ninja
214
- cmake --build build --parallel 2
215
- cd build
216
- ./build
213
+ cmake -B build -G "Ninja Multi-Config"
214
+ cmake --build build --parallel 2 --config Release
215
+ ./build/Release/build
217
216
218
217
- name : Hybrid Simple Example
219
218
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
220
219
run : |
221
- cmake --build . --target run_hybrid_simple_example_linux
220
+ cmake --build . --target run_hybrid_simple_example_linux --config Release
222
221
223
222
- name : Hybrid Foolib Example
224
223
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
225
224
run : |
226
- cmake --build . --target run_hybrid_foolib_example_linux
225
+ cmake --build . --target run_hybrid_foolib_example_linux --config Release
227
226
228
227
- name : Hybrid External Lib Example
229
228
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
230
229
run : |
231
- cmake --build . --target run_hybrid_externallib_example_linux
230
+ cmake --build . --target run_hybrid_externallib_example_linux --config Release
232
231
233
232
- name : Hybrid Custom Target Example
234
233
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
235
234
run : |
236
- cmake --build . --target run_hybrid_customtarget_example_linux
235
+ cmake --build . --target run_hybrid_customtarget_example_linux --config Release
237
236
238
237
- name : Hybrid Generic Target Example
239
238
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
240
239
run : |
241
- cmake --build . --target run_hybrid_generic_example
240
+ cmake --build . --target run_hybrid_generic_example --config Release
242
241
243
242
- name : Hybrid PCH Target Example
244
243
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
245
244
run : |
246
- cmake --build . --target run_hybrid_pch_example_linux
245
+ cmake --build . --target run_hybrid_pch_example_linux --config Release
247
246
248
247
- name : Hybrid Dep Chaining Target Example
249
248
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
250
249
run : |
251
- cmake --build . --target run_hybrid_depchaining_example_linux
250
+ cmake --build . --target run_hybrid_depchaining_example_linux --config Release
252
251
253
252
- name : Hybrid Target Info Example
254
253
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
255
254
run : |
256
- cmake --build . --target run_hybrid_targetinfo_example_linux
255
+ cmake --build . --target run_hybrid_targetinfo_example_linux --config Release
257
256
258
257
build_interface :
259
258
name : GCC interface lib
@@ -287,12 +286,12 @@ jobs:
287
286
working-directory : ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_INTERFACE}}
288
287
run : cmake --build . --target cppcheck_static_analysis
289
288
290
- - name : Build
289
+ - name : Build Debug
291
290
# Linux has 2 cores
292
291
run : |
293
292
cmake --build --list-presets
294
- cmake --build --preset=${{env.BUILD_DEV_INTERFACE_PRESET}} --parallel 2
293
+ cmake --build --preset=${{env.BUILD_DEV_INTERFACE_PRESET}} --parallel 2 --config Debug
295
294
296
295
- name : Test
297
296
run : |
298
- ctest --preset=${{env.BUILD_DEV_INTERFACE_PRESET}} --parallel 2
297
+ ctest --preset=${{env.BUILD_DEV_INTERFACE_PRESET}} --parallel 2 -C Debug
0 commit comments