summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJiayu Liu <Jimexist@users.noreply.github.com>2023-04-27 11:35:17 +0800
committerGitHub <noreply@github.com>2023-04-27 11:35:17 +0800
commit790d4cb86c8c3eb3dd7232028c800771c01c6b06 (patch)
tree2b5aba60f5c722f4539f8760fd23db348bd53ed6 /.github
parent33662eea9a8334ae7ef2328cb6338d37ef4f5867 (diff)
downloadthrift-790d4cb86c8c3eb3dd7232028c800771c01c6b06.tar.gz
THRIFT-5564: [CI] use GitHub workflow matrix to parallel cross tests (#2801)
* use github to parallel cross tests * fix syntax * correct syntax * split more * update fail-fast * fix swift'
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 911b3b505..c3d98b06d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -418,6 +418,12 @@ jobs:
- lib-go
- lib-python
runs-on: ubuntu-20.04
+ strategy:
+ matrix:
+ server_lang: ['java', 'kotlin', 'go', 'rs', 'swift']
+ # we always use comma join as many client langs as possible, to reduce the number of jobs
+ client_lang: ['java,kotlin', 'go,rs', 'swift']
+ fail-fast: false
steps:
- uses: actions/checkout@v3
@@ -480,13 +486,12 @@ jobs:
- name: Run cross test
env:
THRIFT_CROSSTEST_CONCURRENCY: 4
- PRECROSS_LANGS: java,kotlin,go,rs,swift
run: |
python test/test.py \
--retry-count 5 \
--skip-known-failures \
- --server $PRECROSS_LANGS \
- --client $PRECROSS_LANGS
+ --server ${{ matrix.server_lang }} \
+ --client ${{ matrix.client_lang }}
- name: Upload log files from failed cross test runs
uses: actions/upload-artifact@v3