diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 8d98ba9..768dec6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -18,6 +18,12 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - uses: https://gitea.com/actions/go-hashfiles + id: hash-west + with: + patterns: |- + app/west.yml + - name: Cache west modules uses: actions/cache@v3 env: @@ -28,7 +34,7 @@ jobs: tools/ zephyr/ bootloader/ - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('app/west.yml') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ steps.hash-west.outputs.hash }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build-