Unified · Split
| @@ -19,6 +19,7 @@ jobs: · 18 unmodified lines | ||
| 19 | 19 | - name: Build |
| 20 | 20 | run: make -j$(nproc) |
| 21 | 21 | - name: Restore Cached Fate-Suite |
| 22 | + id: cache | |
| 22 | 23 | uses: actions/cache/restore@v4 |
| 23 | 24 | with: |
| 24 | 25 | path: fate-suite |
| @@ -32,6 +33,7 @@ jobs: · 7 unmodified lines | ||
| 32 | 33 | echo "hash=$(find fate-suite -type f | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT |
| 33 | 34 | - name: Cache Fate-Suite |
| 34 | 35 | uses: actions/cache/save@v4 |
| 36 | + if: ${{ format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }} | |
| 35 | 37 | with: |
| 36 | 38 | path: fate-suite |
| 37 | 39 | key: fate-suite-${{ steps.fate.outputs.hash }} |