-
Notifications
You must be signed in to change notification settings - Fork 0
Add multi-platform support for Linux ARM64, macOS Intel, and macOS Apple Silicon. #24
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
Add multi-platform support for Linux ARM64, macOS Intel, and macOS Apple Silicon. #24
Conversation
|
Thanks for the PR @saidatom 🎉 |
|
@bfabio all suggestions addressed; ready for review |
.github/workflows/test.yml
Outdated
| - os: ubuntu-latest | ||
| platform: linux-arm64 | ||
| php-version: "8.3" | ||
| run-tests: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We won't run tests for linux-arm64 this way. I suppose you implemented this because ubuntu-latest is x64, but actually GitHub has ubuntu-24.04-arm we can use.
I'd also use ubuntu-24.04 for x64 so both versions are uniform. Then we can remove the run-tests: logic from this file (and also the cross compilation).
Makefile
Outdated
| @echo "Built $(LIBRARY)" | ||
|
|
||
| # Build all platform variants | ||
| build-all: build-linux-amd64 build-linux-arm64 build-darwin-amd64 build-darwin-arm64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| build-all: build-linux-amd64 build-linux-arm64 build-darwin-amd64 build-darwin-arm64 | |
| build-all: build-linux-amd64 build-linux-arm64 build-darwin-arm64 |
Makefile
Outdated
| # Legacy symlink for backward compatibility | ||
| LEGACY_LIBRARY=$(LIB_DIR)/$(LIBRARY_NAME).so | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See below.
|
@saidatom great work, thanks! |
|
@bfabio Thanks! Are you planning to release a new version? |
Closes #23