diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 7e3f8c71163..5e9e5f4a0e4 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 .' + exit 1 + fi >&2 - name: Run Tests run: |