mozilla / sccache

Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Apache License 2.0
5.74k stars 542 forks source link

Implement sscache-action to make github action users life easier #1535

Open Xuanwo opened 1 year ago

Xuanwo commented 1 year ago

To use sccache in GHA, users need to download sccache by themselves:

For example:

By introducing sscache-action, we can use it as simple as:

- uses: mozilla/sccache-action@v1
  with:
    start: true # start as soon as installed
    show_stat: true # print stat after job finished (via action hook)
  env:
    SCCACHE_GHA_VERSION: happy_new_year
sylvestre commented 1 year ago

yeah, we should indeed :)

Xuanwo commented 1 year ago

yeah, we should indeed :)

In this repo or mozilla/sccache-action (I guess we need some paper work to create a new repo)?

sylvestre commented 1 year ago

nope, here it is: https://github.com/mozilla/sccache-action

Xuanwo commented 1 year ago

nope, here it is: https://github.com/mozilla/sccache-action

I will work this later this week~

Xuanwo commented 1 year ago

Hi, @sylvestre sccache-action repo is empty that I can't fork it, maybe create a README.md for it?

sylvestre commented 1 year ago

@Xuanwo done: https://github.com/mozilla/sccache-action