-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: alpine support #507
feat: alpine support #507
Conversation
Amazing - will try and look today Yousaf! 👏 |
No rush at all dude! |
switching this to a draft, as there are a couple of additional things I want to do
but few changes I want to make in pact-ref with regards to some linker errors and content-type issues |
f4a9d28
to
c955716
Compare
|
||
. "${SCRIPT_DIR}/lib/export-binary-versions.sh" | ||
"${SCRIPT_DIR}/install-plugin-cli.sh" | ||
$HOME/.pact/bin/pact-plugin-cli install -y https://github.com/mefellows/pact-matt-plugin/releases/tag/$PACT_PLUGIN_MATT_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add matt plugin the pact plugin index to save having to install it manually here and in the pact-go test suite?
.github/workflows/build-and-test.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
builds and tests amd64/arm64 linux versions of glibc + musl variants of vanilla node images (-slim / -alpine respectively)
"libraries": [ | ||
"<(module_root_dir)/ffi/pact_ffi.dll.lib" | ||
"variables": { | ||
"is_alpine": "<!(grep -q Alpine /etc/os-release && echo true || echo false)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is essentially the same despite the white space changes.
We check if the os is alpine and then build the musl bindings.
node-gyp-build detects musl at runtime when loading the libraries, so will correctly pick between musl/glibc as required
f84a370
to
a47fdb5
Compare
fixes #490
node.napi.musl.node
foraarch64
&x86_64
musl variants