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 2 years 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

Interesting! Could you remove the files in dist and I'll run the tests 🙂

fwal avatar Sep 28 '23 19:09 fwal

Interesting! Could you remove the files in dist and I'll run the tests 🙂

@fwal Sure, done!

henrymercer avatar Oct 02 '23 12:10 henrymercer

Closing this due to inactivity

henrymercer avatar May 09 '24 08:05 henrymercer