45 lines
1019 B
YAML
45 lines
1019 B
YAML
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 }}
|
|
|
|
- name: Setup eden-api
|
|
run: |
|
|
git clone https://github.com/Pugabyte/eden-api
|
|
cd eden-api && mvn clean install
|
|
cd .. && rm -rf eden-api
|
|
|
|
- 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
|