Rewrite to move to a Geyser extension

This commit is contained in:
rtm516 2023-04-25 22:07:05 +01:00
commit 91bc9657a4
No known key found for this signature in database
GPG key ID: 331715B8B007C67A
49 changed files with 1350 additions and 2796 deletions

36
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Build Pull Request
on:
push:
paths-ignore:
- '.idea/copyright/*.xml'
- '.gitignore'
- 'LICENSE'
- 'README.md'
- 'bind9/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
distribution: temurin
- name: Checkout repository
uses: actions/checkout@v1
- name: Build Geyser
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Archive artifacts
uses: actions/upload-artifact@v1
if: success()
with:
name: Build
path: build/libs/GeyserConnect.jar

View file

@ -1,29 +1,36 @@
name: Build Pull Request
on: [pull_request]
on:
pull_request:
paths-ignore:
- '.idea/copyright/*.xml'
- '.gitignore'
- 'LICENSE'
- 'README.md'
- 'bind9/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 16
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 16
- name: Build with Maven
run: mvn -B package
java-version: 17
distribution: temurin
- name: Checkout repository
uses: actions/checkout@v1
- name: Build Geyser
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Archive artifacts
uses: actions/upload-artifact@v1
if: success()
with:
name: Build
path: target/GeyserConnect.jar
path: build/libs/GeyserConnect.jar