Files
ParchmentMC/.github/workflows/pr-build.yml
2021-05-13 20:58:00 -04:00

46 lines
1.1 KiB
YAML

name: Build PR
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [16]
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: JDK 16 Maven Shade Workaround
run: |
git clone https://github.com/apache/maven-shade-plugin.git
cd maven-shade-plugin
mvn clean install
cd ..
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Patch Parchment
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git submodule update --init --recursive
./parchment ghjar
- uses: actions/upload-artifact@v2
with:
name: Parchment-PR${{ github.event.pull_request.number }}-JDK${{ matrix.java }}
path: parchment-paperclip.jar