Skip to content

Cache does not seem to be working with use-installer: true #103

Open
@ericbn

Description

@ericbn

Hi 👋

I don't see a cache being created for SAM under the GitHub Action Caches in my repository using this action.

I'm using:

    runs-on: ubuntu-latest
    steps:
      - uses: aws-actions/setup-sam@v2
        with:
          use-installer: true
          version: 1.107.0

and my workflow run logs constantly show:

Cached AWS SAM CLI 1.107.0 to /opt/hostedtoolcache/sam/1.107.0/x64

Look like the @actions/cache module with the restoreCache and saveCache functions should be used, instead of @actions/tool-cache with find and cacheDir, in order to actually persistently cache the files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions