sbt / sbt-ci-release

sbt plugin to automate Sonatype releases from GitHub Actions
Apache License 2.0
286 stars 76 forks source link

OutOfMemory in Github Actions run #209

Closed pjfanning closed 3 years ago

pjfanning commented 3 years ago

Thanks for the work on this great project. I'm using sbt-ci-release alongside sbt-github-actions.

I have an issue where the Github Actions publish step that runs sbt ci-release runs out of memory. I'd appreciate some advice on how to solve this. Github Actions seems to be running in a VM that allows sbt about 1Gb heap and this doesn't appear to be enough for my use case.

https://github.com/FasterXML/jackson-module-scala/runs/3673951099?check_suite_focus=true

https://github.com/FasterXML/jackson-module-scala/blob/2.13/.github/workflows/ci.yml#L66 (generated publish step)

pjfanning commented 3 years ago

I added this to my build.sbt - ThisBuild / githubWorkflowSbtCommand := "sbt -J-Xmx2G" and this fixed the issue.

I suspect the reason that ci-release needs to rebuild the jars is to sign them - the ci-release job was not failing for snapshot release - only for full releases.