aslamplr / gh-cli

🖥 Yet another unofficial GitHub CLI! Minimalistic, opinionated, and unofficial by default.
https://github.com/aslamplr/gh-cli#gh-cli
MIT License
8 stars 1 forks source link

Use sccache or actions/cache@v2 improve build time #84

Closed aslamplr closed 4 years ago

aslamplr commented 4 years ago

Use sccache improve build time.

Refer https://github.com/xiph/rav1e/commit/49c0e4511ab77a045bc3142b6b62dac5f683002a

Consider using actions/cache@v2:

https://github.com/denoland/deno/blob/0ffc99a61ddfa958a436beef0d003ecead630d0f/.github/workflows/ci.yml#L98

https://github.com/denoland/deno/blob/0ffc99a61ddfa958a436beef0d003ecead630d0f/.github/workflows/ci.yml#L106

aslamplr commented 4 years ago

Setup sccache locally, it's working. It is useful only in case there is a clean build. My workflow doesn't have a clean build as of now. So no improvement locally. But its too early to say so.

On CI, it would be good to go with actions/cache@v2 since it's more native to GitHub Actions and the storage is native as well. If we go with sccache we need to provide storage externally either via s3 or azure that wouldn't be a good choice as we are going minimalistic ATM.