shapehq / tartelet

⚙️💻 A macOS app that makes it a breeze to manage multiple GitHub Actions runners in ephemeral virtual machines on a single host machine. The benefits are that runners can run in parallel, and each job runs in an isolated environment.
MIT License
510 stars 17 forks source link

Use built in tart caching to pre download the runner #54

Closed Jon889 closed 1 year ago

Jon889 commented 1 year ago

remake of this PR: #52 requires tart 2.1.0

I already had copied the runner tar into the resources folder so that it would skip downloading the runner each time, but then when a new version had been released, the runner would update itself, so I would keep copying it manually whenever I noticed a new version to save the download time on each job.

It only saves about 10 seconds, (my office internet isn't the fastest) but it seems worth it, I have a lint CI job that takes 20 seconds so 10 seconds is a noticeable difference.

I'm not sure if this is best the way to code it, so any feedback would be good :)