mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +00:00
(improvement)(build) CI supports JDK 21. (#1548)
This commit is contained in:
9
.github/workflows/centos-ci.yml
vendored
9
.github/workflows/centos-ci.yml
vendored
@@ -1,5 +1,4 @@
|
|||||||
name: supersonic CentOS CI
|
name: supersonic CentOS CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -16,7 +15,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [8, 11] # 定义要测试的JDK版本
|
java-version: [8, 11, 21] # 定义要测试的JDK版本
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -36,10 +35,14 @@ jobs:
|
|||||||
for i in {1..5}; do
|
for i in {1..5}; do
|
||||||
dnf install -y java-1.8.0-openjdk-devel maven && break || sleep 15
|
dnf install -y java-1.8.0-openjdk-devel maven && break || sleep 15
|
||||||
done
|
done
|
||||||
else
|
elif [ ${{ matrix.java-version }} -eq 11 ]; then
|
||||||
for i in {1..5}; do
|
for i in {1..5}; do
|
||||||
dnf install -y java-11-openjdk-devel maven && break || sleep 15
|
dnf install -y java-11-openjdk-devel maven && break || sleep 15
|
||||||
done
|
done
|
||||||
|
elif [ ${{ matrix.java-version }} -eq 21 ]; then
|
||||||
|
for i in {1..5}; do
|
||||||
|
dnf install -y java-21-openjdk-devel maven && break || sleep 15
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Verify Java and Maven installation
|
- name: Verify Java and Maven installation
|
||||||
|
|||||||
2
.github/workflows/mac-ci.yml
vendored
2
.github/workflows/mac-ci.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [8, 11] # Define the JDK versions to test
|
java-version: [8, 11, 21] # Define the JDK versions to test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
2
.github/workflows/ubuntu-ci.yml
vendored
2
.github/workflows/ubuntu-ci.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [8, 11] # 定义要测试的JDK版本
|
java-version: [8, 11, 21] # 定义要测试的JDK版本
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
4
.github/workflows/windows-ci.yml
vendored
4
.github/workflows/windows-ci.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [8, 11]
|
java-version: [8, 11, 21] # Add JDK 21 to the matrix
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java-version }}
|
java-version: ${{ matrix.java-version }}
|
||||||
distribution: 'adopt'
|
distribution: 'adopt' # You might need to change this if 'adopt' doesn't support JDK 21
|
||||||
|
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user