ci: build and package Linux arm64 (aarch64) native library - #105
Merged
thiagoluiznunes merged 1 commit intoJul 6, 2026
Merged
Conversation
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Add a build-linux-arm64 job (native arm64 runner, same Dockerfile so the glibc target matches the x86_64 build) that produces libpitaya-linux.so for aarch64, and include it in the package: package.sh copies it to PitayaNativeLibraries/Linux/arm64/, with a plugin meta targeting Standalone Linux64 / CPU ARM64. Purely additive — the existing x86_64 lib and its meta (Linux64 CPU x86_64) are unchanged, so x86_64 builds are unaffected and Unity selects the right lib per build architecture. Enables Unity dedicated servers / game rooms to run on Linux arm64 (Graviton). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chagretes
force-pushed
the
feature/linux-arm64
branch
from
July 6, 2026 17:36
6b82d2a to
d0c6191
Compare
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Linux arm64 (aarch64) to the build/release pipeline so
com.wildlifestudios.nuget.libpitayaships an arm64 native lib — enabling Unity dedicated servers / game rooms to run on Linux arm64 (Graviton) hosts.Changes (purely additive)
.github/workflows/build-and-release.yaml: newbuild-linux-arm64job (runs onubuntu-24.04-arm, uses the sameDockerfileso the target glibc matches the x86_64 build), uploadinglibpitaya_linux_arm64. Added to thepackagejobneeds.package.sh: copies the arm64 artifact intoPitayaNativeLibraries/Linux/arm64/.package/PitayaNativeLibraries/Linux/arm64/libpitaya-linux.so.meta(new): plugin meta targeting Standalone Linux64 / CPU ARM64, plus the folder.meta.x86_64) are unchanged → x86_64 builds are unaffected; Unity 6 selects the right lib per build architecture (confirmed the importer acceptsCPU=ARM64for Standalone Linux64).Validation
An arm64
libpitaya-linux.sobuilt this way (native aarch64, glibc-matched) was verified withdlopen+LD_BIND_NOWinside the target arm64 game image — loads with all symbols resolved. NEEDED:libz.so.1, libm, libc(OpenSSL linked statically), a subset of the x86_64 lib.Note
Same
DllImportname in a separateLinux/arm64/folder (mirrors the existing Android arm64/armv7 layout) so only one lib is active per build arch.