forked from Rentberry/geocoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.yaml
executable file
·37 lines (34 loc) · 1.18 KB
/
tasks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This is an example of taskctl tasks configuration file. Adjust it to fit your needs
pipelines:
generate:
- task: install-php-protoc-grpc
- task: generate:php
depends_on: [install-php-protoc-grpc]
- task: generate:go
tasks:
generate:go:
description: "Generates client and server for golang"
command:
- |
protoc --proto_path=./api/ \
--go_out=./pkg/geocoder \
--go-grpc_out=./pkg/geocoder \
./api/geocoder.proto \
install-php-protoc-grpc:
before: rm -rf third_party/grpc
after: rm -rf third_party/grpc
command:
- git clone -b v1.32.0 https://github.com/grpc/grpc third_party/grpc
- cd third_party/grpc && git submodule update --init
- cd third_party/grpc && make grpc_php_plugin
- cp third_party/grpc/bins/opt/grpc_php_plugin third_party/grpc_php_plugin
generate:php:
dir: "{{.Root}}"
description: "Generates client's files for PHP"
command:
- |
protoc --proto_path=./api/ \
--php_out=./lib/php/php-geocoder-grpc \
--plugin=protoc-gen-grpc=./third_party/grpc_php_plugin \
--grpc_out=./lib/php/php-geocoder-grpc \
./api/geocoder.proto \