From 23cd24b5148925085f1197fa282852c7fc0f60e1 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 15 Jul 2021 16:03:47 -0400 Subject: [PATCH] [Actions] Define JAVA_HOME env variable --- .github/workflows/maven.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5483c11..b78f437 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,9 +27,8 @@ jobs: - name: Set up JDK 16 uses: actions/setup-java@v2 with: - distribution: 'jdkfile' - jdkFile: ${{ runner.temp }}/java_package.tar.gz - java-version: '16' + distribution: 'adopt' + java-version: '16.0.1-9' architecture: x64 #- name: Compile Spigot # uses: SeanOMik/Action-SpigotMC@b23370e6a4c3e9cdd38b8d5bcd4a543f8c1e1c19 @@ -47,8 +46,12 @@ jobs: run: | java -version - name: Install with Maven + env: + JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/16.0.1-9/x64 run: | sudo mvn install - name: Build with Maven + env: + JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/16.0.1-9/x64 run: | sudo mvn package