actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.37k stars 1.16k forks source link

Can not access cache from Linux runner on Mac runner #1291

Closed arjendevos closed 1 week ago

arjendevos commented 7 months ago

This is what i run on the ubuntu-latest runner:

- name: Cache Yarn dependencies
      uses: actions/cache@v3
      with:
        enableCrossOsArchive: true
        path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
        key: web-build-yarn-${{ hashFiles('**/yarn.lock') }}
        restore-keys: |
          web-build-yarn-

And i'm trying to restore it in the next job on a macos-latest runner:

 - name: Cache Yarn dependencies
        uses: actions/cache@v3
        with:
          enableCrossOsArchive: true
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
          key: web-build-yarn-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            web-build-yarn-

The Linux runner uploads the cache (i can see it also on github):

Cache Size: ~1846 MB (1935458230 B)
Cache saved successfully
Cache saved with key: web-build-yarn-24d4c0cdb90d06bf718fa92e8b763375d4b196e3704dcae754007728b3921bf5

But on macOS i get this:

Run actions/cache@v3
  with:
    enableCrossOsArchive: true
    path: /Users/runner/Library/Caches/Yarn/v6
    key: web-build-yarn-
    restore-keys: |
       web-build-yarn-

    fail-on-cache-miss: false
    lookup-only: false
Cache not found for input keys: web-build-yarn-24d4c0cdb90d06bf718fa92e8b763375d4b196e3704dcae754007728b3921bf5, web-build-yarn-
github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.

github-actions[bot] commented 1 week ago

This issue was closed because it has been inactive for 5 days since being marked as stale.