File tree Expand file tree Collapse file tree 2 files changed +77
-1
lines changed Expand file tree Collapse file tree 2 files changed +77
-1
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,37 @@ jobs:
2929      run : chmod +x gradlew 
3030    - name : Build with Gradle 
3131      run : ./gradlew build 
32+     - name : Build ExampleMod12 
33+       run : | 
34+         cd example-mod12 
35+         chmod +x gradlew 
36+         ./gradlew build 
37+ name : Build ExampleMod16-Fabric 
38+       run : | 
39+         cd example-mod16-fabric 
40+         chmod +x gradlew 
41+         ./gradlew build 
42+ name : Build ExampleMod16-Forge 
43+       run : | 
44+         cd example-mod16-forge 
45+         chmod +x gradlew 
46+         ./gradlew build 
47+ name : Build ExampleMod8-Fabric 
48+       run : | 
49+         cd example-mod8-fabric 
50+         chmod +x gradlew 
51+         ./gradlew build 
52+ name : Build ExampleMod8-Forge 
53+       run : | 
54+         cd example-mod8-forge 
55+         chmod +x gradlew 
56+         ./gradlew build 
3257name : Upload package 
3358      uses : actions/upload-artifact@v2 
3459      with :
35-         path : panelstudio*/build/libs/panelstudio-*.jar 
60+         path : | 
61+           panelstudio*/build/libs/panelstudio-*.jar 
62+           example-mod*/build/libs/*.jar 
3663name : Cleanup Gradle Cache   
3764      run : | 
3865        rm -rf ~/.gradle/caches/modules-2/modules-2.lock 
Original file line number Diff line number Diff line change 1+ #  This workflow will build a Java project with Gradle
2+ #  For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+ 
4+ name : Java CI with Gradle for Java 16 
5+ 
6+ on : [push,pull_request] 
7+ 
8+ jobs :
9+   build :
10+ 
11+     runs-on : ubuntu-latest 
12+ 
13+     steps :
14+     - uses : actions/checkout@v2 
15+     - name : Set up JDK 16 
16+       uses : actions/setup-java@v1 
17+       with :
18+         java-version : 16 
19+     - name : Cache Gradle packages 
20+       uses : actions/cache@v2 
21+       with :
22+         path : | 
23+           ~/.gradle/caches 
24+           ~/.gradle/wrapper 
25+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*','**/gradle-wrapper.properties') }} 
26+         restore-keys : | 
27+           ${{ runner.os }}-gradle- 
28+ name : Grant execute permission for gradlew 
29+       run : chmod +x gradlew 
30+     - name : Build with Gradle 
31+       run : | 
32+         cd panelstudio-mc17 
33+         chmod +x gradlew 
34+         ./gradlew build 
35+ name : Build ExampleMod17 
36+       run : | 
37+         cd example-mod17 
38+         chmod +x gradlew 
39+         ./gradlew build 
40+ name : Upload package 
41+       uses : actions/upload-artifact@v2 
42+       with :
43+         path : | 
44+           panelstudio*/build/libs/panelstudio-*.jar 
45+           example-mod*/build/libs/*.jar 
46+ name : Cleanup Gradle Cache   
47+       run : | 
48+         rm -rf ~/.gradle/caches/modules-2/modules-2.lock 
49+         rm -rf ~/.gradle/caches/modules-2/gc.properties 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments