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
Prebuilt binaries for s390x #1230
Merged
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4ad2273
Create build_artifact_node_s390x.sh
shahidhs-ibm 4d1e4c9
Update build_all_linux_artifacts.sh
shahidhs-ibm ec00932
Update Dockerfile
shahidhs-ibm a92005a
Update build_all_linux_artifacts.sh
shahidhs-ibm da545c9
Update build_artifact_node_s390x.sh
shahidhs-ibm a69cb45
Update build_all_linux_artifacts.sh
shahidhs-ibm e11587c
Incorporating review comments
shahidhs-ibm 01a1684
Make build_artifact_node_s390x.sh executable.
ec30a63
Revert "Make build_artifact_node_s390x.sh executable."
shahidhs-ibm 43d7bc7
Make build_artifact_node_s390x.sh executable.
shahidhs-ibm File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,8 +69,13 @@ if [ "$DO_NATIVE" = "true" ] ; then | |
fi | ||
|
||
if [ "$DO_CROSS" = "true" ] ; then | ||
docker build -t alpine_node_artifact $base_dir/tools/docker/alpine_artifact | ||
|
||
# Cross build for arm | ||
$tool_dir/build_artifact_node_arm.sh | ||
docker run -e JOBS=8 -e ARTIFACTS_OUT=/var/grpc/artifacts -v $base_dir:/var/grpc alpine_node_artifact /var/grpc/tools/run_tests/artifacts/build_artifact_node.sh --with-alpine | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line appears to be redundant with line 80. |
||
|
||
docker build -t alpine_node_artifact $base_dir/tools/docker/alpine_artifact | ||
# Cross build for s390x | ||
$tool_dir/build_artifact_node_s390x.sh | ||
docker run -e JOBS=8 -e ARTIFACTS_OUT=/var/grpc/artifacts -v $base_dir:/var/grpc alpine_node_artifact /var/grpc/tools/run_tests/artifacts/build_artifact_node.sh --with-alpine | ||
fi |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why move this line up here?