Change how the cache key is computed

This commit is contained in:
Omar Abdulla
2025-07-24 08:31:50 +03:00
parent 8aaa69780e
commit 75afdd9cfd
+6 -1
View File
@@ -45,6 +45,11 @@ jobs:
rustup target add wasm32-unknown-unknown
rustup component add rust-src
- name: Get polkadot-sdk SHA
id: submod
working-directory: polkadot-sdk
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Cache binaries
id: cache
uses: actions/cache@v3
@@ -52,7 +57,7 @@ jobs:
path: |
~/.cargo/bin/substrate-node
~/.cargo/bin/eth-rpc
key: polkadot-binaries-${{ matrix.os }}-${{ hashFiles('polkadot-sdk/.git') }}
key: polkadot-binaries-${{ matrix.os }}-${{ steps.submod.outputs.sha }}
- name: Build substrate-node
if: steps.cache.outputs.cache-hit != 'true'