Yatopia/.github/workflows/build.yml

81 lines
2.1 KiB
YAML
Raw Normal View History

2020-08-01 18:14:57 +02:00
name: Yatopia Build Script
2020-02-26 17:29:12 +01:00
2020-07-18 16:16:33 +02:00
on:
push:
paths-ignore:
- '*.md'
2020-10-30 19:41:56 +01:00
- 'Jenkinsfile'
2020-07-18 16:27:44 +02:00
branches:
2020-11-07 08:15:01 +01:00
- ver/1.16.4
2020-09-11 08:03:00 +02:00
- ver/1.16.3
2020-08-12 15:40:19 +02:00
- ver/1.16.2
- ver/1.16.1
2020-11-26 12:22:19 +01:00
- leaflight/ver/1.16.4
2020-07-18 16:16:33 +02:00
pull_request:
paths-ignore:
- '*.md'
2020-10-30 19:41:56 +01:00
- 'Jenkinsfile'
2020-07-18 16:27:44 +02:00
branches:
2020-11-07 08:15:01 +01:00
- ver/1.16.4
2020-09-11 08:03:00 +02:00
- ver/1.16.3
- ver/1.16.1
2020-08-12 15:40:19 +02:00
- ver/1.16.2
2020-11-26 12:22:19 +01:00
- leaflight/ver/1.16.4
2020-02-26 17:29:12 +01:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [15, 11, 8]
fail-fast: false
2020-02-26 17:29:12 +01:00
steps:
2020-07-18 16:16:33 +02:00
- name: Cancel Previous Runs
2020-07-18 18:59:48 +02:00
uses: styfle/cancel-workflow-action@0.4.1
2020-07-18 16:16:33 +02:00
with:
access_token: ${{ github.token }}
2020-07-18 18:57:55 +02:00
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
2020-07-18 18:57:55 +02:00
uses: actions/setup-java@v1
2020-03-21 17:32:08 +01:00
with:
java-version: ${{ matrix.java }}
- name: Pull Maven Cache
2020-07-18 18:03:26 +02:00
uses: actions/cache@v2
id: maven-cache
2020-07-11 22:31:40 +02:00
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
2020-07-18 19:45:04 +02:00
- uses: s4u/maven-settings-action@v2.1.0
2020-07-17 17:39:18 +02:00
name: Use ${{ matrix.java }} as the java target
2020-07-17 05:18:15 +02:00
with:
2020-07-17 17:39:18 +02:00
properties: '[{"maven.compiler.target": "${{ matrix.java }}"}]'
2020-08-01 18:14:57 +02:00
- name: Setup Yatopia Project
run: |
git config --global user.email "ci@github.com"
git config --global user.name "Github CI"
[WIP] Better Patch System (#18) * Update build.yml * Remove 3rd party patches * Add Upsteam Submodules * Fix patches * ? * Fix patches * Add Fast Init script * Lots of stuff also it's broke * more broken * fixes * mor stuff * gfhfgh hg * fix patch * fix up script * update submodule * add papercut * update tuinity * update gitmodules * fix var name * fix more var stuff * some how it's not deleting shit anymore * should now use the branch it just made why are we doing this again? * now it does thing thing * return previous so YAPFA can use it * ok now it really does the thing * for REAL it does the thing * don't do the thing because it causes too many problems * fix api * work * use better patching for YAPFA patches * fix better patching * more fixes * new patches stuff * remove old 3rd parry patches add removed akarin patches * make new branch for making patches * hopefully build patches correctly * fix gitignore and add config patches * remove papercut files * fix some weirdness * fix bug * time to do some fixin' :eyes: * New Patch System Rebased Patches * fix full build * exit 1 * fix * Remove patch * Hopefully fix compile errors * fixes * this might work * don't use rej for our patches * tmp disable cache * some times case sensitivity is dumb * my sanity is at an all time low :) * dfg * readd cahce * fix? * Update Upstream * fix perms * fix * fix api * Redo API * rm folders * fix villager brain patch * emc explosion pref * fixed aikar's shit * betterfix * fix lagggg * Origami * Origami Fixes * Update readme * test async path finding * WIP Async Path Finding * WIP fix async path finding * same as bellow * same * update to newer funcs * fix newer funcs * fix author * Updates, Fixes, and new patches * fixes * possibly async flying path finding * minor asnyc pathfinding fix * test remove non asnyc path finder * WIP make all path finding async * Rename everything * Exec flag * Rebuild hashes * remove dupe patch * fix? * Fix packages, redirect config * old nav class is now async and back * add getchatcolor.getbyid and handle patches with a . in them better Co-authored-by: tr7zw <tr7zw@live.de> Co-authored-by: Unknown <unknown@example.com> Co-authored-by: Ovydux <68059159+Ovydux@users.noreply.github.com>
2020-08-03 18:48:42 +02:00
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
2020-08-01 18:14:57 +02:00
- name: Build Yatopia
2020-02-26 17:29:12 +01:00
run: |
[WIP] Better Patch System (#18) * Update build.yml * Remove 3rd party patches * Add Upsteam Submodules * Fix patches * ? * Fix patches * Add Fast Init script * Lots of stuff also it's broke * more broken * fixes * mor stuff * gfhfgh hg * fix patch * fix up script * update submodule * add papercut * update tuinity * update gitmodules * fix var name * fix more var stuff * some how it's not deleting shit anymore * should now use the branch it just made why are we doing this again? * now it does thing thing * return previous so YAPFA can use it * ok now it really does the thing * for REAL it does the thing * don't do the thing because it causes too many problems * fix api * work * use better patching for YAPFA patches * fix better patching * more fixes * new patches stuff * remove old 3rd parry patches add removed akarin patches * make new branch for making patches * hopefully build patches correctly * fix gitignore and add config patches * remove papercut files * fix some weirdness * fix bug * time to do some fixin' :eyes: * New Patch System Rebased Patches * fix full build * exit 1 * fix * Remove patch * Hopefully fix compile errors * fixes * this might work * don't use rej for our patches * tmp disable cache * some times case sensitivity is dumb * my sanity is at an all time low :) * dfg * readd cahce * fix? * Update Upstream * fix perms * fix * fix api * Redo API * rm folders * fix villager brain patch * emc explosion pref * fixed aikar's shit * betterfix * fix lagggg * Origami * Origami Fixes * Update readme * test async path finding * WIP Async Path Finding * WIP fix async path finding * same as bellow * same * update to newer funcs * fix newer funcs * fix author * Updates, Fixes, and new patches * fixes * possibly async flying path finding * minor asnyc pathfinding fix * test remove non asnyc path finder * WIP make all path finding async * Rename everything * Exec flag * Rebuild hashes * remove dupe patch * fix? * Fix packages, redirect config * old nav class is now async and back * add getchatcolor.getbyid and handle patches with a . in them better Co-authored-by: tr7zw <tr7zw@live.de> Co-authored-by: Unknown <unknown@example.com> Co-authored-by: Ovydux <68059159+Ovydux@users.noreply.github.com>
2020-08-03 18:48:42 +02:00
./yatopia full
- name: Upload Artifact
if: github.ref != 'refs/heads/ver/1.16.4'
uses: actions/upload-artifact@v2
with:
name: Yatopia-${{ matrix.java }}
2020-11-07 08:15:01 +01:00
path: yatopia-1.16.4-paperclip.jar