Yatopia/.github/workflows/build.yml
2020-05-23 16:19:40 +02:00

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