Skip to content

Commit

Permalink
just use shared key instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Aug 29, 2023
1 parent 2be6abf commit bc0844e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_and_deploy.yml
Expand Up @@ -272,9 +272,8 @@ jobs:
uses: ijjk/rust-cache@turbo-cache-v1.0.7
with:
save-if: 'true'
key: ${{ hashFiles('.cargo/config.toml') }}
cache-provider: 'turbo'
shared-key: build-${{ matrix.settings.target }}
shared-key: build-${{ matrix.settings.target }}-${{ hashFiles('.cargo/config.toml') }}

# we only need custom caching for docker builds
# as they are on an older Node.js version and have
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build_reusable.yml
Expand Up @@ -123,9 +123,8 @@ jobs:
if: ${{ inputs.rustCacheKey }}
with:
cache-provider: 'turbo'
key: ${{ hashFiles('.cargo/config.toml') }}
save-if: ${{ github.ref_name == 'canary' }}
shared-key: ${{ inputs.rustCacheKey }}-x86_64-unknown-linux-gnu
shared-key: ${{ inputs.rustCacheKey }}-x86_64-unknown-linux-gnu-build-${{ hashFiles('.cargo/config.toml') }}

# clean up any previous artifacts to avoid hitting disk space limits
- run: git clean -xdf && rm -rf /tmp/next-repo-*; rm -rf /tmp/next-install-* /tmp/yarn-* /tmp/ncc-cache target
Expand Down

0 comments on commit bc0844e

Please sign in to comment.