Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 544865b

Browse files
committed
Update linux_gcc_cmake_build.yml
1 parent 5c950e8 commit 544865b

File tree

1 file changed

+20
-25
lines changed

1 file changed

+20
-25
lines changed

.github/workflows/linux_gcc_cmake_build.yml

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,10 @@ jobs:
5353
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
5454
run: cmake --build . --target cppcheck_static_analysis
5555

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}}
6358
run: |
64-
ctest --preset=${{env.BUILD_DEV_ALL_PRESET}} --parallel 2 -C Debug
59+
cmake --build . --parallel 2 --config Release
6560
6661
- name: Bootstrap through CMake
6762
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
@@ -73,6 +68,17 @@ jobs:
7368
run: |
7469
cmake --build . --target run_buildexe_im_tpl_linux_gcc --config Release
7570
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+
7682
- name: Install
7783
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
7884
run: |
@@ -167,14 +173,11 @@ jobs:
167173
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
168174
run: cmake --build . --target cppcheck_static_analysis
169175

170-
- name: Build
176+
- name: Build Debug for test
171177
# Linux has 2 cores
172178
run: |
173179
cmake --build --list-presets
174180
cmake --build --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2 --config Debug
175-
176-
- name: Test
177-
run: |
178181
ctest --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2 -C Debug
179182
180183
- name: Codecov
@@ -184,6 +187,10 @@ jobs:
184187
cat ../codecov.yml | curl --data-binary @- https://codecov.io/validate
185188
bash <(curl -s https://codecov.io/bash) -f coverage_truncated.info || echo "Codecov did not collect coverage reports"
186189
190+
- name: Build Release for example
191+
run: |
192+
cmake --build --preset=${{env.BUILD_DEV_SINGLE_PRESET}} --parallel 2 --config Release
193+
187194
- name: Bootstrap through CMake
188195
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
189196
run: |
@@ -196,18 +203,6 @@ jobs:
196203
197204
# - name: TODO, BuildExe SM simple hyrid example
198205

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-
211206
- name: Install
212207
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
213208
run: |
@@ -293,7 +288,7 @@ jobs:
293288
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_INTERFACE}}
294289
run: cmake --build . --target cppcheck_static_analysis
295290

296-
- name: Build
291+
- name: Build Debug
297292
# Linux has 2 cores
298293
run: |
299294
cmake --build --list-presets

0 commit comments

Comments
 (0)