forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grpc-1.67.yaml
165 lines (153 loc) · 4.28 KB
/
grpc-1.67.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
package:
name: grpc-1.67
version: 1.67.1
epoch: 4
description: The C based gRPC
copyright:
- license: Apache-2.0 AND BSD-3-Clause AND MIT
resources:
cpu: 24
memory: 24Gi
dependencies:
provides:
- grpc=${{package.full-version}}
var-transforms:
- from: ${{package.version}}
match: ^(\d+\.\d+)\.\d+$
replace: "$1"
to: major-minor-version
vars:
pypi-package: grpcio
import: grpc
data:
- name: py-versions
items:
3.10: '310'
3.11: '311'
3.12: '312'
3.13: '313'
environment:
contents:
packages:
- abseil-cpp-dev
- autoconf
- automake
- benchmark-dev
- build-base
- busybox
- c-ares-dev
- ca-certificates-bundle
- chrpath
- cmake
- curl
- icu-dev
- libstdc++-dev
- libsystemd
- libtool
- linux-headers
- openssl-dev
- protobuf-dev
- py3-supported-build-base
- py3-supported-cython
- py3-supported-python-dev
- python3
- re2
- re2-dev
- samurai
- systemd-dev
- wolfi-base
- xxhash-dev
- yaml-dev
- zlib-dev
environment:
# https://github.com/wolfi-dev/os/issues/34568
GCC_SPEC_FILE: /dev/null
pipeline:
- uses: git-checkout
with:
repository: https://github.com/grpc/grpc
tag: v${{package.version}}
expected-commit: d3286610f703a339149c3f9be69f0d7d0abb130a
- runs: |
cd third_party
git submodule update --init --recursive
- runs: |
mkdir -p "${{targets.destdir}}"/usr/share/doc/grpc
cmake -B _build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_STANDARD=17 \
-DBUILD_SHARED_LIBS=True \
-DgRPC_INSTALL=ON \
-DgRPC_CARES_PROVIDER=package \
-DgRPC_SSL_PROVIDER=package \
-DgRPC_ZLIB_PROVIDER=package \
-DgRPC_PROTOBUF_PROVIDER=package \
-DgRPC_ABSL_PROVIDER=package \
-DgRPC_RE2_PROVIDER=package \
-DgRPC_BENCHMARK_PROVIDER=package \
-DgRPC_BACKWARDS_COMPATIBILITY_MODE=OFF \
-DgRPC_BUILD_TESTS=OFF
cmake --build _build
- runs: |
DESTDIR="${{targets.destdir}}" cmake --install _build
python3 setup.py install --skip-build --root="${{targets.destdir}}"
cd doc
find ./ -type f -print -exec install -Dm644 {} "${{targets.destdir}}"/usr/share/doc/grpc/{} \;
rm "${{targets.destdir}}"/usr/share/doc/grpc/.gitignore
find "${{targets.destdir}}" -type f -name roots.pem -exec \
sh -c 'rm $0 && ln -s /etc/ssl/certs/ca-certificates.crt $0' "{}" \;
subpackages:
- range: py-versions
name: py${{range.key}}-grpcio-${{vars.major-minor-version}}
description: python${{range.key}} version of grpcio
dependencies:
provider-priority: ${{range.value}}
provides:
- py3-grpcio-${{vars.major-minor-version}}
- py3-grpcio
- py${{range.key}}-grpcio
pipeline:
- uses: py/pip-build-install
environment:
GRPC_PYTHON_CFLAGS: "-std=c++17"
GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY: "1"
GRPC_PYTHON_BUILD_SYSTEM_CARES: "1"
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL: "1"
GRPC_PYTHON_BUILD_SYSTEM_ZLIB: "1"
GRPC_PYTHON_BUILD_SYSTEM_RE2: "1"
GRPC_PYTHON_BUILD_SYSTEM_ABSL: "1"
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}
- name: py3-supported-grpcio-${{vars.major-minor-version}}
description: meta package providing ${{vars.pypi-package}} for supported python versions.
dependencies:
runtime:
- py3.10-grpcio-${{vars.major-minor-version}}
- py3.11-grpcio-${{vars.major-minor-version}}
- py3.12-grpcio-${{vars.major-minor-version}}
- py3.13-grpcio-${{vars.major-minor-version}}
- name: ${{package.name}}-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- ${{package.name}}
provides:
- grpc-dev=${{package.full-version}}
description: grpc dev
update:
enabled: true
github:
identifier: grpc/grpc
strip-prefix: v
use-tag: true
tag-filter-prefix: v1.67.