File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on : [ push, pull_request, workflow_dispatch ]
4+
5+ jobs :
6+ Build :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - uses : actions/checkout@v4
11+ - name : Set up JDK 21
12+ uses : actions/setup-java@v4
13+ with :
14+ distribution : ' zulu'
15+ java-version : 21
16+ - name : Cache
17+ uses : actions/cache@v4
18+ with :
19+ path : |
20+ ~/.gradle/caches
21+ ~/.gradle/wrapper
22+ .gradle
23+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle') }}
24+ - name : Build with Gradle
25+ run : |
26+ chmod +x gradlew
27+ ./gradlew build
28+ - name : Upload artifacts
29+ uses : actions/upload-artifact@v4
30+ with :
31+ name : Artifacts
32+ path : |
33+ ${{ github.workspace }}/forge/build/libs
34+ ${{ github.workspace }}/fabric/build/libs
You can’t perform that action at this time.
0 commit comments