clarinet icon indicating copy to clipboard operation
clarinet copied to clipboard

aarch64 build and release

Open obycode opened this issue 3 years ago • 3 comments

We identified that there is a problem with the current cross-compile build for aarch64 (for Apple silicon).

I think there are multiple phases to the solution for this:

  1. Disable build and release for aarch64 in the CI jobs; manually build natively and upload the artifact to the release page
  2. Fix the problem: a. Resolve the cross-compilation issue b. Configure the CI job to run natively on Apple silicon

I would say that properly fixing the problem is not urgent, since the manual solution is not difficult. I have added a note about the manual steps to our release playbook.

@CharlieC3 - Please add your thoughts on the CI side of this.

obycode avatar Jul 19 '22 17:07 obycode

Option 1 seems like a good plan for the short-term.

Regarding option 2, do we happen to know what the root cause of the issue is? Are other people facing this same issue? There may a GH issue open for it we can track.

Additionally, we may be able to split the aarch64 build out to a separate CI platform that offers VMs running Apple silicon. I believe https://www.bitrise.io/ is an option, but there may be others to evaluate as well.

CharlieC3 avatar Jul 19 '22 18:07 CharlieC3

No, I haven't spent much time yet to figure out the root cause. It appears that the JS engine is targeting the wrong architecture, but I'm not sure about that. It is entirely possible that the solution to fix the cross-compilation may be as simple as setting some environment variable.

obycode avatar Jul 20 '22 17:07 obycode

Could be addressed in https://github.com/hirosystems/clarinet/pull/511

lgalabru avatar Aug 08 '22 00:08 lgalabru

Issue still present as we speak (v1.2.0)

lgalabru avatar Dec 05 '22 16:12 lgalabru