Skip to content

Commit 1b469d2

Browse files
authored
Add musl libc option for prebuilding on linux
Useful for alpine linux, and other distros using musl
1 parent 7b02a36 commit 1b469d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/after_success.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")
1515
if [[ ${COMMIT_MESSAGE} == ${PACKAGE_JSON_VERSION} ]]; then
1616
echo "running prebuild"
1717
node ./node_modules/prebuild/bin.js -t 8.0.0 -t 9.0.0 -t 10.0.0 -t 11.0.0 -t 12.0.0 --strip -u ${GITHUB_TOKEN}
18+
19+
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
20+
node ./node_modules/prebuild/bin.js --libc=musl -t 8.0.0 -t 9.0.0 -t 10.0.0 -t 11.0.0 -t 12.0.0 --strip -u ${GITHUB_TOKEN}
21+
fi
1822
fi

0 commit comments

Comments
 (0)