Fix use of hashFiles in key of bulid-cache (#845)

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-03-02 15:40:39 +11:00 committed by GitHub
parent fcbdfcf04f
commit 44eaff97dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -4,12 +4,12 @@ inputs:
description: Extra tools
required: false
default: ""
index-cache:
indexcache:
description: Enable index cache
required: true
default: true
type: boolean
build-cache:
buildcache:
description: Enable build cache
required: true
default: true
@ -32,7 +32,7 @@ runs:
with:
tool: just,${{ inputs.tools }}
- if: inputs.index-cache
- if: inputs.indexcache
name: Configure index cache
uses: actions/cache@v3
with:
@ -50,13 +50,13 @@ runs:
shell: bash
- name: rustc version
run: rustc -vV | tee /tmp/rustc-version
run: rustc -vV | tee rustc-version
shell: bash
- if: inputs.build-cache
- if: inputs.buildcache
name: Configure build cache
uses: actions/cache@v3
with:
path: |
target/
key: ${{ runner.os }}-cargo-build-${{ hashFiles('/tmp/rustc-version') }}-${{ hashFiles('**/Cargo.lock') }}-${{ inputs.cache-suffix }}
key: ${{ runner.os }}-cargo-build-${{ hashFiles('rustc-version') }}-${{ hashFiles('**/Cargo.lock') }}-${{ inputs.cache-suffix }}

View file

@ -86,8 +86,8 @@ jobs:
- uses: actions/checkout@v3
- uses: ./.github/actions/just-setup
with:
index-cache: false
build-cache: false
indexcache: false
buildcache: false
- uses: actions/download-artifact@v3
with: