This repository has been archived by the owner on May 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
58 lines (57 loc) · 1.99 KB
/
standalone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: standalone
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/[email protected]
with:
java-version: 8
distribution: zulu
- name: Build with Gradle
run: ./gradlew :standalone:build
- name: Upload build JARs
uses: actions/[email protected]
with:
name: build-jars
path: standalone/build/libs/*
test-geyser:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download standalone JAR
uses: actions/download-artifact@v3
with:
name: build-jars
- name: Set up JDK 8
uses: actions/[email protected]
with:
java-version: 8
distribution: zulu
- name: Download Geyser
run: curl -Lo Geyser-Standalone.jar https://download.geysermc.org/v2/projects/geyser/versions/latest/builds/latest/downloads/standalone
- name: Downgrade Geyser
run: java -jar JavaDowngrader-Standalone-1.0.0-SNAPSHOT.jar -i Geyser-Standalone.jar -o Geyser-Standalone-out.jar -v 8
- name: Try Geyser
run: echo geyser stop | java -jar Geyser-Standalone-out.jar
test-paperclip:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download standalone JAR
uses: actions/download-artifact@v3
with:
name: build-jars
- name: Set up JDK 8
uses: actions/[email protected]
with:
java-version: 8
distribution: zulu
- name: Download Paperclip
run: wget https://api.papermc.io/v2/projects/paper/versions/1.19.4/builds/536/downloads/paper-1.19.4-536.jar
- name: Downgrade Paperclip
run: java -jar JavaDowngrader-Standalone-1.0.0-SNAPSHOT.jar -i paper-1.19.4-536.jar -o paperclip-downgraded.jar -v 8
- name: Run Paperclip
run: java -Dpaperclip.patchonly=true -cp paperclip-downgraded.jar io.papermc.paperclip.Paperclip