[CI] hash all build.yml and west.yml files

This commit is contained in:
Marius Alwan Meyer 2023-07-20 23:16:17 +00:00
parent f0d9fe52e2
commit 5e9cf391c5

View File

@ -31,9 +31,9 @@ jobs:
id: hash-west
run: |
FILE_PATH=zephyr/west.yml
HASH=$(sha256sum $FILE_PATH | head -c 64)
HASH=$(sha256sum <(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort) | head -c 64)
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
echo "computed hash: $HASH $FILE_PATH"
echo "computed hash: $HASH"
- name: Cache west modules
uses: actions/cache@v3
@ -45,6 +45,7 @@ jobs:
tools/
zephyr/
bootloader/
zmk/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ steps.hash-west.outputs.hash }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-