Skip to content

Commit c8e888d

Browse files
committed
output log on configure errors.
1 parent babd1c2 commit c8e888d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/Ubuntu.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ jobs:
241241
run: git config --global --add safe.directory $GITHUB_WORKSPACE
242242

243243
- name: Configure cmake
244+
id: configure
244245
run: >
245246
cmake . -B "${{ env.BUILD_DIR }}"
246247
-DCMAKE_BUILD_TYPE="${{ env.CONFIG }}"
@@ -254,6 +255,15 @@ jobs:
254255
-DPYTHON3_EXACT_VERSION="${{ env.PYTHON }}"
255256
-DFLAMEGPU_VISUALISATION="${{ env.VISUALISATION }}"
256257
-DFLAMEGPU_ENABLE_NVTX="ON"
258+
- name: Log Configure Erorrs
259+
260+
- name: Log Configure Erorrs
261+
if: ${{ success() || (failure() && steps.configure.conclusion == 'failure') }}
262+
run: |
263+
echo "${{ env.BUILD_DIR }}/CMakeFiles/CMakeOutput.log:"
264+
cat ${{ env.BUILD_DIR }}/CMakeFiles/CMakeOutput.log || true
265+
echo "${{ env.BUILD_DIR }}/CMakeFiles/CMakeError.log:"
266+
cat ${{ env.BUILD_DIR }}/CMakeFiles/CMakeError.log || true
257267
258268
- name: Build static library
259269
working-directory: ${{ env.BUILD_DIR }}

0 commit comments

Comments
 (0)