aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2022-03-22 10:41:26 +0100
committerThomas Schwinge <thomas@codesourcery.com>2022-03-22 12:17:23 +0100
commitf91f637652250127e5e88b48df09e0106cf5ad26 (patch)
tree31a57e1e873ec6c18e6e63ae1674cd8f9d500d64
parent10ff5d5507fea8e76837aab81dc6932fd6f8a3ea (diff)
downloadgcc-f91f637652250127e5e88b48df09e0106cf5ad26.zip
gcc-f91f637652250127e5e88b48df09e0106cf5ad26.tar.gz
gcc-f91f637652250127e5e88b48df09e0106cf5ad26.tar.bz2
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.
-rw-r--r--.github/workflows/ccpp.yml12
1 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml
index 7e3f8c7..5e9e5f4 100644
--- a/.github/workflows/ccpp.yml
+++ b/.github/workflows/ccpp.yml
@@ -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: |