File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # Automatically build the project and run any configured tests for every push
2+ # and submitted pull request. This can help catch issues that only occur on
3+ # certain platforms or Java versions, and provides a first line of defence
4+ # against bad commits.
5+
6+ name : build
7+ on : [pull_request, push]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/cache@v4
14+ with :
15+ path : |
16+ ~/.gradle/loom-cache
17+ ~/.gradle/caches
18+ ~/.gradle/wrapper
19+ key : gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
20+ restore-keys : |
21+ gradle-
22+ - name : checkout repository
23+ uses : actions/checkout@v4
24+ - name : validate gradle wrapper
25+ uses : gradle/actions/wrapper-validation@v3
26+ - name : setup jdk
27+ uses : actions/setup-java@v4
28+ with :
29+ java-version : 21
30+ distribution : ' microsoft'
31+ - name : make gradle wrapper executable
32+ run : chmod +x ./gradlew
33+ - name : build
34+ run : ./gradlew build
35+ - name : capture build artifacts
36+ uses : actions/upload-artifact@v4
37+ with :
38+ name : Artifacts
39+ path : build/libs/
You can’t perform that action at this time.
0 commit comments