From 771c216a7d3648098d335dc458c63c37c5629f6b Mon Sep 17 00:00:00 2001 From: lukflug <47392064+lukflug@users.noreply.github.com> Date: Sun, 3 Oct 2021 19:54:33 +0200 Subject: [PATCH 1/8] Update gradle.yml --- .github/workflows/gradle.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 711bb79..fed23df 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -29,6 +29,34 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build + - name: Build PanelStudio-MC17 + run: | + cd panelstudio-mc17 + ./gradlew build + - name: Build ExampleMod12 + run: | + cd ../example-mod12 + ./gradlew build + - name: Build ExampleMod16-Fabric + run: | + cd ../example-mod16-fabric + ./gradlew build + - name: Build ExampleMod16-Forge + run: | + cd ../example-mod16-forge + ./gradlew build + - name: Build ExampleMod8-Fabric + run: | + cd ../example-mod8-fabric + ./gradlew build + - name: Build ExampleMod8-Forge + run: | + cd ../example-mod8-forge + ./gradlew build + - name: Build ExampleMod17 + run: | + cd ../example-mod17 + ./gradlew build - name: Upload package uses: actions/upload-artifact@v2 with: From 738bfbebc9452663bcecea8beee24325519289a9 Mon Sep 17 00:00:00 2001 From: lukflug <47392064+lukflug@users.noreply.github.com> Date: Sun, 3 Oct 2021 19:57:18 +0200 Subject: [PATCH 2/8] Update gradle.yml --- .github/workflows/gradle.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index fed23df..1f17a00 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -32,30 +32,37 @@ jobs: - name: Build PanelStudio-MC17 run: | cd panelstudio-mc17 + chmod +x gradlew ./gradlew build - name: Build ExampleMod12 run: | cd ../example-mod12 + chmod +x gradlew ./gradlew build - name: Build ExampleMod16-Fabric run: | cd ../example-mod16-fabric + chmod +x gradlew ./gradlew build - name: Build ExampleMod16-Forge run: | cd ../example-mod16-forge + chmod +x gradlew ./gradlew build - name: Build ExampleMod8-Fabric run: | cd ../example-mod8-fabric + chmod +x gradlew ./gradlew build - name: Build ExampleMod8-Forge run: | cd ../example-mod8-forge + chmod +x gradlew ./gradlew build - name: Build ExampleMod17 run: | cd ../example-mod17 + chmod +x gradlew ./gradlew build - name: Upload package uses: actions/upload-artifact@v2 From af54ab9c96829019becf3d8e857c529c1822d643 Mon Sep 17 00:00:00 2001 From: lukflug <47392064+lukflug@users.noreply.github.com> Date: Sun, 3 Oct 2021 20:03:43 +0200 Subject: [PATCH 3/8] Update gradle.yml --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1f17a00..5763c04 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Set up JDK 16 uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: 16 - name: Cache Gradle packages uses: actions/cache@v2 with: From 958547d79d83623ddf3b8e8c67c5fe38bd0da832 Mon Sep 17 00:00:00 2001 From: lukflug <47392064+lukflug@users.noreply.github.com> Date: Sun, 3 Oct 2021 20:09:06 +0200 Subject: [PATCH 4/8] Update gradle.yml --- .github/workflows/gradle.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5763c04..a9cb2f8 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 16 + - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: - java-version: 16 + java-version: 1.8 - name: Cache Gradle packages uses: actions/cache@v2 with: @@ -29,11 +29,6 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build - - name: Build PanelStudio-MC17 - run: | - cd panelstudio-mc17 - chmod +x gradlew - ./gradlew build - name: Build ExampleMod12 run: | cd ../example-mod12 @@ -59,15 +54,12 @@ jobs: cd ../example-mod8-forge chmod +x gradlew ./gradlew build - - name: Build ExampleMod17 - run: | - cd ../example-mod17 - chmod +x gradlew - ./gradlew build - name: Upload package uses: actions/upload-artifact@v2 with: - path: panelstudio*/build/libs/panelstudio-*.jar + path: | + panelstudio*/build/libs/panelstudio-*.jar + example-mod*/build/libs/*.jar - name: Cleanup Gradle Cache run: | rm -rf ~/.gradle/caches/modules-2/modules-2.lock From f9894c2582870ae621b6e21d9fc6c397d7e7ad36 Mon Sep 17 00:00:00 2001 From: lukflug <47392064+lukflug@users.noreply.github.com> Date: Sun, 3 Oct 2021 20:11:46 +0200 Subject: [PATCH 5/8] Update gradle.yml --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index a9cb2f8..3be4694 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -31,7 +31,7 @@ jobs: run: ./gradlew build - name: Build ExampleMod12 run: | - cd ../example-mod12 + cd example-mod12 chmod +x gradlew ./gradlew build - name: Build ExampleMod16-Fabric From 68e84bae0d6e2edc5ef7c058eed4efa98f388e70 Mon Sep 17 00:00:00 2001 From: lukflug <47392064+lukflug@users.noreply.github.com> Date: Sun, 3 Oct 2021 20:15:14 +0200 Subject: [PATCH 6/8] Update gradle.yml --- .github/workflows/gradle.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 3be4694..00ae35f 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -36,22 +36,22 @@ jobs: ./gradlew build - name: Build ExampleMod16-Fabric run: | - cd ../example-mod16-fabric + cd example-mod16-fabric chmod +x gradlew ./gradlew build - name: Build ExampleMod16-Forge run: | - cd ../example-mod16-forge + cd example-mod16-forge chmod +x gradlew ./gradlew build - name: Build ExampleMod8-Fabric run: | - cd ../example-mod8-fabric + cd example-mod8-fabric chmod +x gradlew ./gradlew build - name: Build ExampleMod8-Forge run: | - cd ../example-mod8-forge + cd example-mod8-forge chmod +x gradlew ./gradlew build - name: Upload package From cf18e8791ece52b88358f14fb04fa2dddcacffd7 Mon Sep 17 00:00:00 2001 From: lukflug <47392064+lukflug@users.noreply.github.com> Date: Sun, 3 Oct 2021 20:22:47 +0200 Subject: [PATCH 7/8] Create mc17.yml --- .github/workflows/mc17.yml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/mc17.yml diff --git a/.github/workflows/mc17.yml b/.github/workflows/mc17.yml new file mode 100644 index 0000000..2f6e81b --- /dev/null +++ b/.github/workflows/mc17.yml @@ -0,0 +1,48 @@ +# This workflow will build a Java project with Gradle +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle + +name: Java CI with Gradle for Java 16 + +on: [push,pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 16 + uses: actions/setup-java@v1 + with: + java-version: 16 + - name: Cache Gradle packages + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*','**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: | + cd panelstudio-mc17 + ./gradlew build + - name: Build ExampleMod17 + run: | + cd example-mod17 + chmod +x gradlew + ./gradlew build + - name: Upload package + uses: actions/upload-artifact@v2 + with: + path: | + panelstudio*/build/libs/panelstudio-*.jar + example-mod*/build/libs/*.jar + - name: Cleanup Gradle Cache + run: | + rm -rf ~/.gradle/caches/modules-2/modules-2.lock + rm -rf ~/.gradle/caches/modules-2/gc.properties From 31fa05b25e4986642ebc9d812970dafc31d59461 Mon Sep 17 00:00:00 2001 From: lukflug <47392064+lukflug@users.noreply.github.com> Date: Sun, 3 Oct 2021 20:24:49 +0200 Subject: [PATCH 8/8] Update mc17.yml --- .github/workflows/mc17.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/mc17.yml b/.github/workflows/mc17.yml index 2f6e81b..c431d44 100644 --- a/.github/workflows/mc17.yml +++ b/.github/workflows/mc17.yml @@ -30,6 +30,7 @@ jobs: - name: Build with Gradle run: | cd panelstudio-mc17 + chmod +x gradlew ./gradlew build - name: Build ExampleMod17 run: |