summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorKino Roy <kinoroy@users.noreply.github.com>2022-10-07 23:13:01 -0700
committerGitHub <noreply@github.com>2022-10-08 14:13:01 +0800
commita9da9eb05993a235df999226303bc594e4778805 (patch)
tree173200fc08231818b9bdea1943fda0be11cd560f /.github
parented542c63fc4360ef6d397df3cd92d6623d713e1e (diff)
downloadthrift-a9da9eb05993a235df999226303bc594e4778805.tar.gz
THRIFT-4547: Swift crosstests (#2670)
Co-authored-by: Jiayu Liu <Jimexist@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml70
1 files changed, 69 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 99c92aad0..2187776d3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -183,6 +183,66 @@ jobs:
lib/kotlin/cross-test-server/build/install/TestServer/
retention-days: 3
+ lib-swift:
+ needs: compiler
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Run bootstrap
+ run: ./bootstrap.sh
+
+ - name: Run configure
+ run: |
+ ./configure \
+ --disable-debug \
+ --disable-tests \
+ --disable-dependency-tracking \
+ --without-cpp \
+ --without-c_glib \
+ --without-java \
+ --without-kotlin \
+ --without-python \
+ --without-py3 \
+ --without-ruby \
+ --without-haxe \
+ --without-netstd \
+ --without-perl \
+ --without-php \
+ --without-php_extension \
+ --without-dart \
+ --without-erlang \
+ --without-go \
+ --without-d \
+ --without-nodejs \
+ --without-nodets \
+ --without-lua \
+ --without-rs \
+ --with-swift
+
+ - uses: actions/download-artifact@v3
+ with:
+ name: thrift-compiler
+ path: compiler/cpp
+
+ - name: Run thrift-compiler
+ run: |
+ chmod a+x compiler/cpp/thrift
+ compiler/cpp/thrift -version
+
+ - name: Run make precross for swift
+ run: make -C test/swift precross
+
+ - name: Upload swift precross artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: swift-precross
+ if-no-files-found: error
+ path: |
+ test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug/TestServer
+ test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug/TestClient
+ retention-days: 3
+
lib-rust:
needs: compiler
runs-on: ubuntu-20.04
@@ -275,6 +335,7 @@ jobs:
cross-test:
needs:
- lib-java-kotlin
+ - lib-swift
- lib-rust
runs-on: ubuntu-20.04
steps:
@@ -301,6 +362,12 @@ jobs:
name: kotlin-precross
path: lib/kotlin
+ - name: Download swift precross artifacts
+ uses: actions/download-artifact@v3
+ with:
+ name: swift-precross
+ path: test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug
+
- name: Download rust precross artifacts
uses: actions/download-artifact@v3
with:
@@ -313,12 +380,13 @@ jobs:
lib/java/build/run* \
lib/kotlin/cross-test-client/build/install/TestClient/bin/* \
lib/kotlin/cross-test-server/build/install/TestServer/bin/* \
+ test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug/* \
test/rs/bin/*
- name: Run cross test
env:
THRIFT_CROSSTEST_CONCURRENCY: 4
- PRECROSS_LANGS: java,kotlin,rs
+ PRECROSS_LANGS: java,kotlin,rs,swift
run: |
python test/test.py \
--retry-count 5 \