Skip to content

ci: use napi cross compile toolchain to build node native addon - #321

Merged
barjin merged 1 commit into
apify:masterfrom
ts-project-fork:master
Nov 28, 2025
Merged

barjin merged 1 commit into
apify:masterfrom
ts-project-fork:master

Conversation

@Brooooooklyn

@Brooooooklyn Brooooooklyn commented Nov 27, 2025 •

Copy link
Copy Markdown
Contributor

The image ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian is no longer maintained. The --use-napi-cross flag utilizes the same toolchain within this Docker container to compile the Node.js addon, ensuring compatibility with GLIBC 2.17.

Changing this flag will speed up the CI process, as there will be no need to download the entire Docker image.

@barjin

barjin commented Nov 28, 2025 •

Copy link
Copy Markdown
Member

Hello @Brooooooklyn, and thank you for your contribution. Could you please expand the PR description a little, explaining why the changes are beneficial for this repo, what they do, etc.

Thank you!

PS: Don't mind the failing tests; in an external PR, the CI checks are using the common httpbin.org instance, which is notoriously flaky.

@Brooooooklyn Brooooooklyn changed the title ci: use napi cross compile toolchain ci: use napi cross compile toolchain to build node native addon Nov 28, 2025
@Brooooooklyn

Copy link
Copy Markdown
Contributor Author

@barjin done!

@barjin barjin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@barjin
barjin merged commit 4ac44e1 into apify:master Nov 28, 2025
15 of 27 checks passed
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.

2 participants