Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Aug 9, 2024
1 parent fad9f69 commit 4b79e61
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,11 @@ jobs:
# regular cargo check is sufficient here as we only need to trigger the build script
# which will nevertheless check the whole workspace
run: |
set -e # Fail the script if any command fails
set -o pipefail # Ensure the pipeline fails if any command in the pipeline fails
cargo check 2>&1 | tee build_output.log
warnings=$(grep "^warning:" build_output.log || true)
if [ -n "$warnings" ]; then
if grep -q "^warning:" build_output.log; then
echo "Build emitted the following warnings:"
echo "$warnings"
grep "^warning:" build_output.log
exit 1
else
echo "No warnings found."
Expand Down

0 comments on commit 4b79e61

Please sign in to comment.