Make Github Actions faster (#268)

Co-authored-by: budgidiere <sgidiere@gmail.com>
This commit is contained in:
ishland 2020-10-25 11:28:42 +08:00 committed by GitHub
parent ab975588e5
commit 0dd46b620b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -26,6 +26,7 @@ jobs:
strategy:
matrix:
java: [15, 11, 8]
fail-fast: false
steps:
- name: Cancel Previous Runs
@ -54,6 +55,15 @@ jobs:
git config --global user.name "Github CI"
sudo chmod -R -f 777 scripts
./yatopia init
- name: Get MC Version
run: echo "::set-output name=mcver::$(cat "Tuinity/Paper/work/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)"
id: mcver
- name: Pull Minecraft Decompile Cache
uses: actions/cache@v2
id: decompile-cache
with:
path: Tuinity/Paper/work/Minecraft/${{ steps.mcver.outputs.mcver }}
key: ${{ steps.mcver.outputs.mcver }}-${{ runner.os }}-minecraft-decomp
- name: Build Yatopia
run: |
./yatopia full