diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d889a05..29b9162 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,10 +42,21 @@ jobs: cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max + - name: Restore ccache + uses: actions/cache@v4 + with: + path: ~/.cache/fluorine-ccache + key: ccache-${{ runner.os }}-${{ github.sha }} + restore-keys: | + ccache-${{ runner.os }}- + - name: Build inside container run: | + mkdir -p ~/.cache/fluorine-ccache docker run --rm \ -v "${{ github.workspace }}:/src:rw" \ + -v "$HOME/.cache/fluorine-ccache:/ccache:rw" \ + -e CCACHE_DIR=/ccache \ -w /src \ fluorine-builder:latest \ bash /src/docker/build-inner.sh |
