Skip to content

Commit

Permalink
chore: upgrade ci jdks to 17+
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Jun 2, 2024
1 parent 78ed2b0 commit 9c6148f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
java: [ 8, 11 ]
java: [ 17 ]
fail-fast: false
max-parallel: 64
name: fast test on Java ${{ matrix.java }} OS ${{ matrix.os }}
Expand Down
37 changes: 9 additions & 28 deletions .github/workflows/ci_by_multiply_java_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,22 @@ jobs:
with:
submodules: recursive

- name: setup java8
uses: actions/setup-java@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 8
# https://github.com/actions/setup-java?tab=readme-ov-file#install-multiple-jdks
java-version: |
17
21
22
distribution: zulu
# only first java setup need enable cache
cache: maven
- name: setup java11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: microsoft
- name: setup java17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: microsoft
- name: setup java19
uses: actions/setup-java@v3
with:
java-version: 19
distribution: temurin
- name: setup java20
uses: actions/setup-java@v3
with:
java-version: 20
distribution: zulu

- run: scripts/integration_test
env:
JAVA8_HOME: ${{ env.JAVA_HOME_8_X64 }}
JAVA11_HOME: ${{ env.JAVA_HOME_11_X64 }}
JAVA17_HOME: ${{ env.JAVA_HOME_17_X64 }}
JAVA19_HOME: ${{ env.JAVA_HOME_19_X64 }}
JAVA20_HOME: ${{ env.JAVA_HOME_20_X64 }}
JAVA21_HOME: ${{ env.JAVA_HOME_21_X64 }}
JAVA22_HOME: ${{ env.JAVA_HOME_22_X64 }}

- name: remove cola self maven install files
run: rm -rf $HOME/.m2/repository/com/alibaba/{cola,craftsman}
6 changes: 1 addition & 5 deletions scripts/integration_test
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ source "$BASH_BUDDY_ROOT/lib/java_build_utils.sh"
# ci build logic
################################################################################

readonly default_build_jdk_version=11
readonly default_build_jdk_version=17
# shellcheck disable=SC2034
readonly JDK_VERSIONS=(
8
"$default_build_jdk_version"
17
19
20
)
readonly default_jh_var_name="JAVA${default_build_jdk_version}_HOME"

Expand Down

0 comments on commit 9c6148f

Please sign in to comment.