Skip to content
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

Ability to swap out actions/cache for the faster alternative buildjet/cache #244

Open
Jamesking56 opened this issue Jun 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Jamesking56
Copy link

Ability to swap out actions/cache for the faster alternative buildjet/cache

Background/problem

GitHub Actions cache has a number of issues surrounding performance when used on self-hosted runners. GitHub has failed to address this on numerous occassions so BuildJet created their own free cache alternative with double the amount of storage and much faster performance. It would be nice if we could use this in ramsey/composer-install, providing an option to specify which cache we wanted to use.

Proposal/solution

I propose that we add a new option which specifies which cache we would like to use and have this shared action then use the cache specified. We can leave the default to GitHub to keep backward compatibility.

Alternatives

Haven't considered any alternatives.

Additional context

https://buildjet.com/for-github-actions/blog/launch-buildjet-cache

@Jamesking56 Jamesking56 added the enhancement New feature or request label Jun 5, 2023
@ramsey
Copy link
Owner

ramsey commented Jun 5, 2023

Hi, @Jamesking56!

I don't know anything about BuildJet, and I hesitate to add additional cache providers, since that will increase the complexity and maintenance burden for this action. It also looks like BuildJet is an additional third-party paid service, and while I don't have anything against them for that, it means this change is likely to benefit only a small set of users.

With that said, you should be able to fork ramsey/composer-install and swap actions/cache@v3 for buildjet/cache@v3 in ./action.yml, and that should be all you need to get this running with their caching provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants