mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1652] [Proposal] Support cache #817
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#817
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 .
@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
@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.
@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.
@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.
@smerschjohann commented on GitHub (Apr 24, 2023):
Thanks! You do a great job :) I just couldn't wait ;)
@damccull commented on GitHub (May 5, 2023):
So how do we use this cache now? I'm using catthehacker/ubuntu:full-latest atm.
@wolfogre commented on GitHub (May 5, 2023):
You could update the act to the latest version and follow the usage of actions/cache.