mirror of
https://github.com/SparklyPower/SparklyPaper.git
synced 2025-12-30 12:29:07 +00:00
40 lines
1023 B
YAML
40 lines
1023 B
YAML
# From Airplane: https://github.com/TECHNOVE/Airplane/blob/master/.github/workflows/airplanelite.yml
|
|
# Thanks Airplane! :3
|
|
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 SparklyPaper
|
|
run: |
|
|
git config --global user.email "you@example.com"
|
|
git config --global user.name "Your Name"
|
|
./gradlew applyPatches
|
|
./gradlew build
|
|
./gradlew paperclip
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: SparklyPaper-JDK${{ matrix.java }}
|
|
path: launcher-sparklypaper.jar |