Closed steebchen closed 1 year ago
I recently received the same error, but that was when I was building for arm64
on an Intel-based Mac.
Can you double check the architecture with a temporary step command like uname -a
?
Indeed. I thought it was arm64...
+ uname -a
Darwin Mac-1696334212407.local 21.6.0 Darwin Kernel Version 21.6.0: Fri Sep 15 16:17:23 PDT 2023; root:xnu-8020.240.18.703.5~1/RELEASE_X86_64 x86_64
It works on macos-13-xlarge
. Their naming is a bit confusing... I guess you can close the issue as compiling arm64 on x64 doens't make sense?
It may be interesting to throw a more specific error for this, since there isn't a lot of documentation about this online. Let me see if I can make a pull request showcasing this.
What version of pkg are you using?
5.8.1
What version of Node.js are you using?
v18.18.0
What operating system are you using?
MacOS M1 on GitHub
What CPU architecture are you using?
arm64 / Apple M1
What Node versions, OSs and CPU architectures are you building for?
node18-darwin-arm64
Describe the Bug
Build for MacOS arm64 fails:
Full logs:
https://github.com/steebchen/prisma-client-go/actions/runs/6385650552/job/17330890459
Please note that these warnings:
don't seem to be related. They also appear when building locally on a real M1 Mac, but it builds successfully.
Expected Behavior
Build to succeed on M1 Mac on GitHub actions
To Reproduce
See
https://github.com/steebchen/prisma-client-go/blob/main/.github/workflows/publish-cli.yml
and
https://github.com/steebchen/prisma-client-go/blob/main/binaries/publish.sh