NodeJS Mobile prebuilds for udx-native
- Node 18
- Android NDK 24.0.8215888
- (optional) exported
ANDROID_NDK_PATH
environment variable
- (optional) exported
Should be clear enough to follow the workflow steps but in summary:
-
Download the npm tarball package and unzip e.g.
npm pack udx-native@latest | xargs tar -zxvf
-
Navigate to unzipped directory and run
npx prebuild-for-nodejs-mobile TARGET
, whereTARGET
is an accepted value from theprebuild-for-nodejs-mobile
CLI- if you don't have the
ANDROID_NDK_PATH
environment variable exported, you may run the command like so:ANDROID_NDK_HOME=/path/to/ndk npx prebuild-for-nodejs-mobile TARGET
- if you don't have the
-
Create a git tag that matches the version of the module you want to create prebuilds for e.g.
git tag 1.0.0
-
Push the tag to the remote e.g.
git push origin 1.0.0
-
The workflow uses the tag version to create the prebuilds and then publish a release with those prebuilds.
-
The relevant artifacts will show up in GitHub Releases. Each artifact is a tarball containing the
.node
files for the target-specific prebuild.