Skip to content

Commit 6652d23

Browse files
committed
Add build action.
1 parent 1585513 commit 6652d23

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Java CI with Gradle
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
java:
15+
- 17
16+
fail-fast: false
17+
steps:
18+
- name: Checkout
19+
uses: actions/[email protected]
20+
- name: 'Set up JDK ${{ matrix.java }}'
21+
uses: actions/[email protected]
22+
with:
23+
distribution: adopt
24+
java-version: '${{ matrix.java }}'
25+
- name: Cache Gradle
26+
uses: actions/[email protected]
27+
with:
28+
path: ~/.gradle/caches
29+
key: >-
30+
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*',
31+
'**/gradle-wrapper.properties') }}
32+
restore-keys: '${{ runner.os }}-gradle-'
33+
- name: Grant execute permission for gradlew
34+
run: chmod +x gradlew
35+
- name: Build the Jar
36+
run: './gradlew clean build'

0 commit comments

Comments
 (0)