hydraulic-software / conveyor

Gradle plugin, user guide and discussion forums for Conveyor
https://conveyor.hydraulic.dev
Apache License 2.0
123 stars 10 forks source link

Disabling cache in Github actions? #80

Closed ennerf closed 1 year ago

ennerf commented 1 year ago

I recently migrated to building with the Github action, but after a few builds the cache is already ~7GB and adds multiple minutes to the build. It'd be faster to just rebuild everything.

...
Received 6463422464 of 6938656649 (93.2%), 84.6 MBs/sec
Received 6576668672 of 6938656649 (94.8%), 84.9 MBs/sec
Received 6681526272 of 6938656649 (96.3%), 85.1 MBs/sec
Received 6757023744 of 6938656649 (97.4%), 84.9 MBs/sec
Received 6845104128 of 6938656649 (98.7%), 84.9 MBs/sec
Received 6938656649 of 6938656649 (100.0%), 84.9 MBs/sec
Cache Size: ~6617 MB (6938656649 B)

On the post action I even get an error that there is no more space left on the device

image

Is there a way to disable the Github cache entirely? would an empty cache key do it?

mikehearn commented 1 year ago

You could just remove the "load cache" step from a local copy of the action I guess. We don't use GH Actions ourselves much so I'm not sure if there's a button or command to clear the cache. You can control how big Conveyor will let its own cache grow with the --cache-limit flag.