Skip to content

Caching support for GHES聽#307

Description

@tiwarishub

Description:
馃憢 Team, we have recently added support for caching in GHES (target version 3.5). And we saw setup-java action is also using the Action cache service to cache dependency, based on user input, using the actions/cache package of actions/toolkit. Unlike other setup-* actions (like setup-node, setup-python), setup-java actions is not using any explicit condition for GHES (for example like in setup-python we have https://github.com/actions/setup-python/blob/main/src/setup-python.ts#L14-L16) . So for setup-java, no change is required to enable its cache usage on GHES but if you like to check the Action cache service presence before starting caching dependency you can add use this new isFeatureAvailable function present in @actions/toolkit 2.0.0 to check the presence of Actions cache service.
You can also refer to this change which we are doing for actions/cache action.

Please let me know if you need more clarification.

Activity

  1. tiwarishub commented on Mar 28, 2022

    @tiwarishub
    ContributorAuthor

    As this feature will be required for GHES 3.5 and its feature freeze date is the 5th of April. So we will need to prioritize this so that this change can be completed before the End of this week. This change should be small 馃檱

  2. tiwarishub commented on Mar 28, 2022

    @tiwarishub
    ContributorAuthor

    cc: @actions/actions-service for visibility

  3. marko-zivic-93 commented on Apr 4, 2022

    @marko-zivic-93
    Contributor

    We added caching support for GHES.
    Closing the issue thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions