Skip to content

Commit

Permalink
cache cargo bin/, consider toolchain and config toml
Browse files Browse the repository at this point in the history
  • Loading branch information
xSetech committed Oct 24, 2023
1 parent 0bc556c commit 8a1bc2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ jobs:
uses: actions/cache@v2
with:
path: |
~/.cargo/bin
~/.cargo/registry
~/.cargo/git
target
key: rust-${{ env.LLVM_VERSION }}-${{ matrix.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
key: rust-${{ env.LLVM_VERSION }}-${{ matrix.os }}-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock', 'rust-toolchain.toml', '**/config.toml') }}

- name: Download and extract pre-built LLVM release
if: steps.cache-llvm.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 8a1bc2d

Please sign in to comment.