Skip to content

Commit 10fb210

Browse files
committed
Add GitHub Actions workflow for Java 24 build
- Uses Oracle JDK 24 Early Access - Builds and packages the project with Maven - Runs on push to main and pull requests
1 parent c8ebb3c commit 10fb210

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/maven.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Java CI with Maven
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up JDK 24
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '24-ea'
20+
distribution: 'oracle'
21+
22+
- name: Cache Maven dependencies
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.m2
26+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: ${{ runner.os }}-m2
28+
29+
- name: Build with Maven
30+
run: mvn clean compile
31+
32+
- name: Package JAR
33+
run: mvn package

0 commit comments

Comments
 (0)