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
|
id: toolchain-build-riscv-tools
|
||||||
with:
|
with:
|
||||||
path: ${{ inputs.tools-version }}-install
|
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
|
# brute force way to swap between riscv/esp-tools caches
|
||||||
- name: Cache esp-tools
|
- name: Cache esp-tools
|
||||||
@@ -28,7 +28,7 @@ runs:
|
|||||||
id: toolchain-build-esp-tools
|
id: toolchain-build-esp-tools
|
||||||
with:
|
with:
|
||||||
path: ${{ inputs.tools-version }}-install
|
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
|
- name: Build toolchain if not cached
|
||||||
run: |
|
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' |
|
git submodule status "toolchains/${tools}" 'toolchains/libgloss' 'toolchains/qemu' |
|
||||||
while read -r line ; do
|
while read -r line ; do
|
||||||
echo "${line#[!0-9a-f]}"
|
echo "${line#[!0-9a-f]}"
|
||||||
done > "${tools}.hash"
|
done > "$GITHUB_WORKSPACE/${tools}.hash"
|
||||||
done
|
done
|
||||||
echo "Hashfile for riscv-tools and esp-tools created in $HOME"
|
echo "Hashfile for riscv-tools and esp-tools created in $HOME"
|
||||||
|
|||||||
Reference in New Issue
Block a user