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
|
description: Extra tools
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
index-cache:
|
indexcache:
|
||||||
description: Enable index cache
|
description: Enable index cache
|
||||||
required: true
|
required: true
|
||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
build-cache:
|
buildcache:
|
||||||
description: Enable build cache
|
description: Enable build cache
|
||||||
required: true
|
required: true
|
||||||
default: true
|
default: true
|
||||||
|
@ -32,7 +32,7 @@ runs:
|
||||||
with:
|
with:
|
||||||
tool: just,${{ inputs.tools }}
|
tool: just,${{ inputs.tools }}
|
||||||
|
|
||||||
- if: inputs.index-cache
|
- if: inputs.indexcache
|
||||||
name: Configure index cache
|
name: Configure index cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
@ -50,13 +50,13 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: rustc version
|
- name: rustc version
|
||||||
run: rustc -vV | tee /tmp/rustc-version
|
run: rustc -vV | tee rustc-version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- if: inputs.build-cache
|
- if: inputs.buildcache
|
||||||
name: Configure build cache
|
name: Configure build cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
target/
|
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: actions/checkout@v3
|
||||||
- uses: ./.github/actions/just-setup
|
- uses: ./.github/actions/just-setup
|
||||||
with:
|
with:
|
||||||
index-cache: false
|
indexcache: false
|
||||||
build-cache: false
|
buildcache: false
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Reference in a new issue