From fd31f42c9083252fd59c825640da1fe396c9e0a0 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Wed, 23 Oct 2024 10:53:41 -0400 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e106b297..ea0e1bb70 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,14 +5,12 @@ on: [ workflow_dispatch, pull_request, push ] jobs: build: runs-on: ubuntu-latest - env: - JAVA_VERSION: 17 steps: - name: Checkout Repository uses: actions/checkout@v4 - name: Setup Java - run: echo "JAVA_HOME=$JAVA_HOME_${{ env.JAVA_VERSION }}_X64" >> "$GITHUB_ENV" + run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> "$GITHUB_ENV" - name: Loom Cache uses: actions/cache@v4 @@ -84,5 +82,5 @@ jobs: modloader: ${{ matrix.loader }} regex: .*${{ matrix.loader }}.* mc-runtime-test: none - java: ${{ env.JAVA_VERSION }} + java: 17 fabric-api: ${{ matrix.loader == 'fabric' && env.FABRIC_API_VERSION || 'none' }}