Skip to content

Commit eaf0b63

Browse files
committed
Revert "[Java] Use Zulu for EA build."
This reverts commit 8f7f088.
1 parent 8f7f088 commit eaf0b63

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

.github/workflows/ci.yml

+63-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
java: [ '8', '17', '21', '23-ea' ]
32+
java: [ '8', '17', '21' ]
3333
os: ['ubuntu-22.04', 'windows-latest', 'macos-14']
3434
steps:
3535
- name: Checkout code
@@ -84,3 +84,65 @@ jobs:
8484
with:
8585
name: crash-logs-${{ matrix.os }}-java-${{ matrix.java }}
8686
path: ${{ steps.copy_test_logs.outputs.dir }}
87+
88+
ea-build:
89+
name: Java ${{ matrix.java }} (${{ matrix.os }})
90+
runs-on: ${{ matrix.os }}
91+
strategy:
92+
fail-fast: false
93+
matrix:
94+
java: [ '23-ea' ]
95+
os: ['ubuntu-22.04', 'windows-latest', 'macos-14']
96+
steps:
97+
- name: Checkout code
98+
uses: actions/checkout@v4
99+
with:
100+
ref: ${{ github.sha }}
101+
- name: Cache Gradle dependencies
102+
uses: actions/cache@v4
103+
with:
104+
path: ~/.gradle/caches
105+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
106+
restore-keys: |
107+
${{ runner.os }}-gradle-
108+
- name: Cache Gradle wrappers
109+
uses: actions/cache@v4
110+
with:
111+
path: ~/.gradle/wrapper
112+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
113+
- name: Setup java
114+
uses: actions/setup-java@v4
115+
with:
116+
distribution: 'temurin'
117+
java-version: ${{ matrix.java }}
118+
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION (Linux/macOS)
119+
if: runner.os == 'Linux' || runner.os == 'macOS'
120+
run: |
121+
java -Xinternalversion
122+
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
123+
echo "BUILD_JAVA_VERSION=${{ matrix.java }}" >> $GITHUB_ENV
124+
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION (Windows)
125+
if: runner.os == 'Windows'
126+
run: |
127+
java -Xinternalversion
128+
echo "BUILD_JAVA_HOME=$env:JAVA_HOME" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
129+
echo "BUILD_JAVA_VERSION=${{ matrix.java }}" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
130+
- name: Setup java 8 to run the Gradle script
131+
uses: actions/setup-java@v4
132+
with:
133+
distribution: 'zulu'
134+
java-version: 8
135+
- name: Build with Gradle
136+
run: ./gradlew
137+
- name: Copy test logs
138+
id: copy_test_logs
139+
if: failure()
140+
run: |
141+
echo "dir=build/test_logs" >> $GITHUB_OUTPUT
142+
./gradlew copyTestLogs
143+
- name: Upload crash logs
144+
if: always() && steps.copy_test_logs.outputs.dir == 'build/test_logs'
145+
uses: actions/upload-artifact@v3
146+
with:
147+
name: crash-logs-ea-${{ matrix.os }}-java-${{ matrix.java }}
148+
path: ${{ steps.copy_test_logs.outputs.dir }}

0 commit comments

Comments
 (0)