Yatopia/.github/workflows/build.yml

39 lines
849 B
YAML
Raw Normal View History

2020-02-26 17:29:12 +01:00
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 8]
2020-02-26 17:29:12 +01:00
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
2020-03-21 17:32:08 +01:00
uses: actions/setup-java@v1.3.0
with:
java-version: ${{ matrix.java }}
2020-02-26 17:29:12 +01:00
- name: Build YAPFA
run: |
git submodule init
2020-03-21 17:29:35 +01:00
git submodule update --init --recursive
2020-02-26 17:40:00 +01:00
git config --global user.email "ci@github.com"
git config --global user.name "Github CI"
2020-03-21 17:29:35 +01:00
yapfaDir=`pwd`
./patchPaper.sh
2020-03-21 17:29:35 +01:00
cd Tuinity
./tuinity jar
cd $yapfaDir
2020-02-26 17:29:12 +01:00
./yapfa patch
./yapfa build
2020-03-22 17:20:21 +01:00
./yapfa paperclip
- name: Upload Artifact
uses: actions/upload-artifact@v2-preview
with:
2020-05-23 16:19:40 +02:00
name: YAPFA-${{ matrix.java }}
path: yapfa-paperclip.jar