Skip to content

Commit 0690e56

Browse files
committed
Update CI for Java 25
1 parent 52f5cab commit 0690e56

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,51 @@ jobs:
196196
name: ${{ matrix.mod-loader }} ${{ matrix.mc-version }}
197197
path: ./MinecraftMod/${{ matrix.mod-loader }}/${{ matrix.mc-version }}/build/libs/*.jar
198198

199+
buildJava25:
200+
name: Build ${{ matrix.mod-loader }} ${{ matrix.mc-version }}
201+
runs-on: ubuntu-latest
202+
needs: buildCore
203+
204+
# Matrix of jobs to run
205+
strategy:
206+
fail-fast: false
207+
matrix:
208+
mod-loader: ['fabric', 'neoforge']
209+
mc-version: ["26.1"]
210+
211+
steps:
212+
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
213+
- uses: actions/checkout@v4
214+
215+
# Setup JDK
216+
- name: Set up JDK 25
217+
uses: actions/setup-java@v4
218+
with:
219+
distribution: 'microsoft'
220+
java-version: 25
221+
222+
- name: Set up Gradle
223+
uses: gradle/actions/setup-gradle@v3
224+
225+
# Download Core
226+
- name: Download Core Artifact
227+
uses: actions/download-artifact@v4
228+
with:
229+
name: maven
230+
path: ~/.m2/repository
231+
232+
# Build Minecraft Mod
233+
- name: Build Mod
234+
working-directory: ./MinecraftMod/${{ matrix.mod-loader }}/${{ matrix.mc-version }}
235+
run: './gradlew build --no-daemon'
236+
237+
# Upload Artifact
238+
- name: Upload Artifact
239+
uses: actions/upload-artifact@v4
240+
with:
241+
name: ${{ matrix.mod-loader }} ${{ matrix.mc-version }}
242+
path: ./MinecraftMod/${{ matrix.mod-loader }}/${{ matrix.mc-version }}/build/libs/*.jar
243+
199244
buildPlugin:
200245
name: Build Stream Deck Plugin
201246
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)