forked from GeyserMC/Floodgate
-
Notifications
You must be signed in to change notification settings - Fork 6
61 lines (51 loc) · 1.98 KB
/
Copy pathpullrequest.yml
File metadata and controls
61 lines (51 loc) · 1.98 KB
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
59
60
61
name: Build Pull Request
on:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Run the full build (incl. the per-platform plugin startup tests) on more than one JDK so a
# JDK-version-dependent DI/reflective startup regression is caught in CI. 17 is the primary
# (release) toolchain and the only one that publishes artifacts; 21 is the highest JDK
# Gradle 8.5 can run on. The Java-26-class reflective/DI failures (Guice 7 provisioning,
# Libp2pEndpointRuntime constructor arity) are additionally guarded by signature-level
# reflective tests that are independent of the running JDK, so they are covered even though
# the build cannot run on JDK 26 until Gradle is upgraded.
java: ['17', '21']
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for git describe
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew build
- name: Archive artifacts (Connect Bungee)
uses: actions/upload-artifact@v4
if: success() && matrix.java == '17'
with:
name: Connect Bungee
path: bungee/build/libs/connect-bungee.jar
- name: Archive artifacts (Connect Spigot)
uses: actions/upload-artifact@v4
if: success() && matrix.java == '17'
with:
name: Connect Spigot
path: spigot/build/libs/connect-spigot.jar
- name: Archive artifacts (Connect Velocity)
uses: actions/upload-artifact@v4
if: success() && matrix.java == '17'
with:
name: Connect Velocity
path: velocity/build/libs/connect-velocity.jar