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