ccache
Avrea provides a remote storage endpoint for ccache. Compilation outputs are cached so that unchanged source files skip recompilation.
On Avrea runners
Section titled “On Avrea runners”ccache is pre-configured:
CCACHE_REMOTE_STORAGE="http://avrea-host:8290/ccache-build/cas|layout=flat"PATH="/usr/lib/ccache:$PATH" # ccache compiler wrappersWith the ccache compiler wrappers on PATH, your workflow needs no changes:
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-statsManual setup
Section titled “Manual setup”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