mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-09-29 23:57:45 +02:00
fix github actions
This commit is contained in:
parent
83356ff855
commit
69c81688db
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -40,28 +40,14 @@ jobs:
|
||||
path: ~/.gradle
|
||||
key: ${{ runner.os }}-mavenCache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-openjdk-${{ matrix.java }}
|
||||
|
||||
- name: Setup Yatopia Project
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config --global user.email "ci@github.com"
|
||||
git config --global user.name "Github CI"
|
||||
git config --global gc.auto 0
|
||||
sudo chmod -R -f 777 ./gradlew
|
||||
./gradlew initGitSubmodules
|
||||
|
||||
- name: Get MC Version
|
||||
run: echo "::set-output name=mcver::$(cat "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: Paper/work/Minecraft/${{ steps.mcver.outputs.mcver }}
|
||||
key: ${{ hashFiles('Paper/work/BuildData/mappings/bukkit-$STEPS_MCVER_OUTPUTS_MCVER-cl.csrg') }}-${{ steps.mcver.outputs.mcver }}-${{ runner.os }}-openjdk-${{ matrix.java }}-minecraft-decomp
|
||||
|
||||
- name: Apply Patches
|
||||
run: |
|
||||
./gradlew setupUpstream
|
||||
./gradlew applyPatches
|
||||
|
||||
- name: Pull Maven Cache
|
||||
@ -73,11 +59,11 @@ jobs:
|
||||
|
||||
- name: Build Yatopia
|
||||
run: |
|
||||
./gradlew clean build paperclip --no-build-cache
|
||||
./gradlew generatePaperclipPatch
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Yatopia-${{ matrix.java }}
|
||||
path: yatopia-${{ steps.mcver.outputs.mcver }}-paperclip.jar
|
||||
path: yatopia-1.17-paperclip.jar
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user