-
Notifications
You must be signed in to change notification settings - Fork 21
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 CI for linux ARM64 and ARMhf #32
base: main
Are you sure you want to change the base?
Conversation
CC @shiftkey edit: though this isn't strictly necessary since the builds complete just fine at build time of github desktop |
"resolutions": { | ||
"node-gyp": "^9.4.0" | ||
}, |
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.
this is required due to prebuild
rotting and not upping their dependencies. it currently depends on node-gpy
v6.0.0
which has build issues with python-3.11 (that multiple of the github runners now use)
v9.0.0
is api compatible so we force it. upstream bug long reported here prebuild/prebuild#286
- name: Prebuild (arm64) on Ubuntu | ||
if: matrix.friendlyName == 'Ubuntu' | ||
run: CC=aarch64-linux-gnu-gcc LINK=aarch64-linux-gnu-gcc STRIP=aarch64-linux-gnu-strip yarn prebuild-napi-arm64 | ||
- name: Prebuild (arm) on Ubuntu | ||
if: matrix.friendlyName == 'Ubuntu' | ||
run: CC=arm-linux-gnueabihf-gcc LINK=arm-linux-gnueabihf-gcc STRIP=arm-linux-gnueabihf-strip yarn prebuild-napi-arm |
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.
as noted elsewhere, node-gyp
is used here for compilation and doesn't support cross compilation on linux. so we override CC/LINK/STRIP with the appropriate cross compilers ourselves
so that github-desktop linux fork has a chance to use these prebuilts
add a small speed optimization. good for merge |
also bump version to 0.9.9
bumps various dependencies as well as necessary to build. it has been over a year since this action ran and it was failing in multiple places due to deprecations at various upstreams