[ci-skip] use github actions and fix readme (#696)

This commit is contained in:
Oharass
2021-10-02 01:29:27 -05:00
committed by GitHub
parent eefd3525cd
commit 6f68ff3091
2 changed files with 12 additions and 11 deletions

View File

@@ -1,19 +1,20 @@
name: Build Purpur
on: [ pull_request ]
name: Build
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/setup-java@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '16'
distribution: temurin
java-version: 17
cache: gradle
- name: Configure Git
run: git config --global user.email "no-reply@github.com" && git config --global user.name "Github Actions"
- name: Apply patches
- name: Apply Patches
run: ./gradlew applyPatches --stacktrace
- name: Build
run: ./gradlew build --stacktrace
run: ./gradlew build --stacktrace