From 108a4fe3368fcee92ee831da7269518c3129a4e2 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Thu, 9 Apr 2026 17:17:03 +0100 Subject: [PATCH] ci: Remove caching of /target directory This directory seemed to grow exponentially, with incremental compilation reaching 11GB+ and dependencies not finishing --- .forgejo/actions/setup-rust/action.yml | 31 -------------------------- 1 file changed, 31 deletions(-) diff --git a/.forgejo/actions/setup-rust/action.yml b/.forgejo/actions/setup-rust/action.yml index a4c6ef5e9..2d20119cf 100644 --- a/.forgejo/actions/setup-rust/action.yml +++ b/.forgejo/actions/setup-rust/action.yml @@ -149,37 +149,6 @@ runs: - name: Setup sccache uses: https://git.tomfos.tr/tom/sccache-action@v1 - - name: Cache dependencies - id: deps-cache - uses: actions/cache@v4 - with: - path: | - target/**/.fingerprint - target/**/deps - target/**/*.d - target/**/.cargo-lock - target/**/CACHEDIR.TAG - target/**/.rustc_info.json - /timelord/ - # Dependencies cache - based on Cargo.lock, survives source code changes - key: >- - continuwuity-deps-${{ steps.runner-os.outputs.slug }}-${{ steps.runner-os.outputs.arch }}-${{ steps.rust-setup.outputs.version }}${{ inputs.cache-key-suffix && format('-{0}', inputs.cache-key-suffix) || '' }}-${{ hashFiles('rust-toolchain.toml', '**/Cargo.lock') }} - restore-keys: | - continuwuity-deps-${{ steps.runner-os.outputs.slug }}-${{ steps.runner-os.outputs.arch }}-${{ steps.rust-setup.outputs.version }}${{ inputs.cache-key-suffix && format('-{0}', inputs.cache-key-suffix) || '' }}- - - - name: Cache incremental compilation - id: incremental-cache - uses: actions/cache@v4 - with: - path: | - target/**/incremental - # Incremental cache - based on source code changes - key: >- - continuwuity-incremental-${{ steps.runner-os.outputs.slug }}-${{ steps.runner-os.outputs.arch }}-${{ steps.rust-setup.outputs.version }}${{ inputs.cache-key-suffix && format('-{0}', inputs.cache-key-suffix) || '' }}-${{ hashFiles('rust-toolchain.toml', '**/Cargo.lock') }}-${{ hashFiles('**/*.rs', '**/Cargo.toml') }} - restore-keys: | - continuwuity-incremental-${{ steps.runner-os.outputs.slug }}-${{ steps.runner-os.outputs.arch }}-${{ steps.rust-setup.outputs.version }}${{ inputs.cache-key-suffix && format('-{0}', inputs.cache-key-suffix) || '' }}-${{ hashFiles('rust-toolchain.toml', '**/Cargo.lock') }}- - continuwuity-incremental-${{ steps.runner-os.outputs.slug }}-${{ steps.runner-os.outputs.arch }}-${{ steps.rust-setup.outputs.version }}${{ inputs.cache-key-suffix && format('-{0}', inputs.cache-key-suffix) || '' }}- - - name: End build cache restore group shell: bash run: echo "::endgroup::"