diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 9de11be9dc..290c737548 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -52,9 +52,8 @@ jobs: tag: ${{ github.sha }} #prerelease: true draft: true - - build: + setup: runs-on: ubuntu-latest steps: - name: Checkout repository @@ -76,11 +75,49 @@ jobs: gradle-build-scan-report: false - name: Setup Ketting run: ./gradlew setup + - name: Upload projects artifact + uses: actions/upload-artifact@v3 + with: + name: projects-src + path: | + projects/ + build: + needs: setup + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Setup Java 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Cache .gradle + uses: burrunan/gradle-cache-action@v1 + with: + # Enable concurrent cache save and restore + # Default is concurrent=false for better log readability + concurrent: true + # Disable caching of $HOME/.gradle/caches/*.*/generated-gradle-jars + save-generated-gradle-jars: false + # Disable publishing Gradle Build Scan URL to job report + gradle-build-scan-report: false + - name: Download project source from setup + uses: actions/download-artifact@v3 + with: + name: projects-src + - name: Move to correct place + run: mv artifacts/projects-src/* . + - name: Delete projects-src artifact to not make mojang angry + if: ${{ always() }} + uses: geekyeggo/delete-artifact@v2 + with: + name: projects-src - name: Build Ketting Jar run: ./gradlew kettingJar - name: Upload build artifact uses: actions/upload-artifact@v3 with: - name: ${{ matrix.name }} + name: build path: | projects/forge/build/libs/ diff --git a/build.gradle b/build.gradle index 0205b836d1..83da5725b7 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ import org.objectweb.asm.Opcodes plugins { id 'org.cadixdev.licenser' version '0.6.1' id 'com.github.ben-manes.versions' version '0.46.0' - id 'net.minecraftforge.gradleutils' version '[2.1.3,)' + id 'net.minecraftforge.gradleutils' version '2.1.3' id 'eclipse' id 'de.undercouch.download' version '5.4.0' id 'net.minecraftforge.gradle.patcher' version '[6.0.14,6.2)' apply false