Improve build.rs STDERR logging

- Remove `set +x`
- Use GitHub Action's log grouping feature
  - See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
This commit is contained in:
cyqsimon
2023-08-27 00:03:23 +08:00
parent e57bb52981
commit 9c11b59c55

View File

@@ -37,14 +37,12 @@ jobs:
- name: Show build.rs stderr
shell: bash
run: |
set +x
mapfile -d '' -t STDERR_FILES < <(find "./target/debug" -name stderr -print0 | grep -z bandwhich)
for FILE in "${STDERR_FILES[@]}"; do
echo "===== $FILE ===== "
echo "::group::$FILE"
cat "$FILE"
echo "====="
echo "::endgroup::"
done
set -x
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings