Initial commit
This commit is contained in:
38
.github/workflows/pr-build.yml
vendored
Normal file
38
.github/workflows/pr-build.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Build PR
|
||||
|
||||
on: [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
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
|
||||
- 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 jar
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Parchment-PR${{ github.event.pull_request.number }}-JDK${{ matrix.java }}
|
||||
path: parchment-paperclip.jar
|
||||
38
.github/workflows/push-build.yml
vendored
Normal file
38
.github/workflows/push-build.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Build main
|
||||
|
||||
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
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
|
||||
- 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 jar
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Parchment-JDK${{ matrix.java }}
|
||||
path: parchment-paperclip.jar
|
||||
Reference in New Issue
Block a user