Update maven.yml

This commit is contained in:
James Peters 2022-01-12 22:12:05 +00:00 committed by GitHub
parent 665c6b3d2c
commit 4e2f8bd7b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 3 deletions

View File

@ -17,12 +17,24 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Cache BuildTools
id: cache-buildtools
uses: actions/cache@v2
with:
path: |
~/.m2
${GITHUB_WORKSPACE}/BuildTools/Bukkit
${GITHUB_WORKSPACE}/BuildTools/CraftBukkit
${GITHUB_WORKSPACE}/BuildTools/Spigot
${GITHUB_WORKSPACE}/BuildTools/BuildData
key: buildtools-cache
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Run BuildTools Pre 1.17
working-directory: ./BuildTools
run: |
@ -38,7 +50,7 @@ jobs:
with:
java-version: '16'
distribution: 'adopt'
cache: maven
- name: Run BuildTools 1.17
working-directory: ./BuildTools
run: |
@ -54,7 +66,7 @@ jobs:
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Run BuildTools 1.18+
working-directory: ./BuildTools
run: |