Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1230 from linux-on-ibm-z/grpc-node_s390x
Prebuilt binaries for s390x
- Loading branch information
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
24 changes: 24 additions & 0 deletions
24
packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node_s390x.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
# https://github.com/mapbox/node-pre-gyp/issues/362 | ||
npm install -g node-gyp | ||
|
||
cd $(dirname $0)/../../.. | ||
|
||
rm -rf build || true | ||
|
||
mkdir -p "${ARTIFACTS_OUT}" | ||
|
||
npm update | ||
|
||
node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0 11.0.0 12.0.0 13.0.0 ) | ||
|
||
for version in ${node_versions[@]} | ||
do | ||
# Cross compile for s390x on x64 | ||
# Requires debian or ubuntu packages "g++-s390x-linux-gnu". | ||
CC=s390x-linux-gnu-gcc CXX=s390x-linux-gnu-g++ LD=s390x-linux-gnu-g++ ./node_modules/.bin/node-pre-gyp configure rebuild package testpackage --target=$version --target_arch=s390x | ||
cp -r build/stage/* "${ARTIFACTS_OUT}"/ | ||
done |
This file contains 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