Skip to content

Commit 74ec902

Browse files
tschwingedkm
authored andcommitted
Tune '.github/workflows/ccpp.yml:jobs.build-and-check', 'Check for new warnings' step
Run it in scratch directory, too, to not pollute the pristine sources directory. Point to <#1026> in case of failure.
1 parent 4554ed5 commit 74ec902

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ccpp.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,17 @@ jobs:
5252
run: |
5353
cd gccrs-build; \
5454
make -j $(nproc) 2>&1 | tee log
55-
55+
5656
- name: Check for new warnings
5757
run: |
58-
grep 'warning:' gccrs-build/log | sort > log_warnings;
59-
diff -U0 .github/bors_log_expected_warnings log_warnings
58+
cd gccrs-build
59+
< log grep 'warning: ' | sort > log_warnings
60+
if diff -U0 ../.github/bors_log_expected_warnings log_warnings; then
61+
:
62+
else
63+
echo 'See <https://github.com/Rust-GCC/gccrs/pull/1026>.'
64+
exit 1
65+
fi >&2
6066
6167
- name: Run Tests
6268
run: |

0 commit comments

Comments
 (0)