diff options
author | maxim-yurchuk <maxim-yurchuk@yandex-team.com> | 2024-10-09 12:29:46 +0300 |
---|---|---|
committer | maxim-yurchuk <maxim-yurchuk@yandex-team.com> | 2024-10-09 13:14:22 +0300 |
commit | 9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch) | |
tree | a8fb3181d5947c0d78cf402aa56e686130179049 /contrib/tools/protoc | |
parent | a44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff) | |
download | ydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz |
publishFullContrib: true for ydb
<HIDDEN_URL>
commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/tools/protoc')
-rw-r--r-- | contrib/tools/protoc/bin/all.sh | 6 | ||||
-rw-r--r-- | contrib/tools/protoc/bin/pack.sh | 9 | ||||
-rw-r--r-- | contrib/tools/protoc/bin/run.sh | 10 | ||||
-rw-r--r-- | contrib/tools/protoc/resources.json | 19 | ||||
-rw-r--r-- | contrib/tools/protoc/ya.make.prebuilt | 15 |
5 files changed, 59 insertions, 0 deletions
diff --git a/contrib/tools/protoc/bin/all.sh b/contrib/tools/protoc/bin/all.sh new file mode 100644 index 0000000000..9cc7f34ed8 --- /dev/null +++ b/contrib/tools/protoc/bin/all.sh @@ -0,0 +1,6 @@ +set -xue + +sh ./run.sh --target-platform default-darwin-x86_64 +sh ./run.sh --target-platform default-darwin-arm64 +sh ./run.sh --target-platform default-linux-x86_64 --musl +sh ./run.sh --target-platform windows diff --git a/contrib/tools/protoc/bin/pack.sh b/contrib/tools/protoc/bin/pack.sh new file mode 100644 index 0000000000..31e32283e4 --- /dev/null +++ b/contrib/tools/protoc/bin/pack.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -xue + +rm -rf tmp +mkdir tmp +cp protoc* tmp/ +cd tmp +tar czf ../protoc.tgz protoc* diff --git a/contrib/tools/protoc/bin/run.sh b/contrib/tools/protoc/bin/run.sh new file mode 100644 index 0000000000..91752d7e1f --- /dev/null +++ b/contrib/tools/protoc/bin/run.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -xue + +rm -rf protoc protoc.exe protoc.tgz protoc.pdb tmp protoc.dSYM +ya make -r "${@}" +rm -f protoc.dSYM +sh ./pack.sh +ya upload --ttl=inf protoc.tgz +rm -rf protoc protoc.exe protoc.tgz protoc.pdb tmp protoc.dSYM diff --git a/contrib/tools/protoc/resources.json b/contrib/tools/protoc/resources.json new file mode 100644 index 0000000000..2e78d6bf7f --- /dev/null +++ b/contrib/tools/protoc/resources.json @@ -0,0 +1,19 @@ +{ + "by_platform": { + "darwin": { + "uri": "sbr:7039760192" + }, + "darwin-arm64": { + "uri": "sbr:7039759830" + }, + "linux": { + "uri": "sbr:7039760920" + }, + "linux-aarch64": { + "uri": "sbr:7039760572" + }, + "win32": { + "uri": "sbr:7039759509" + } + } +} diff --git a/contrib/tools/protoc/ya.make.prebuilt b/contrib/tools/protoc/ya.make.prebuilt new file mode 100644 index 0000000000..c5e358c512 --- /dev/null +++ b/contrib/tools/protoc/ya.make.prebuilt @@ -0,0 +1,15 @@ +SET_RESOURCE_URI_FROM_JSON(SANDBOX_RESOURCE_URI resources.json) + +IF (SANDBOX_RESOURCE_URI != "") + ENABLE(PREBUILT) + + PREBUILT_PROGRAM() + + DECLARE_EXTERNAL_RESOURCE(PROTOC ${SANDBOX_RESOURCE_URI}) + + PRIMARY_OUTPUT(${PROTOC_RESOURCE_GLOBAL}/protoc${MODULE_SUFFIX}) + + INCLUDE(ya.make.induced_deps) + + END() +ENDIF() |