Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builds: add linux-arm64 binary to the npm package #527

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

muvaf
Copy link
Contributor

@muvaf muvaf commented Dec 9, 2024

Mostly replicating what is done for macOS arm64 build; build with GOARCH flag and use lipo to build a fat binary. Needs a run in GH actions to confirm it's all working.

Fixes #318

@@ -143,11 +148,13 @@ jobs:
mkdir ./npm_publish/dist/go-ios-darwin-amd64_darwin_amd64
mkdir ./npm_publish/dist/go-ios-darwin-arm64_darwin_arm64
mkdir ./npm_publish/dist/go-ios-linux-amd64_linux_amd64
mkdir ./npm_publish/dist/go-ios-linux-arm64_linux_arm64
mkdir ./npm_publish/dist/go-ios-windows-amd64_windows_amd64
cp ./mac-bin/ios ./npm_publish/dist/go-ios-darwin-amd64_darwin_amd64/ios
cp ./mac-bin/ios ./npm_publish/dist/go-ios-darwin-arm64_darwin_arm64/ios
cp ./win-bin/ios.exe ./npm_publish/dist/go-ios-windows-amd64_windows_amd64/ios.exe
cp ./bin/ios ./npm_publish/dist/go-ios-linux-amd64_linux_amd64/ios
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we use here the platform specific ones: bin/ios-amd64 bin/ios-arm64

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but I didn't want to do a big change. Using the fat binary for both platforms is the original implementation for macOS, so just followed that.

@aluedeke aluedeke merged commit bf68b42 into danielpaulus:main Dec 9, 2024
2 checks passed
aluedeke added a commit that referenced this pull request Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ARM64 binary for NPM install to work
2 participants