Skip to content

Commit cf18e87

Browse files
authored
Create mc17.yml
1 parent 68e84ba commit cf18e87

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/mc17.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
./gradlew build
34+
- name: Build ExampleMod17
35+
run: |
36+
cd example-mod17
37+
chmod +x gradlew
38+
./gradlew build
39+
- name: Upload package
40+
uses: actions/upload-artifact@v2
41+
with:
42+
path: |
43+
panelstudio*/build/libs/panelstudio-*.jar
44+
example-mod*/build/libs/*.jar
45+
- name: Cleanup Gradle Cache
46+
run: |
47+
rm -rf ~/.gradle/caches/modules-2/modules-2.lock
48+
rm -rf ~/.gradle/caches/modules-2/gc.properties

0 commit comments

Comments
 (0)