Skip to content

Commit

Permalink
Use tar.gz instead of zip
Browse files Browse the repository at this point in the history
Better compression ratio
  • Loading branch information
arcusfelis committed Aug 28, 2024
1 parent 74935fa commit 3ae6c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/circleci-prepare-log-dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ PREFIX="${CT_REPORTS//\//_}"
# Optimize naming, so it is easy to extract on MacOS just by clicking it
# and with reasonable directory names
LOG_DIR_ROOT=${CT_REPORTS}/logs/${PREFIX}_${now}
LOG_ZIP=${CT_REPORTS_FULL}/logs_${PREFIX}_${now}.zip
LOG_ZIP=${CT_REPORTS_FULL}/logs_${PREFIX}_${now}.tar.gz
for dev_node_logs_path in `find _build -name log -type d`; do
dev_node=$(basename $(dirname $(dirname $(dirname ${dev_node_logs_path}))))
LOG_DIR=${LOG_DIR_ROOT}/${dev_node}/
Expand All @@ -56,7 +56,7 @@ OLD_DIR=$(pwd)
cd "$LOG_DIR_ROOT/.."

# Zip to safe space
zip -9 -r "$LOG_ZIP" "$(basename "$LOG_DIR_ROOT")"
tar -czvf "$LOG_ZIP" "$(basename "$LOG_DIR_ROOT")"

cd "$OLD_DIR"

Expand Down

0 comments on commit 3ae6c54

Please sign in to comment.