Skip to content

Commit aee494f

Browse files
Add Java CI workflow on JDK 21
Co-Authored-By: Kyu Choi <kyuhwanchoi0423@gmail.com>
1 parent 4aa9e56 commit aee494f

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
tags:
8+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
9+
pull_request:
10+
branches:
11+
- '**'
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: zulu
24+
java-version: '21'
25+
- uses: actions/cache@v4
26+
with:
27+
path: |
28+
~/.gradle/caches
29+
~/.gradle/wrapper
30+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
31+
restore-keys: |
32+
${{ runner.os }}-gradle-
33+
- name: Build with Gradle
34+
run: ./gradlew clean build

0 commit comments

Comments
 (0)