Add node-gyp-build-major parameter to support v4 naming convention#90
Merged
Add node-gyp-build-major parameter to support v4 naming convention#90
Conversation
node-gyp-build v4 changed prebuild naming from:
prebuilds/${platform}${libc}-${arch}/node-${abi}.node
to a tag-based convention:
prebuilds/${platform}-${arch}/${name}[.musl].node.[napi|abi${N}].node
Add NODE_GYP_BUILD_MAJOR (default: 3) to prebuild/index.js, exposed as
node-gyp-build-major workflow input. When set to 4:
- Directory: platform-arch (no libc suffix; glibc is assumed by default)
- Filename: name[.musl].node.[napi|abi${N}].node (libc encoded as tag)
- Artifact upload uses prebuilds/**/* to match the new directory names
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
rochdev
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
node-gyp-build-majorworkflow input (default:3) to opt into the v4 prebuild naming conventionnode-gyp-buildv4 changed from directory-encoded libc (linuxglibc-arm64/node-115.node) to tag-based filenames (linux-arm64/dd_pprof.node.abi115.node)4, the action generates prebuilds with the new convention:prebuilds/${platform}-${arch}/(no libc in dir name)${TARGET_NAME}[.musl].node.[napi|abi${N}].node(libc encoded as.musltag; glibc is the default and needs no tag)prebuilds/**/*for v4 (since directory names no longer match job names)node-gyp-build-majoris not set (defaults to3)Motivation
Needed by pprof-nodejs#284 which bumps
node-gyp-buildfrom 3.x to 4.x.Test plan
node-gyp-build-major: 3node-gyp-build-major: 4🤖 Generated with Claude Code