Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 7351683

Browse files
committed
Update Java CI in new core
1 parent 9a38498 commit 7351683

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

.github/workflows/gradle.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,43 @@
11
name: Java CI with Gradle
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
411

512
jobs:
613
build:
14+
715
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
java:
11-
- 17
12-
fail-fast: false
16+
1317
steps:
1418
- name: Checkout
15-
uses: actions/checkout@v3.5.2
16-
- name: 'Set up JDK ${{ matrix.java }}'
17-
uses: actions/setup-java@v3.11.0
19+
uses: actions/checkout@v3
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v3
1822
with:
19-
distribution: adopt
20-
java-version: '${{ matrix.java }}'
23+
java-version: '17'
24+
distribution: 'temurin'
2125
- name: Cache Gradle
2226
uses: actions/[email protected]
2327
with:
24-
path: ~/.gradle
28+
path: ~/.gradle/caches
2529
key: >-
2630
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*',
2731
'**/gradle-wrapper.properties') }}
2832
restore-keys: '${{ runner.os }}-gradle-'
29-
- name: Grant execute permission for gradlew
33+
- name: Make gradlew executable
3034
run: chmod +x gradlew
31-
- name: Build the Jar with Gradle and CheckStyle
32-
run: './gradlew clean shadowJar checkStyleMain'
35+
- name: Build with Gradle
36+
uses: gradle/gradle-build-action@bde650d6f1426615a60165575bc9cdad3e54d975
37+
with:
38+
arguments: shadowJar
3339
- name: Upload a Build Artifact
3440
uses: actions/[email protected]
3541
with:
36-
name: 'Successfully build EternalRTP JDK${{ matrix.java }}'
37-
path: build/libs/EternalRTP*.jar
42+
name: 'Successfully build EternalRTP'
43+
path: build/libs/*.jar

0 commit comments

Comments
 (0)