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 <https://github.com/Rust-GCC/gccrs/pull/1026> in case of
failure.
This commit is contained in:
Thomas Schwinge 2022-03-22 10:41:26 +01:00
parent 10ff5d5507
commit f91f637652
1 changed files with 9 additions and 3 deletions

View File

@ -52,11 +52,17 @@ jobs:
run: |
cd gccrs-build; \
make -j $(nproc) 2>&1 | tee log
- name: Check for new warnings
run: |
grep 'warning:' gccrs-build/log | sort > log_warnings;
diff -U0 .github/bors_log_expected_warnings log_warnings
cd gccrs-build
< log grep 'warning: ' | sort > log_warnings
if diff -U0 ../.github/bors_log_expected_warnings log_warnings; then
:
else
echo 'See <https://github.com/Rust-GCC/gccrs/pull/1026>.'
exit 1
fi >&2
- name: Run Tests
run: |