CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
511 stars 78 forks source link

[chore]: Actions - Cache Dependencies #75

Closed lukepistrol closed 1 year ago

lukepistrol commented 1 year ago

In order to cut down the time of our CI with Github Actions, dependencies are now cached using actions/cache.

This action plugin checks Package.resolved and when there are no changes, it downloads the cached build folder instead of fetching each dependency one-by-one.

This saves about ~5-7 minutes per test run. Once there are changes in Package.resolved, of course, it will result in a longer test run.

Screen Shot 2022-10-04 at 20 30 23

lukepistrol commented 1 year ago

There seems to be an issue still. It worked without a problem on my fork. Have to investigate. Converting this to a Draft now.

lukepistrol commented 1 year ago

Ok it seems to work now.

Just for anyone curious: removing .swiftpm from .gitignore solved it. Reference: https://github.com/apple/swift-package-manager/issues/5767#issuecomment-1256427240