Skip to content

add CI for linux ARM64 and ARMhf#32

Open
theofficialgman wants to merge 2 commits intodesktop:mainfrom
theofficialgman:main
Open

add CI for linux ARM64 and ARMhf#32
theofficialgman wants to merge 2 commits intodesktop:mainfrom
theofficialgman:main

Conversation

@theofficialgman
Copy link

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

@theofficialgman
Copy link
Author

theofficialgman commented Jul 8, 2023

CC @shiftkey

edit: though this isn't strictly necessary since the builds complete just fine at build time of github desktop

Comment on lines +44 to +46
"resolutions": {
"node-gyp": "^9.4.0"
},
Copy link
Author

@theofficialgman theofficialgman Jul 8, 2023

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

Comment on lines +91 to +94
- 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
Copy link
Author

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
@theofficialgman
Copy link
Author

add a small speed optimization. good for merge

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.

1 participant