[GH-ISSUE #1652] [Proposal] Support cache #817

Closed
opened 2026-03-01 21:46:38 +03:00 by kerem · 7 comments
Owner

Originally created by @wolfogre on GitHub (Feb 28, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1652

Originally assigned to: @wolfogre on GitHub.

Support using actions-cache@v3.

There's a basic implementation for cache in act_runner(the CICD runner of Gitea, based on act). See https://gitea.com/gitea/act_runner/pulls/25 . And it seems to be working well so far.

It's an independent module, so I think it's not difficult to port it to act. However, I'm not sure if act really needs it, so I need some feedback from the maintainers before I do anything.

Related to https://github.com/nektos/act/issues/1513 .

Originally created by @wolfogre on GitHub (Feb 28, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1652 Originally assigned to: @wolfogre on GitHub. Support using `actions-cache@v3`. There's a basic implementation for cache in act_runner(the CICD runner of Gitea, based on act). See https://gitea.com/gitea/act_runner/pulls/25 . And it seems to be working well so far. It's an independent module, so I think it's not difficult to port it to act. However, I'm not sure if act really needs it, so I need some feedback from the maintainers before I do anything. Related to https://github.com/nektos/act/issues/1513 .
kerem 2026-03-01 21:46:38 +03:00
Author
Owner

@AgentEnder commented on GitHub (Mar 2, 2023):

This would be pretty cool! I use the cache as a sort of ephemeral storage so it would be neat to use act with it

<!-- gh-comment-id:1451091719 --> @AgentEnder commented on GitHub (Mar 2, 2023): This would be pretty cool! I use the cache as a sort of ephemeral storage so it would be neat to use act with it
Author
Owner

@IvanRibakov commented on GitHub (Apr 16, 2023):

Definitely need this feature. Without it workflows building projects with a lot of dependencies of with slow compilation times become unusable locally which breaks one of the key ideas behind Act to provide shorter feedback cycle.

From the looks of https://github.com/nektos/act/issues/1513 it seems people are having issues with 3rd party workarounds, so it would be nice if Act supported caching natively.

<!-- gh-comment-id:1510399225 --> @IvanRibakov commented on GitHub (Apr 16, 2023): Definitely need this feature. Without it workflows building projects with a lot of dependencies of with slow compilation times become unusable locally which breaks one of the key ideas behind Act to provide shorter feedback cycle. From the looks of https://github.com/nektos/act/issues/1513 it seems people are having issues with 3rd party workarounds, so it would be nice if Act supported caching natively.
Author
Owner

@smerschjohann commented on GitHub (Apr 23, 2023):

I extracted the gitea implementation from their act_runner and put them in a standalone executable: https://github.com/smerschjohann/act-cache

As it is an internal package, I had to copy the implementation over. So far it works good.

<!-- gh-comment-id:1519018624 --> @smerschjohann commented on GitHub (Apr 23, 2023): I extracted the gitea implementation from their act_runner and put them in a standalone executable: https://github.com/smerschjohann/act-cache As it is an internal package, I had to copy the implementation over. So far it works good.
Author
Owner

@wolfogre commented on GitHub (Apr 24, 2023):

I am working on it. I want to use the same tech stack as act, so there is still some work left.

<!-- gh-comment-id:1519262431 --> @wolfogre commented on GitHub (Apr 24, 2023): I am working on it. I want to use the same tech stack as act, so there is still some work left.
Author
Owner

@smerschjohann commented on GitHub (Apr 24, 2023):

Thanks! You do a great job :) I just couldn't wait ;)

<!-- gh-comment-id:1519313871 --> @smerschjohann commented on GitHub (Apr 24, 2023): Thanks! You do a great job :) I just couldn't wait ;)
Author
Owner

@damccull commented on GitHub (May 5, 2023):

So how do we use this cache now? I'm using catthehacker/ubuntu:full-latest atm.

<!-- gh-comment-id:1535760299 --> @damccull commented on GitHub (May 5, 2023): So how do we use this cache now? I'm using catthehacker/ubuntu:full-latest atm.
Author
Owner

@wolfogre commented on GitHub (May 5, 2023):

So how do we use this cache now? I'm using catthehacker/ubuntu:full-latest atm.

You could update the act to the latest version and follow the usage of actions/cache.

<!-- gh-comment-id:1535774392 --> @wolfogre commented on GitHub (May 5, 2023): > So how do we use this cache now? I'm using catthehacker/ubuntu:full-latest atm. You could update the act to the latest version and follow the [usage](https://github.com/actions/cache/blob/main/README.md) of actions/cache.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#817
No description provided.