Skip to content

Setup ccache (Windows, Linux, MacOs)

Actions
A github action to speedup cmake builds using ccache
v2.1
Latest
Star (2)

setup-ccache status

Cache your compile builds using ccache

Use this action to make your cmake builds faster. The caching is done using ccache - a compiler cache.

ccache doesn't currenly support MSVC. ccache is working on support for MSVC

Example workflow using ccache

jobs:
  build:
    steps:
    - name: Setup ccache
      uses: chirag-droid/setup-ccache@latest
      with:
        # default - ccache-key
        key: 'ccache-example-key'

    - name: Build with cmake
      uses: lukka/run-cmake@v1
      with:
        cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
        cmakeAppendedArgs: '-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache'
        buildWithCMake: true
        buildDirectory: '${{ github.workspace }}/build'

Setup ccache (Windows, Linux, MacOs) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A github action to speedup cmake builds using ccache
v2.1
Latest

Setup ccache (Windows, Linux, MacOs) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.