File tree 7 files changed +43
-2
lines changed
7 files changed +43
-2
lines changed Original file line number Diff line number Diff line change 1
1
.git /
2
+ CMakeFiles /
3
+ CMakeCache.txt
Original file line number Diff line number Diff line change 73
73
- name : tar types
74
74
run : |
75
75
tar -cvf dist/types.tar types
76
+ - name : move thrift-docker
77
+ run : |
78
+ cp contrib/thrift-docker dist
79
+ - name : Login to GitHub Container Registry
80
+ uses : docker/login-action@v3
81
+ with :
82
+ registry : ghcr.io
83
+ username : ${{ github.actor }}
84
+ password : ${{ secrets.GITHUB_TOKEN }}
85
+ - name : Build docker container
86
+ uses : upfluence/actions/build-docker@master
87
+ with :
88
+ version : ${{ needs.compute-version.outputs.version }}
89
+ registries : ghcr.io
76
90
- name : Create release
77
91
uses : upfluence/actions/create-github-release@master
78
92
with :
Original file line number Diff line number Diff line change @@ -278,3 +278,5 @@ test-driver
278
278
/CPack * .cmake
279
279
/compile_commands.json
280
280
/install_manifest.txt
281
+ ** /* .cmake
282
+ ** /CMakeFiles
Original file line number Diff line number Diff line change 25
25
#
26
26
# TODO: push to apache/thrift-compiler instead of thrift/thrift-compiler
27
27
28
- FROM debian:jessie
28
+ FROM debian:latest
29
29
MAINTAINER Apache Thrift <dev@thrift.apache.org>
30
30
31
31
ENV DEBIAN_FRONTEND noninteractive
32
+ ARG SEMVER_VERSION=v0.0.0
32
33
33
34
ADD . /thrift
34
35
@@ -43,19 +44,22 @@ RUN buildDeps=" \
43
44
apt-get update && apt-get install -y --no-install-recommends $buildDeps \
44
45
&& mkdir /tmp/cmake-build && cd /tmp/cmake-build \
45
46
&& cmake \
47
+ -DTHRIFT_VERSION=${SEMVER_VERSION#v}-upfluence \
46
48
-DBUILD_COMPILER=ON \
47
49
-DBUILD_LIBRARIES=OFF \
48
50
-DBUILD_TESTING=OFF \
49
51
-DBUILD_EXAMPLES=OFF \
50
52
/thrift \
51
53
&& cmake --build . --config Release \
52
54
&& make install \
53
- && curl -k -sSL "https://storage.googleapis.com/golang/go1.5 .2.linux-amd64.tar.gz" -o /tmp/go.tar.gz \
55
+ && curl -k -sSL "https://storage.googleapis.com/golang/go1.23 .2.linux-amd64.tar.gz" -o /tmp/go.tar.gz \
54
56
&& tar xzf /tmp/go.tar.gz -C /tmp \
55
57
&& cp /tmp/go/bin/gofmt /usr/bin/gofmt \
56
58
&& apt-get purge -y --auto-remove $buildDeps \
57
59
&& apt-get clean \
58
60
&& rm -rf /tmp/* \
59
61
&& rm -rf /var/lib/apt/lists/*
60
62
63
+ WORKDIR /data
64
+
61
65
ENTRYPOINT ["thrift" ]
Original file line number Diff line number Diff line change
1
+ TAG=${TAG:-"latest"}
2
+
3
+ exec docker run --pull always -v "${PWD}:/data" --rm -it ghcr.io/upfluence/thrift:${TAG} $@
Original file line number Diff line number Diff line change @@ -94,4 +94,10 @@ EXTRA_DIST = \
94
94
95
95
precross-% :
96
96
$(MAKE ) -C $* precross
97
+
97
98
precross : precross-nodejs precross-csharp precross-java
99
+
100
+ generate-types-% :
101
+ $(MAKE ) -C $* generate-types
102
+
103
+ generate-types : generate-types-go generate-types-rb generate-types-cpp
Original file line number Diff line number Diff line change @@ -271,3 +271,13 @@ EXTRA_DIST = \
271
271
272
272
style-local :
273
273
$(CPPSTYLE_CMD )
274
+
275
+ TYPE_FILES = ../../types/*.thrift ../../types/known/*.thrift
276
+
277
+ $(TYPE_FILES ) :
278
+ mkdir -p src/thrift/$(patsubst ../../% ,% ,$(dir $@ ) )
279
+ $(THRIFT ) -gen cpp --out src/thrift/$(patsubst ../../% ,% ,$(dir $@ ) ) $@
280
+
281
+ generate-types : $(TYPE_FILES )
282
+
283
+ .PHONY : generate-types $(TYPE_FILES )
You can’t perform that action at this time.
0 commit comments