Repository navigation
fix(ci): isolate Windows node-gyp setup - #65
Merged
Merged
Conversation
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.
The Windows desktop build fails during dependency installation because upgrading node-gyp inside npm's own package triggers a registry 404 for
@npmcli/docs. The setup step then continues with npm's bundled node-gyp 11.5.0, which cannot detect Visual Studio 2026. Native builds also select the runner's Python 3.15 instead of the configured Python 3.11.Install node-gyp 12.4.0 in a separate directory under
RUNNER_TEMP, exportnpm_config_node_gypso Yarn's npm shim uses it, and setNODE_GYP_FORCE_PYTHONto the Python 3.11 installation. Exit immediately if installation or the version check fails.Fixes the failure in https://github.com/logseq/og/actions/runs/44297266409/job/134781127733.
Validation:
git diff --checkpasses.Full Windows packaging still requires a CI run.