Skip to content

Commit

Permalink
tweak again
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Aug 9, 2024
1 parent 63da5af commit fad9f69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ jobs:
# which will nevertheless check the whole workspace
run: |
set -e # Fail the script if any command fails
cargo check | tee build_output.log
warnings=$(grep "warning: " build_output.log || true)
cargo check 2>&1 | tee build_output.log
warnings=$(grep "^warning:" build_output.log || true)
if [ -n "$warnings" ]; then
echo "The following custom lints have failed ❌:"
echo "Build emitted the following warnings:"
echo "$warnings"
exit 1
else
echo "All custom lints passed ✅"
echo "No warnings found."
fi
cargo-clippy-all-features:
Expand Down

0 comments on commit fad9f69

Please sign in to comment.