File tree Expand file tree Collapse file tree 2 files changed +26
-77
lines changed Expand file tree Collapse file tree 2 files changed +26
-77
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # This workflow will build a Java project with Brachyra
2
- # For more information see: docs/development/brachyura.md
3
-
4
- name : Java CI with Brachyura
1
+ name : Build mod
5
2
6
3
on : [push, pull_request]
7
4
8
5
jobs :
9
6
build :
10
7
runs-on : ubuntu-latest
11
-
12
8
steps :
13
- - uses : actions/checkout@v2
14
-
15
- - name : Set up JDK 17
16
- uses : actions/setup-java@v1
17
- with :
18
- java-version : 17
19
-
20
- - name : Cache Brachyura directory
21
- uses : actions/cache@v2
22
- with :
23
- path : |
24
- .brachyura
25
- ~/.brachyura
26
- key : ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }}
27
- restore-keys : ${{ runner.os }}-brachyura
28
-
29
- - name : Build with Brachyura
30
- run : java -jar brachyura-bootstrap-0.jar build
31
-
32
- - name : Upload built JAR
33
- uses : actions/upload-artifact@v3
34
- with :
35
- name : iris-artifacts
36
- path : build/libs
9
+ - uses : actions/checkout@v2
10
+ with :
11
+ fetch-depth : 0
12
+ - uses : actions/setup-java@v3
13
+ with :
14
+ distribution : ' temurin'
15
+ java-version : ' 17'
16
+ - name : Initialize caches
17
+ uses : actions/cache@v3
18
+ with :
19
+ path : |
20
+ ~/.gradle/caches
21
+ ~/.gradle/loom-cache
22
+ ~/.gradle/wrapper
23
+ key : ${{ runner.os }}-build-snapshot-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
24
+ restore-keys : |
25
+ ${{ runner.os }}-build-snapshot-
26
+ - name : Grant execute permission for gradlew
27
+ run : chmod +x gradlew
28
+ - name : Build the mod
29
+ run : ./gradlew --no-daemon build
30
+ - uses : actions/upload-artifact@v2
31
+ with :
32
+ name : Oculus-Artifacts
33
+ path : build/libs
You can’t perform that action at this time.
0 commit comments