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] 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