-
-
Notifications
You must be signed in to change notification settings - Fork 13
Description
What were you trying to do?
Build for linux ARM64
What happened?
It builds for amd64
How to reproduce the bug
Try to build for linux arm64
Debug Output
{
"Environment": {
"PHP": {
"Version": "8.3.27",
"Path": "/Users/japseyz/Library/Application Support/Herd/bin/php83"
},
"Laravel": {
"Version": "12.37.0",
"ConfigCached": false,
"RoutesCached": true,
"DebugEnabled": true
},
"Node": {
"Version": "v24.6.0",
"Path": "/opt/homebrew/bin/node"
},
"NPM": {
"Version": "11.5.1",
"Path": "/opt/homebrew/bin/npm"
},
"OperatingSystem": "Darwin"
},
"NativePHP": {
"Versions": {
"nativephp/electron": "1.3.0.0",
"nativephp/laravel": "1.3.1.0",
"nativephp/php-bin": "1.1.1.0"
},
"Configuration": {
"Provider": "App\Providers\NativeAppServiceProvider",
"BuildHooks": {
"Pre": [
"npm run build",
"php artisan optimize"
],
"Post": [
"rm -rf public/build"
]
},
"NotarizationEnabled": false,
"AzureTrustedSigningEnabled": false,
"CustomPHPBinary": false
}
}
}
Which operating systems have you seen this occur on?
Linux
Notes
First of all, the documentation on architectures is very sparse, it is in fact not mentioned at all in the docs:
https://nativephp.com/docs/desktop/2/publishing/building
When trying to build for linux arm64, via an ubuntu64 runner, it correctly sees the architecture when installing:
But somehow when building the project, it completely ignores it and just builds for amd64 instead.
This is the output of running php artisan native:build linux arm64 --publish on an ubuntu arm64 runner
How do I explicitly build for arm64?