-
Notifications
You must be signed in to change notification settings - Fork 707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archive uploads instead of uploading individual files #36
Comments
Edit Dec 2020: I was wrong. actions/cache can cache the process of running |
@g105b in that case the Passing data between jobs in a workflow doc needs an update, since that page doesn't mention limitations or actions/cache at all. Also Comparing artifacts and dependency caching. How many files and/or which size of directory warrants using caching instead of archiving? Also calling it a cache for some "artifacts" but not others is a bit of a misnomer, since I need the exact contents of the directory in all the jobs in the workflow. |
I understand and share your frustration. I hope this is made a bit simpler soon. |
Hi, I'm trying to have a build process spit out a fully working artifact that includes everything it needs to run (node_modules, dist, etc). If I understand this correct, actions/cache would only help if you need to share the node_modules between workflow runs? Is there any workaround to force actions/upload-artifact to somehow tar the files instead of uploading them all individually? |
You can get a massive boost by |
Any movement on this? |
Facing the same issue... The current solution to the problem is to use upload-tartifact and download-tartifact which do exactly that. It would be nicer to have an option in the original action to tar before upload / untar after download instead |
Bump. This should probably be done by default. |
Bump! |
Any movement on this? |
I have a 900MB
node_modules
directory with 86k files. Using actions/upload-artifact as-is takes about an hour and a half -- the logs appear to indicate that files are uploaded individually.If I tar/gzip the directory first, the tar takes about 30 seconds, reducing it to 175MB, then the upload takes about 25 seconds.
Example of how actions/cache does it: https://github.com/actions/cache/blob/master/src/save.ts
The text was updated successfully, but these errors were encountered: