From 10dae276a81343e52851ac7730d14ae3f0b8529b Mon Sep 17 00:00:00 2001 From: TechPizza <23627133+TechPizzaDev@users.noreply.github.com> Date: Mon, 16 Oct 2023 09:26:37 +0200 Subject: [PATCH] Cleaned up build.yml Reverted to Java 17 --- .github/workflows/build.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1fee0a78..a8212315 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,28 +12,34 @@ jobs: matrix: # Use these Java versions java: [ - 21, # Current Java LTS & minimum supported by Minecraft + 17, # LTS & minimum supported by Minecraft ] - # and run on both Linux and Windows os: [ubuntu-latest] runs-on: ${{ matrix.os }} + steps: - name: checkout repository uses: actions/checkout@v3 + - name: validate gradle wrapper uses: gradle/wrapper-validation-action@v1 + - name: setup jdk ${{ matrix.java }} uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} distribution: 'microsoft' + cache: 'gradle' + - name: make gradle wrapper executable if: ${{ runner.os != 'Windows' }} run: chmod +x ./gradlew + - name: build - run: ./gradlew build + run: ./gradlew build --no-daemon + - name: capture build artifacts - if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS + if: ${{ runner.os == 'Linux' && matrix.java == '21' }} uses: actions/upload-artifact@v3 with: name: Artifacts