Try to search/add hash files into GH-workspace
This commit is contained in:
4
.github/actions/toolchain-build/action.yml
vendored
4
.github/actions/toolchain-build/action.yml
vendored
@@ -20,7 +20,7 @@ runs:
|
||||
id: toolchain-build-riscv-tools
|
||||
with:
|
||||
path: ${{ inputs.tools-version }}-install
|
||||
key: riscv-tools-installed-${{ env.tools-cache-version }}-${{ hashFiles(riscv-tools.hash) }}
|
||||
key: riscv-tools-installed-${{ env.tools-cache-version }}-${{ hashFiles(**/riscv-tools.hash) }}
|
||||
|
||||
# brute force way to swap between riscv/esp-tools caches
|
||||
- name: Cache esp-tools
|
||||
@@ -28,7 +28,7 @@ runs:
|
||||
id: toolchain-build-esp-tools
|
||||
with:
|
||||
path: ${{ inputs.tools-version }}-install
|
||||
key: esp-tools-installed-${{ env.tools-cache-version }}-${{ hashFiles(esp-tools.hash) }}
|
||||
key: esp-tools-installed-${{ env.tools-cache-version }}-${{ hashFiles(**/esp-tools.hash) }}
|
||||
|
||||
- name: Build toolchain if not cached
|
||||
run: |
|
||||
|
||||
2
.github/scripts/create-hash.sh
vendored
2
.github/scripts/create-hash.sh
vendored
@@ -15,6 +15,6 @@ for tools in 'riscv-tools' 'esp-tools' ; do
|
||||
git submodule status "toolchains/${tools}" 'toolchains/libgloss' 'toolchains/qemu' |
|
||||
while read -r line ; do
|
||||
echo "${line#[!0-9a-f]}"
|
||||
done > "${tools}.hash"
|
||||
done > "$GITHUB_WORKSPACE/${tools}.hash"
|
||||
done
|
||||
echo "Hashfile for riscv-tools and esp-tools created in $HOME"
|
||||
|
||||
Reference in New Issue
Block a user