Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.

add CI for linux ARM64 and ARMhf#32

Open
theofficialgman wants to merge 2 commits into
desktop:mainfrom
theofficialgman:main
Open

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

Conversation

@theofficialgman

Copy link
Copy Markdown

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

theofficialgman commented Jul 8, 2023

Copy link
Copy Markdown
Author

CC @shiftkey

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

Comment thread package.json
Comment on lines +44 to +46
"resolutions": {
"node-gyp": "^9.4.0"
},

@theofficialgman theofficialgman Jul 8, 2023

Copy link
Copy Markdown
Author

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 thread .github/workflows/ci.yml
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
Copy Markdown
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
Copy Markdown
Author

add a small speed optimization. good for merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant