How do I cache steps in GitHub actions?

后端 未结 6 1815
野趣味
野趣味 2021-01-30 10:54

Say I have a GitHub actions workflow with 2 steps.

  1. Download and compile my application\'s dependencies.
  2. Compile and test my application

My

6条回答
  •  迷失自我
    2021-01-30 11:02

    If you are using Docker in your WorkFlows, as @peterevans answered, GitHub now supports caching through the cache action, but it has its limitations.

    For that reason, you might find useful this action to bypass GitHub's action limitations. More info in this blog post.

    Disclaimer: I created the action to support cache before GitHub did it officially, and I still use it because of its simplicity and flexibility.

提交回复
热议问题