mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-05 10:23:15 +01:00
39 lines
849 B
YAML
39 lines
849 B
YAML
name: CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
java: [11, 8]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK ${{ matrix.java }}
|
|
uses: actions/setup-java@v1.3.0
|
|
with:
|
|
java-version: ${{ matrix.java }}
|
|
- name: Build YAPFA
|
|
run: |
|
|
git submodule init
|
|
git submodule update --init --recursive
|
|
git config --global user.email "ci@github.com"
|
|
git config --global user.name "Github CI"
|
|
yapfaDir=`pwd`
|
|
./patchPaper.sh
|
|
cd Tuinity
|
|
./tuinity jar
|
|
cd $yapfaDir
|
|
./yapfa patch
|
|
./yapfa build
|
|
./yapfa paperclip
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v2-preview
|
|
with:
|
|
name: YAPFA-${{ matrix.java }}
|
|
path: yapfa-paperclip.jar
|