setup-swift icon indicating copy to clipboard operation
setup-swift copied to clipboard

Clean up intermediate files to reduce disk usage

Open henrymercer opened this issue 1 year ago • 2 comments

This PR cleans up some intermediate files that are created during the install, such as archives and the original path of the tools once we've cached them into the toolcache. This increases the amount of disk available to subsequent steps by about 2 GB, based on some brief experiments on Linux.

To handle cases like Windows sometimes holding onto locks, we run rm with three retries, and continue if cleanup fails.

henrymercer avatar Aug 03 '23 16:08 henrymercer