Skip to content

ccache

Avrea provides a remote storage endpoint for ccache. Compilation outputs are cached so that unchanged source files skip recompilation.

ccache is pre-configured:

Terminal window
CCACHE_REMOTE_STORAGE="http://avrea-host:8290/ccache-build/cas|layout=flat"
PATH="/usr/lib/ccache:$PATH" # ccache compiler wrappers

With the ccache compiler wrappers on PATH, your workflow needs no changes:

workflow.yml
jobs:
build:
runs-on: avrea-ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: mkdir build && cd build && cmake ..
- run: make -j$(nproc)
- run: ccache --show-stats
env:
CCACHE_REMOTE_STORAGE: "http://avrea-host:8290/ccache-build/cas|layout=flat"
steps:
- uses: actions/checkout@v6
- run: |
export PATH="/usr/lib/ccache:$PATH"
mkdir build && cd build && cmake ..
make -j$(nproc)
- run: ccache --show-stats