Use jdk file for action

This commit is contained in:
SeanOMik 2021-07-11 12:49:32 -04:00 committed by GitHub
parent 99d4979678
commit 5d6cd45c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -22,11 +22,15 @@ jobs:
restore-keys: ${{ runner.os }}-m2 restore-keys: ${{ runner.os }}-m2
- name: Checkout submodules - name: Checkout submodules
uses: textbook/git-checkout-submodule-action@2.1.1 uses: textbook/git-checkout-submodule-action@2.1.1
- name: Download OpenJDK 16
run: wget -O $RUNNER_TEMP/java_package.tar.gz https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk16u-2021-05-08-12-45/OpenJDK16U-jdk_x64_linux_hotspot_2021-05-08-12-45.tar.gz
- name: Set up JDK 16 - name: Set up JDK 16
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
distribution: 'jdkfile'
jdkFile: ${{ runner.temp }}/java_package.tar.gz
java-version: '16' java-version: '16'
distribution: 'adopt' architecture: x64
#- name: Compile Spigot #- name: Compile Spigot
# uses: SeanOMik/Action-SpigotMC@b23370e6a4c3e9cdd38b8d5bcd4a543f8c1e1c19 # uses: SeanOMik/Action-SpigotMC@b23370e6a4c3e9cdd38b8d5bcd4a543f8c1e1c19
# with: # with: