From 0dd46b620b132f0cab8455370f3abb0dcab6567c Mon Sep 17 00:00:00 2001 From: ishland Date: Sun, 25 Oct 2020 11:28:42 +0800 Subject: [PATCH] Make Github Actions faster (#268) Co-authored-by: budgidiere --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c745a13..e75e2ae6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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