Skip to content

Commit

Permalink
Tune '.github/workflows/ccpp.yml:jobs.build-and-check', 'Check for ne…
Browse files Browse the repository at this point in the history
…w warnings' step

Run it in scratch directory, too, to not pollute the pristine sources
directory.  Point to <Rust-GCC#1026> in case of
failure.
  • Loading branch information
tschwinge committed Mar 22, 2022
1 parent 0701d1f commit af29acd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 >&2 'See <https://github.com/Rust-GCC/gccrs/pull/1026>.'
exit 1
fi
- name: Run Tests
run: |
Expand Down

0 comments on commit af29acd

Please sign in to comment.