Skip to content

Commit

Permalink
ci: fix universal build upload
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwchadwick committed Oct 18, 2021
1 parent b3fba6b commit 1ab4bc8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,14 @@ if [[ $PUBLISH_BINARY == true && $LIBCURL_RELEASE == $LATEST_LIBCURL_RELEASE ]];
# Build and publish x64 package
lipo build/Release/node_libcurl.node -thin x86_64 -output lib/binding/node_libcurl.node
npm_config_target_arch=x64 yarn pregyp package testpackage --verbose
npm_config_target_arch=x64 node scripts/module-packaging.js --publish "$(yarn --silent pregyp reveal staged_tarball --silent)"
npm_config_target_arch=x64 node scripts/module-packaging.js --publish \
"$(npm_config_target_arch=x64 yarn --silent pregyp reveal staged_tarball --silent)"

# Build and publish arm64 package.
lipo build/Release/node_libcurl.node -thin arm64 -output lib/binding/node_libcurl.node
npm_config_target_arch=x64 yarn pregyp package --verbose # Can't testpackage for arm64 yet.
npm_config_target_arch=arm64 node scripts/module-packaging.js --publish "$(yarn --silent pregyp reveal staged_tarball --silent)"
npm_config_target_arch=arm64 yarn pregyp package --verbose # Can't testpackage for arm64 yet.
npm_config_target_arch=arm64 node scripts/module-packaging.js --publish \
"$(npm_config_target_arch=arm64 yarn --silent pregyp reveal staged_tarball --silent)"
else
yarn pregyp package testpackage --verbose
node scripts/module-packaging.js --publish "$(yarn --silent pregyp reveal staged_tarball --silent)"
Expand Down

0 comments on commit 1ab4bc8

Please sign in to comment.