runs-on / cache

Shockingly faster GitHub Action cache with S3 backend
https://runs-on.com
MIT License
42 stars 7 forks source link

v4.0 save always not working #5

Closed ruffsl closed 3 weeks ago

ruffsl commented 2 months ago

Same as the github/cache it would seem:

image

Run runs-on/cache@v4
  with:
    save-always: true
    path: <path>
    key: <key>
    enableCrossOsArchive: false
    fail-on-cache-miss: false
    lookup-only: false

/usr/bin/docker exec  702dea252a610926dd2a414e706d60182f9fbb67b16a8adcda50b8cab36b4795 sh -c "cat /etc/*release | grep ^ID"
The cache action detected a local S3 bucket cache. Using it.
Cache not found for input keys: <keys>

image

Related Fix:

ruffsl commented 2 months ago

@crohr , perhaps a fix something like the above could be used? I was successfully using this workaround prior:

      - name: Cache ccache
        id: cache_ccache
        uses: actions/cache@3a22487daddcfa2ebf7238869de052504cc6dc4b
        with:
          save-always: true
          path: |
            ${{ inputs.overlay_ws }}/.ccache
          key: "🗃️-ccache-v1\
            -${{ github.ref }}\
            -${{ github.run_id }}\
            -${{ github.run_number }}\
            -${{ github.run_attempt }}"
          restore-keys: |
            🗃️-ccache-v1-${{ github.ref }}
            🗃️-ccache-v1-refs/heads/${{ github.head_ref }}
            🗃️-ccache-v1-refs/heads/${{ github.base_ref }}
ruffsl commented 3 weeks ago

Looks like this'll be a wontfix from upstream: