Trying to add Apple Silicon (M1) releases to my project #1587
-
GitHub now has M1 (Apple Silicon) based runners for open source projects. I am trying to incorporate this for my project that uses JReleaser. I updated my build matrix to include I updated my JReleaser configuration in my
However, the release itself now fails with:
See https://github.com/wimdeblauwe/ttcli/blob/main/pom.xml#L221 for my configuration. The error message is not really clear to me, so any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Default settings for
|
Beta Was this translation helpful? Give feedback.
Default settings for
brew
packager require a single matching artifact. In this case there are 2 possibilities,x86_64
andaarch_64
, hence why it fails. There are a couple of ways to solve this:x86_64
oraarch_64
. Add<extraProperties><skipBrew>true</skipBrew></extraProperties>
to the artifact that should not be chosen. https://jreleaser.org/guide/latest/reference/packagers/homebrew.html#_skip_artifacts<multiPlatform>true</multiPlatform>
to the packager. No additional changes are required.