[Actions] Define JAVA_HOME env variable

This commit is contained in:
SeanOMik 2021-07-15 16:03:47 -04:00 committed by GitHub
parent 6a15f02160
commit 23cd24b514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -27,9 +27,8 @@ jobs:
- name: Set up JDK 16 - name: Set up JDK 16
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
distribution: 'jdkfile' distribution: 'adopt'
jdkFile: ${{ runner.temp }}/java_package.tar.gz java-version: '16.0.1-9'
java-version: '16'
architecture: x64 architecture: x64
#- name: Compile Spigot #- name: Compile Spigot
# uses: SeanOMik/Action-SpigotMC@b23370e6a4c3e9cdd38b8d5bcd4a543f8c1e1c19 # uses: SeanOMik/Action-SpigotMC@b23370e6a4c3e9cdd38b8d5bcd4a543f8c1e1c19
@ -47,8 +46,12 @@ jobs:
run: | run: |
java -version java -version
- name: Install with Maven - name: Install with Maven
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/16.0.1-9/x64
run: | run: |
sudo mvn install sudo mvn install
- name: Build with Maven - name: Build with Maven
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/16.0.1-9/x64
run: | run: |
sudo mvn package sudo mvn package