name: CI on: [push, pull_request] 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 }} - uses: actions/cache@v1.1.2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-maven- - 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 mvn -N install ./tuinity patch 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