Lines Matching +full:apt +full:- +full:get
10 …BUILD_DEPS: automake bison flex git libboost-all-dev libevent-dev libssl-dev libtool make pkg-conf…
20 os: [ubuntu-20.04, ubuntu-22.04]
21 runs-on: ${{ matrix.os }}
23 - uses: actions/checkout@v3
25 - name: Install dependencies
27 sudo apt-get update -yq
28 sudo apt-get install -y --no-install-recommends g++ $BUILD_DEPS
30 - name: Run bootstrap
33 - name: Run configure
34 run: ./configure --disable-debug --disable-tests --disable-libs
36 - name: Run make
37 run: make -j$(nproc)
39 - name: Run install
42 - name: Run thrift version
43 run: /usr/local/bin/thrift -version
45 # only upload while building ubuntu-20.04
46 - name: Archive built thrift compiler
47 if: matrix.os == 'ubuntu-20.04'
48 uses: actions/upload-artifact@v3
50 name: thrift-compiler
52 retention-days: 3
54 lib-go:
56 runs-on: ubuntu-20.04
60 - '1.18'
61 - '1.19'
63 - uses: actions/checkout@v3
65 - uses: actions/setup-go@v3
67 go-version: ${{ matrix.go }}
69 - name: Install dependencies
71 sudo apt-get update -yq
72 sudo apt-get install -y --no-install-recommends $BUILD_DEPS
74 - name: Run bootstrap
77 - name: Run configure
80 --disable-debug \
81 --disable-dependency-tracking \
82 --without-cpp \
83 --without-c_glib \
84 --without-java \
85 --without-kotlin \
86 --without-python \
87 --without-py3 \
88 --without-ruby \
89 --without-haxe \
90 --without-netstd \
91 --without-perl \
92 --without-php \
93 --without-php_extension \
94 --without-dart \
95 --without-erlang \
96 --with-go \
97 --without-d \
98 --without-nodejs \
99 --without-nodets \
100 --without-lua \
101 --without-rs \
102 --without-swift
104 - uses: actions/download-artifact@v3
106 name: thrift-compiler
109 - name: Run thrift-compiler
112 compiler/cpp/thrift -version
114 - name: Run make for go
115 run: make -C lib/go
117 - name: Run make check for lib/go
118 run: make -C lib/go check
120 - name: Run make check for test/go
121 run: make -C test/go check
123 - name: Run make precross for go test
124 run: make -C test/go precross
126 - name: Upload go precross artifacts
128 uses: actions/upload-artifact@v3
130 name: go-precross
131 if-no-files-found: error
134 retention-days: 3
136 lib-java-kotlin:
138 runs-on: ubuntu-20.04
142 - uses: actions/checkout@v3
144 - uses: actions/setup-java@v3
147 java-version: 17
150 - name: Install dependencies
152 sudo apt-get update -yq
153 sudo apt-get install -y --no-install-recommends $BUILD_DEPS
154 sudo apt-get install -y wget unzip ant maven
156 - name: Setup gradle
158 …ttps://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip -q -O /tmp/gradle-$GRADLE_…
159 …2f229816aa4046424f3b24d771751b06779d58c8ec4 /tmp/gradle-$GRADLE_VERSION-bin.zip" | sha256sum -c -)
160 unzip -d /tmp /tmp/gradle-$GRADLE_VERSION-bin.zip
161 sudo mv /tmp/gradle-$GRADLE_VERSION /usr/local/gradle
162 sudo ln -s /usr/local/gradle/bin/gradle /usr/local/bin
163 gradle --version
165 - name: Run spotlessCheck for Java
170 - name: Run ktfmtCheck for Kotlin
175 - name: Run bootstrap
178 - name: Run configure
181 --disable-debug \
182 --disable-tests \
183 --disable-dependency-tracking \
184 --without-cpp \
185 --without-c_glib \
186 --with-java \
187 --with-kotlin \
188 --without-python \
189 --without-py3 \
190 --without-ruby \
191 --without-haxe \
192 --without-netstd \
193 --without-perl \
194 --without-php \
195 --without-php_extension \
196 --without-dart \
197 --without-erlang \
198 --without-go \
199 --without-d \
200 --without-nodejs \
201 --without-nodets \
202 --without-lua \
203 --without-rs \
204 --without-swift
206 - uses: actions/download-artifact@v3
208 name: thrift-compiler
211 - name: Run thrift-compiler
214 compiler/cpp/thrift -version
216 - name: Run make for java
217 run: make -C lib/java
220 - name: Run make install for java
221 run: make -C lib/java install
223 - name: Upload java libthrift artifacts
224 uses: actions/upload-artifact@v3
227 if-no-files-found: error
230 - name: Run make check for java
231 run: make -C lib/java check
233 - name: Run make precross for java
234 run: make -C lib/java precross
236 - name: Upload java precross artifacts
237 uses: actions/upload-artifact@v3
239 name: java-precross
240 if-no-files-found: error
247 retention-days: 3
249 - name: Run make for kotlin
250 run: make -C lib/kotlin
252 - name: Run make check for kotlin
253 run: make -C lib/kotlin check
255 - name: Run make precross for kotlin
256 run: make -C lib/kotlin precross
258 - name: Upload kotlin precross artifacts
259 uses: actions/upload-artifact@v3
261 name: kotlin-precross
262 if-no-files-found: error
264 lib/kotlin/cross-test-client/build/install/TestClient/
265 lib/kotlin/cross-test-server/build/install/TestServer/
266 retention-days: 3
268 lib-swift:
270 runs-on: ubuntu-20.04
272 - uses: actions/checkout@v3
274 - name: Run bootstrap
277 - name: Run configure
280 --disable-debug \
281 --disable-tests \
282 --disable-dependency-tracking \
283 --without-cpp \
284 --without-c_glib \
285 --without-java \
286 --without-kotlin \
287 --without-python \
288 --without-py3 \
289 --without-ruby \
290 --without-haxe \
291 --without-netstd \
292 --without-perl \
293 --without-php \
294 --without-php_extension \
295 --without-dart \
296 --without-erlang \
297 --without-go \
298 --without-d \
299 --without-nodejs \
300 --without-nodets \
301 --without-lua \
302 --without-rs \
303 --with-swift
305 - uses: actions/download-artifact@v3
307 name: thrift-compiler
310 - name: Run thrift-compiler
313 compiler/cpp/thrift -version
315 - name: Run make precross for swift
316 run: make -C test/swift precross
318 - name: Upload swift precross artifacts
319 uses: actions/upload-artifact@v3
321 name: swift-precross
322 if-no-files-found: error
324 test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug/TestServer
325 test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug/TestClient
326 retention-days: 3
328 lib-rust:
330 runs-on: ubuntu-20.04
334 - uses: actions/checkout@v3
336 - name: Install dependencies
338 sudo apt-get update -yq
339 sudo apt-get install -y --no-install-recommends curl $BUILD_DEPS
341 - name: Setup cargo
343 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
347 rustup --version
348 cargo --version
349 rustc --version
351 - name: Run bootstrap
354 - name: Run configure
357 --disable-debug \
358 --disable-tests \
359 --disable-dependency-tracking \
360 --without-cpp \
361 --without-c_glib \
362 --without-java \
363 --without-kotlin \
364 --without-python \
365 --without-py3 \
366 --without-ruby \
367 --without-haxe \
368 --without-netstd \
369 --without-perl \
370 --without-php \
371 --without-php_extension \
372 --without-dart \
373 --without-erlang \
374 --without-go \
375 --without-d \
376 --without-nodejs \
377 --without-nodets \
378 --without-lua \
379 --with-rs \
380 --without-swift
382 - uses: actions/download-artifact@v3
384 name: thrift-compiler
387 - name: Run thrift-compiler
390 compiler/cpp/thrift -version
392 - name: Run make for rust
393 run: make -C lib/rs
395 - name: Run make check for rust
396 run: make -C lib/rs check
398 - name: Run make test for rust
399 run: make -C lib/rs/test check
401 - name: Run make precross for test rust
402 run: make -C test/rs precross
404 - name: Upload rust precross artifacts
405 uses: actions/upload-artifact@v3
407 name: rs-precross
408 if-no-files-found: error
412 retention-days: 3
414 - name: Run make test_recursive for rust
415 run: make -C lib/rs/test_recursive check
417 cross-test:
419 - lib-java-kotlin
420 - lib-swift
421 - lib-rust
422 - lib-go
423 runs-on: ubuntu-20.04
425 - uses: actions/checkout@v3
427 - uses: actions/setup-python@v3
429 python-version: "3.x"
431 - uses: actions/setup-java@v3
435 java-version: 11
438 - name: Install openssl and certificates (for SSL tests)
440 sudo apt-get update -yq
441 sudo apt-get install -y --no-install-recommends openssl ca-certificates
443 - name: Download java precross artifacts
444 uses: actions/download-artifact@v3
446 name: java-precross
449 - name: Download kotlin precross artifacts
450 uses: actions/download-artifact@v3
452 name: kotlin-precross
455 - name: Download swift precross artifacts
456 uses: actions/download-artifact@v3
458 name: swift-precross
459 path: test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug
461 - name: Download rust precross artifacts
462 uses: actions/download-artifact@v3
464 name: rs-precross
467 - name: Download go precross artifacts
468 uses: actions/download-artifact@v3
470 name: go-precross
473 - name: Set back executable flags
477 lib/kotlin/cross-test-client/build/install/TestClient/bin/* \
478 lib/kotlin/cross-test-server/build/install/TestServer/bin/* \
479 test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug/* \
483 - name: Run cross test
489 --retry-count 5 \
490 --skip-known-failures \
491 --server $PRECROSS_LANGS \
492 --client $PRECROSS_LANGS
494 - name: Upload log files from failed cross test runs
495 uses: actions/upload-artifact@v3
498 name: cross-test-log
500 retention-days: 3