From 44eaff97dcac0852a548672720e40e04ccd78300 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 2 Mar 2023 15:40:39 +1100 Subject: [PATCH] Fix use of `hashFiles` in `key` of bulid-cache (#845) Signed-off-by: Jiahao XU --- .github/actions/just-setup/action.yml | 12 ++++++------ .github/workflows/release-build.yml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/just-setup/action.yml b/.github/actions/just-setup/action.yml index 2d169960..078f46df 100644 --- a/.github/actions/just-setup/action.yml +++ b/.github/actions/just-setup/action.yml @@ -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 }} diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index e05f04f1..8371f17a 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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: