Skip to content

Commit f75cfa0

Browse files
committed
made build steps sequentual by area to avoid too many in parallel
1 parent 8a10bc3 commit f75cfa0

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -66,44 +66,44 @@ jobs:
6666
if [ -e $d/gradlew ]; then cd $d && ./gradlew clean build; fi;
6767
done
6868
69-
test-multi-env:
70-
needs: compile
71-
strategy:
72-
matrix:
73-
# https://whichjdk.com/
74-
# https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#selecting-a-java-distribution
75-
# add "corretto", "liberica", "microsoft", "zulu" only when needed
76-
dist: ["temurin"]
77-
# fix issue on "macos-latest", "windows-latest"
78-
os: ["ubuntu-latest"]
79-
fail-fast: false
80-
runs-on: ${{ matrix.os }}
81-
timeout-minutes: 10
82-
name: ${{ matrix.dist }} JDK 17 on ${{ matrix.os }}
83-
steps:
84-
- name: Check out repository
85-
uses: actions/checkout@v4
86-
- name: Check out PR
87-
run: |
88-
git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 \
89-
origin pull/${{ github.event.inputs.pr }}/merge:merged-pr && git checkout merged-pr
90-
if: github.event.inputs.pr != ''
91-
- name: Install JDK 17 and Maven
92-
uses: actions/setup-java@v4
93-
with:
94-
distribution: ${{ matrix.dist }}
95-
java-version: 17
96-
cache: "maven"
97-
- name: Test libraries
98-
run: mvn --batch-mode --no-transfer-progress -Dj8 -DskipITs verify
99-
- name: Upload test results
100-
uses: actions/upload-artifact@v4
101-
if: failure()
102-
with:
103-
name: result ${{ github.job }}
104-
path: |
105-
**/target/failsafe-reports
106-
**/target/surefire-reports
69+
# test-multi-env:
70+
# needs: compile
71+
# strategy:
72+
# matrix:
73+
# # https://whichjdk.com/
74+
# # https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#selecting-a-java-distribution
75+
# # add "corretto", "liberica", "microsoft", "zulu" only when needed
76+
# dist: ["temurin"]
77+
# # fix issue on "macos-latest", "windows-latest"
78+
# os: ["ubuntu-latest"]
79+
# fail-fast: false
80+
# runs-on: ${{ matrix.os }}
81+
# timeout-minutes: 10
82+
# name: ${{ matrix.dist }} JDK 17 on ${{ matrix.os }}
83+
# steps:
84+
# - name: Check out repository
85+
# uses: actions/checkout@v4
86+
# - name: Check out PR
87+
# run: |
88+
# git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 \
89+
# origin pull/${{ github.event.inputs.pr }}/merge:merged-pr && git checkout merged-pr
90+
# if: github.event.inputs.pr != ''
91+
# - name: Install JDK 17 and Maven
92+
# uses: actions/setup-java@v4
93+
# with:
94+
# distribution: ${{ matrix.dist }}
95+
# java-version: 17
96+
# cache: "maven"
97+
# - name: Test libraries
98+
# run: mvn --batch-mode --no-transfer-progress -Dj8 -DskipITs verify
99+
# - name: Upload test results
100+
# uses: actions/upload-artifact@v4
101+
# if: failure()
102+
# with:
103+
# name: result ${{ github.job }}
104+
# path: |
105+
# **/target/failsafe-reports
106+
# **/target/surefire-reports
107107

108108
test-native-image:
109109
runs-on: ubuntu-latest
@@ -200,7 +200,7 @@ jobs:
200200
201201
test-with-cloud:
202202
runs-on: ubuntu-latest
203-
needs: compile
203+
needs: test-jdbc-driver
204204
strategy:
205205
matrix:
206206
# most recent LTS releases as well as latest stable builds
@@ -265,7 +265,7 @@ jobs:
265265
266266
test-jdbc-driver:
267267
runs-on: ubuntu-latest
268-
needs: compile
268+
needs: test-java-client
269269
strategy:
270270
matrix:
271271
clickhouse: ["25.3", "25.8", "latest"]
@@ -328,7 +328,7 @@ jobs:
328328
329329
test-r2dbc-driver:
330330
runs-on: ubuntu-latest
331-
needs: compile
331+
needs: test-jdbc-driver
332332
strategy:
333333
matrix:
334334
clickhouse: ["25.3", "25.8", "latest"]

0 commit comments

Comments
 (0)