File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 5151 path : ~/.cache/pre-commit
5252 key : pre-commit-${{ inputs.pre-commit-version }}-python${{ inputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
5353
54+ - name : Setup Rust Toolchain Cache
55+ id : rust-toolchain-cache
56+ if : ${{ inputs.rust }}
57+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
58+ with :
59+ path : ~/.rustup/toolchains
60+ key : rust-toolchains-${{ inputs.rust }}-components-${{ inputs.rust-components }}
61+
5462 - name : Setup Rust Toolchain
5563 uses : dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
56- if : ${{ inputs.rust }}
64+ if : ${{ inputs.rust && steps.rust-toolchain-cache.outputs.cache-hit != 'true' }}
5765 with :
5866 toolchain : ${{ inputs.rust }}
5967 components : ${{ inputs.rust-components }}
You can’t perform that action at this time.
0 commit comments