We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a75c1b7 commit d26b410Copy full SHA for d26b410
1 file changed
.github/workflows/build.yml
@@ -0,0 +1,34 @@
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
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
31
+ name: Artifacts
32
33
+ ${{ github.workspace }}/forge/build/libs
34
+ ${{ github.workspace }}/fabric/build/libs
0 commit comments