This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +23
-17
lines changed Expand file tree Collapse file tree 1 file changed +23
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : Java CI with Gradle
2
2
3
- on : [ push, pull_request ]
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ permissions :
10
+ contents : read
4
11
5
12
jobs :
6
13
build :
14
+
7
15
runs-on : ubuntu-latest
8
- strategy :
9
- matrix :
10
- java :
11
- - 17
12
- fail-fast : false
16
+
13
17
steps :
14
18
- 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
18
22
with :
19
- distribution : adopt
20
- java-version : ' ${{ matrix.java }} '
23
+ java-version : ' 17 '
24
+ distribution : ' temurin '
21
25
- name : Cache Gradle
22
26
23
27
with :
24
- path : ~/.gradle
28
+ path : ~/.gradle/caches
25
29
key : >-
26
30
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*',
27
31
'**/gradle-wrapper.properties') }}
28
32
restore-keys : ' ${{ runner.os }}-gradle-'
29
- - name : Grant execute permission for gradlew
33
+ - name : Make gradlew executable
30
34
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
33
39
- name : Upload a Build Artifact
34
40
35
41
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
You can’t perform that action at this time.
0 commit comments