mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
Fix use of hashFiles
in key
of bulid-cache (#845)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
fcbdfcf04f
commit
44eaff97dc
2 changed files with 8 additions and 8 deletions
12
.github/actions/just-setup/action.yml
vendored
12
.github/actions/just-setup/action.yml
vendored
|
@ -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 }}
|
||||
|
|
4
.github/workflows/release-build.yml
vendored
4
.github/workflows/release-build.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue