Skip to content

Commit 4554ed5

Browse files
tschwingedkm
authored andcommitted
Merge 'Build logs' into 'Build' in '.github/workflows/ccpp.yml:jobs.build-and-check'
This avoids the supposed issue that in case that 'make' fails, the whole 'jobs.build-and-check' stops, and 'Build logs' isn't executed, and thus there's no indication in the GitHub UI why 'make' failed. Using a shell pipeline is OK; the exit code of 'make' isn't lost, as per <https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell>, 'bash' is being run with '-o pipefail'.
1 parent b99c32f commit 4554ed5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ccpp.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ jobs:
4848
--enable-multilib
4949
5050
- name: Build
51+
shell: bash
5152
run: |
5253
cd gccrs-build; \
53-
make -j $(nproc) > log 2>&1
54+
make -j $(nproc) 2>&1 | tee log
5455
55-
- name: Build logs
56-
run: cat gccrs-build/log
57-
5856
- name: Check for new warnings
5957
run: |
6058
grep 'warning:' gccrs-build/log | sort > log_warnings;

0 commit comments

Comments
 (0)