Skip to content

Commit

Permalink
switch to env var
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 26, 2024
1 parent 6e5c4b8 commit ed4379a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build

on: [ workflow_dispatch, pull_request, push ]

env:
JAVA_VERSION: 17

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -10,7 +13,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Java
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> "$GITHUB_ENV"
run: echo "JAVA_HOME=$JAVA_HOME_${{ env.JAVA_VERSION }}_X64" >> "$GITHUB_ENV"

- name: Loom Cache
uses: actions/cache@v4
Expand Down Expand Up @@ -78,5 +81,5 @@ jobs:
modloader: ${{ matrix.loader }}
regex: .*${{ matrix.loader }}.*
mc-runtime-test: none
java: 17
java: ${{ env.JAVA_VERSION }}
fabric-api: ${{ matrix.loader == 'fabric' && env.FABRIC_API_VERSION || 'none' }}

0 comments on commit ed4379a

Please sign in to comment.