Skip to content

Commit 6008049

Browse files
Update connectrpc/swift (#2060)
1 parent 028830e commit 6008049

File tree

10 files changed

+99
-0
lines changed

10 files changed

+99
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# syntax=docker/dockerfile:1.19
2+
FROM swift:6.2.0-bookworm AS build
3+
4+
WORKDIR /app
5+
RUN apt-get update \
6+
&& apt-get install -y libstdc++-12-dev
7+
RUN git clone --depth 1 --branch 1.2.0 https://github.com/connectrpc/connect-swift
8+
WORKDIR /app/connect-swift
9+
RUN swift build -c release --product protoc-gen-connect-swift-mocks --static-swift-stdlib -Xlinker -s
10+
11+
FROM gcr.io/distroless/cc-debian12:latest@sha256:0000f9dc0290f8eaf0ecceafbc35e803649087ea7879570fbc78372df7ac649b AS base
12+
13+
FROM scratch
14+
COPY --link --from=base / /
15+
COPY --link --from=build /app/connect-swift/.build/release/protoc-gen-connect-swift-mocks .
16+
USER nobody
17+
ENTRYPOINT [ "/protoc-gen-connect-swift-mocks" ]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: v1
2+
name: buf.build/connectrpc/swift-mocks
3+
plugin_version: v1.2.0
4+
source_url: https://github.com/connectrpc/connect-swift
5+
integration_guide_url: https://connectrpc.com/docs/swift/testing
6+
description: Generates mocks that are compatible with Connect-Swift clients.
7+
deps:
8+
- plugin: buf.build/apple/swift:v1.32.0
9+
- plugin: buf.build/connectrpc/swift:v1.2.0
10+
output_languages:
11+
- swift
12+
registry:
13+
swift:
14+
deps:
15+
- source: https://github.com/connectrpc/connect-swift.git
16+
package: connect-swift
17+
products: [ ConnectMocks ]
18+
swift_versions: [ ".v5", ".v6" ]
19+
version: 1.2.0
20+
platforms:
21+
macos: v10_15
22+
ios: v12
23+
tvos: v13
24+
watchos: v6
25+
opts:
26+
- Visibility=Public
27+
- FileNaming=PathToUnderscores
28+
spdx_license_id: Apache-2.0
29+
license_url: https://github.com/connectrpc/connect-swift/blob/1.2.0/LICENSE
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# syntax=docker/dockerfile:1.19
2+
FROM swift:6.2.0-bookworm AS build
3+
4+
WORKDIR /app
5+
RUN apt-get update \
6+
&& apt-get install -y libstdc++-12-dev
7+
RUN git clone --depth 1 --branch 1.2.0 https://github.com/connectrpc/connect-swift
8+
WORKDIR /app/connect-swift
9+
RUN swift build -c release --product protoc-gen-connect-swift --static-swift-stdlib -Xlinker -s
10+
11+
FROM gcr.io/distroless/cc-debian12:latest@sha256:0000f9dc0290f8eaf0ecceafbc35e803649087ea7879570fbc78372df7ac649b AS base
12+
13+
FROM scratch
14+
COPY --link --from=base / /
15+
COPY --link --from=build /app/connect-swift/.build/release/protoc-gen-connect-swift .
16+
USER nobody
17+
ENTRYPOINT [ "/protoc-gen-connect-swift" ]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: v1
2+
name: buf.build/connectrpc/swift
3+
plugin_version: v1.2.0
4+
source_url: https://github.com/connectrpc/connect-swift
5+
integration_guide_url: https://connectrpc.com/docs/swift/getting-started
6+
description: Idiomatic gRPC & Connect RPCs for Swift.
7+
deps:
8+
- plugin: buf.build/apple/swift:v1.32.0
9+
output_languages:
10+
- swift
11+
registry:
12+
swift:
13+
deps:
14+
- source: https://github.com/connectrpc/connect-swift.git
15+
package: connect-swift
16+
products: [ Connect ]
17+
swift_versions: [ ".v5", ".v6" ]
18+
version: 1.2.0
19+
platforms:
20+
macos: v10_15
21+
ios: v12
22+
tvos: v13
23+
watchos: v6
24+
opts:
25+
- Visibility=Public
26+
- FileNaming=PathToUnderscores
27+
spdx_license_id: Apache-2.0
28+
license_url: https://github.com/connectrpc/connect-swift/blob/1.2.0/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:IFskm5Iu3LzqVRrv3i09NlJdy7N8s00Wymd+jnu80yI=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:24C0oBcfopWOWEbwUeY4S5TimRpKlB8ESoS2UjINjm4=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:6osQB7bm0YcckpFxzK/xT2Cvj9mECNDCM+8WJxW8qI8=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:0ab7wntSWxsB1ZdQOvDzZOhtiTMzeKpUqXf2GQ7VeYw=

0 commit comments

Comments
 (0)