Skip to content

Commit 3e82477

Browse files
committed
ci(actions): add java 24 build
Signed-off-by: ok-coder1 <[email protected]>
1 parent f9c7fc3 commit 3e82477

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,30 @@ jobs:
5757
with:
5858
name: matrix-blocks-java-21
5959
path: build/libs/*.jar
60+
if-no-files-found: error
61+
62+
build-java-24:
63+
name: Build on Java 24
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: Checkout repository
67+
uses: actions/checkout@v4
68+
with:
69+
fetch-depth: 0
70+
- name: Validate Gradle wrapper
71+
uses: gradle/actions/wrapper-validation@v4
72+
- name: Setup JDK
73+
uses: actions/setup-java@v4
74+
with:
75+
java-version: 24
76+
distribution: microsoft
77+
- name: Make Gradle wrapper executable
78+
run: chmod +x ./gradlew
79+
- name: Build
80+
run: ./gradlew build
81+
- name: Capture build artifacts
82+
uses: actions/upload-artifact@v4
83+
with:
84+
name: matrix-blocks-java-24
85+
path: build/libs/*.jar
6086
if-no-files-found: error

.github/workflows/pr-compile.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,25 @@ jobs:
4545
run: ./gradlew compileJava
4646
- name: Compile client-side Java
4747
run: ./gradlew compileClientJava
48+
49+
compile-java-24:
50+
name: Compile on Java 24
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout repository
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
- name: Validate Gradle wrapper
58+
uses: gradle/actions/wrapper-validation@v4
59+
- name: Setup JDK
60+
uses: actions/setup-java@v4
61+
with:
62+
java-version: 24
63+
distribution: microsoft
64+
- name: Make Gradle wrapper executable
65+
run: chmod +x ./gradlew
66+
- name: Compile Java
67+
run: ./gradlew compileJava
68+
- name: Compile client-side Java
69+
run: ./gradlew compileClientJava

0 commit comments

Comments
 (0)