Skip to content

Commit

Permalink
proper logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Jan 31, 2025
1 parent e31ae28 commit 974db58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build_aarch64_Linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,11 @@ jobs:
echo "BUILD_FAILED=${BUILD_FAILED}" >> "${GITHUB_ENV}"
fi
##rClone Upload logs
7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./aarch64-Linux.${{ github.run_id }}.log.xz" "${SYSTMP}/BUILD.log" 2>/dev/null
rclone copyto "./aarch64-Linux.${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/aarch64-Linux.latest.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" &
rclone copyto "./aarch64-Linux.${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/aarch64-linux.latest.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" &
rclone copyto "./aarch64-Linux.${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/aarch64-Linux.${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" &
7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./${{ github.run_id }}.log.xz" "${SYSTMP}/BUILD.log" 2>/dev/null
rclone copyto "./${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" &
if [[ -s "${SYSTMP}/BUILD_FAILED.log" && $(stat -c%s "${SYSTMP}/BUILD_FAILED.log") -gt 10 ]]; then
7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./aarch64-Linux.${{ github.run_id }}.FAILED.log.xz" "${SYSTMP}/BUILD_FAILED.log" 2>/dev/null
rclone copyto "./aarch64-Linux.${{ github.run_id }}.FAILED.log.xz" "r2:/meta/bincache/logs/aarch64-Linux.${{ github.run_id }}.FAILED.log.xz" --checksum --check-first --user-agent="${USER_AGENT}"
7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./${{ github.run_id }}.log.xz" "${SYSTMP}/BUILD_FAILED.log" 2>/dev/null
rclone copyto "./${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}"
fi
wait ; echo
fi
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/build_x86_64_Linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,11 @@ jobs:
echo "BUILD_FAILED=${BUILD_FAILED}" >> "${GITHUB_ENV}"
fi
##rClone Upload logs
7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./x86_64-Linux.${{ github.run_id }}.log.xz" "${SYSTMP}/BUILD.log" 2>/dev/null
rclone copyto "./x86_64-Linux.${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/x86_64-Linux.latest.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" &
rclone copyto "./x86_64-Linux.${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/x86_64-linux.latest.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" &
rclone copyto "./x86_64-Linux.${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/x86_64-Linux.${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" &
7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./${{ github.run_id }}.log.xz" "${SYSTMP}/BUILD.log" 2>/dev/null
rclone copyto "./${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" &
if [[ -s "${SYSTMP}/BUILD_FAILED.log" && $(stat -c%s "${SYSTMP}/BUILD_FAILED.log") -gt 10 ]]; then
7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./x86_64-Linux.${{ github.run_id }}.FAILED.log.xz" "${SYSTMP}/BUILD_FAILED.log" 2>/dev/null
rclone copyto "./x86_64-Linux.${{ github.run_id }}.FAILED.log.xz" "r2:/meta/bincache/logs/x86_64-Linux.${{ github.run_id }}.FAILED.log.xz" --checksum --check-first --user-agent="${USER_AGENT}"
7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./${{ github.run_id }}.log.xz" "${SYSTMP}/BUILD_FAILED.log" 2>/dev/null
rclone copyto "./${{ github.run_id }}.log.xz" "r2:/meta/bincache/logs/${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}"
fi
wait ; echo
fi
Expand Down

0 comments on commit 974db58

Please sign in to comment.