Combining prebuilt and prepare using multiple build jobs, validated workflows #3242
-
Suppose one has 5 build jobs each building for one target:
This is a great way to speed up builds by utilizing extra capacity in runners. But:
Are there better ways to do this? The constraints I'm solving for are:
Having a devops orientation, I would like to include the archives in the build step, or allow publishing without a build step. To me, the archive is a build artifact much like a container image, .deb/.rpm, .pkg, or .msi file. That built artifact should be tested before being promoted to being released. I would like to both:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
if you want to build in multiple different jobs and merge the jobs together later, right now, its not pretty... you'll need several config files (one for each build, basically), and another one using the prebuilt builder importing all them and packaging et al... goreleaser build itself also takes quite a long time, but I decided to let it take its time instead of making a mess of config files... and I test the packages on main... goreleaser/.github/workflows/build.yml Lines 17 to 43 in 7aeebb1 FWIW: an example using the prebuilt thing: https://github.com/caarlos0/goreleaser-pro-prebuilt-example FWIW2: I have been thinking in a way to better do this, aka "merge" existing dist folders et al... but haven't got the time to properly work on it yet. Once I have a testable thing I can ping you if you'd like. |
Beta Was this translation helpful? Give feedback.
-
This is now possible with goreleaser pro v1.12.0 example repo: https://github.com/caarlos0/goreleaser-pro-split-merge-example |
Beta Was this translation helpful? Give feedback.
This is now possible with goreleaser pro v1.12.0
example repo: https://github.com/caarlos0/goreleaser-pro-split-merge-example