mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
49052d73ce
* Start work on 1.16.4, doesn't compile yet * Update FAWE to 1.16.4 * Update GitHub ci build to 1.16.4 * Fix AsyncChunk * Update issue template for 1.16.4 Co-authored-by: dordsor21 <dordsor21@gmail.com> Co-authored-by: NotMyFault <mc.cache@web.de>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Java CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
java: [1.8, 1.11]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.2
|
|
- name: Setup Java JDK
|
|
uses: actions/setup-java@v1.4.2
|
|
with:
|
|
java-version: ${{ matrix.java }}
|
|
- name: Cache Gradle
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-${{ matrix.java }}-gradle-
|
|
- name: Cache local Maven repository
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.m2/repository
|
|
key: ${{ runner.os }}-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-${{ matrix.java }}-maven-
|
|
- name: Cache BuildTools decompiled code
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: $GITHUB_WORKSPACE/work
|
|
key: ${{ runner.os }}-buildtools
|
|
restore-keys: |
|
|
${{ runner.os }}-buildtools
|
|
- name: Test enviornment
|
|
run: echo $GITHUB_WORKSPACE
|
|
- name: Download BuildTools
|
|
run: wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
|
- name: Run BuildTools
|
|
run: java -jar BuildTools.jar --rev 1.16.4
|
|
- name: Test with Gradle
|
|
run: ./gradlew clean build sourcesJar javadocJar
|
|
|