https://github.com/f3d-app/sccache-setup-action
A github action to install and setup sccache to speed up your builds
https://github.com/f3d-app/sccache-setup-action
Last synced: 4 months ago
JSON representation
A github action to install and setup sccache to speed up your builds
- Host: GitHub
- URL: https://github.com/f3d-app/sccache-setup-action
- Owner: f3d-app
- License: bsd-3-clause
- Created: 2024-08-12T06:21:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T07:05:24.000Z (almost 2 years ago)
- Last Synced: 2025-12-22T23:44:15.722Z (7 months ago)
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sccache-setup-action
A github action to install and setup sccache to speed up your builds
It installs (on Windows using `choco` and on MacOS using `brew`), recover a cached sccache cache using the github cache action
then setup and run a sccache server.
On Linux, it assumes sccache is available.
Example usage:
```
- name: Install and setup sccache
uses: f3d-app/sccache-setup-action@v1
with:
key: MyKey-0
```
Then during the configuration of your build, add sccache as a launcher, eg, for CMake:
```
- name: Configure
working-directory: ${{github.workspace}}/build
shell: bash
run: >
cmake ../source
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache
-DCMAKE_C_COMPILER_LAUNCHER=sccache
```
Resulting caches can be seen in your actions tab.
To check the sccache action is behaving as expected, it is possible to add the following at the end of your job:
```
- name: Stop and check sccache
shell: bash
run: sccache --show-stats
```
Please note sccache does not work with Visual Studio Generator on Windows but requires ninja-build in that case:
https://github.com/mozilla/sccache/issues/957