Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
63753077
Commit
63753077
authored
9 years ago
by
murgatroid99
Browse files
Options
Downloads
Patches
Plain Diff
Get version explicitly
parent
24947de3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/run_tests/build_package_node.sh
+12
-10
12 additions, 10 deletions
tools/run_tests/build_package_node.sh
with
12 additions
and
10 deletions
tools/run_tests/build_package_node.sh
+
12
−
10
View file @
63753077
...
@@ -35,7 +35,9 @@ set -ex
...
@@ -35,7 +35,9 @@ set -ex
cd
$(
dirname
$0
)
/../..
cd
$(
dirname
$0
)
/../..
artifacts
=
$(
pwd
)
/artifacts
base
=
$(
pwd
)
artifacts
=
$base
/artifacts
mkdir
-p
$artifacts
mkdir
-p
$artifacts
cp
-r
$EXTERNAL_GIT_ROOT
/architecture
={
x86,x64
}
,language
=
node,platform
={
windows,linux,macos
}
/artifacts/
*
$artifacts
/
||
true
cp
-r
$EXTERNAL_GIT_ROOT
/architecture
={
x86,x64
}
,language
=
node,platform
={
windows,linux,macos
}
/artifacts/
*
$artifacts
/
||
true
...
@@ -47,6 +49,15 @@ cp grpc-*.tgz $artifacts/grpc.tgz
...
@@ -47,6 +49,15 @@ cp grpc-*.tgz $artifacts/grpc.tgz
mkdir
-p
bin
mkdir
-p
bin
cd
src/node/tools
npm update
npm pack
cp
grpc-tools-
*
.tgz
$artifacts
/
tools_version
=
$(
npm list |
grep
-oP
'(?<=grpc-tools@)\\S+'
)
output_dir
=
$artifacts
/grpc-precompiled-binaries/node/grpc-tools/
$tools_version
mkdir
-p
$output_dir
for
arch
in
{
x86,x64
}
;
do
for
arch
in
{
x86,x64
}
;
do
case
arch
in
case
arch
in
x86
)
x86
)
...
@@ -70,15 +81,6 @@ for arch in {x86,x64}; do
...
@@ -70,15 +81,6 @@ for arch in {x86,x64}; do
input_dir
=
"
$EXTERNAL_GIT_ROOT
/architecture=
$arch
,language=protoc,platform=
$plat
/artifacts"
input_dir
=
"
$EXTERNAL_GIT_ROOT
/architecture=
$arch
,language=protoc,platform=
$plat
/artifacts"
cp
$input_dir
/protoc
*
bin/
cp
$input_dir
/protoc
*
bin/
cp
$input_dir
/grpc_node_plugin
*
bin/
cp
$input_dir
/grpc_node_plugin
*
bin/
# For now, this will have to be manually uploaded to a folder with the
# correct package version
output_dir
=
$artifacts
/grpc-precompiled-binaries/node/grpc-tools
mkdir
-p
$output_dir
tar
-czf
$output_dir
/
$node_plat
-
$node_arch
.tar.gz bin/
tar
-czf
$output_dir
/
$node_plat
-
$node_arch
.tar.gz bin/
done
done
done
done
cd
src/node/tools
npm update
npm pack
cp
grpc-tools-
*
.tgz
$artifacts
/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment