Files
BoatParty/.gitea/workflows/ci.yml
T
Michael BurgessandClaude Sonnet 5 38fbdd22ab
CI / build (push) Failing after 1m31s
Fix CI: run Gradle on JDK 21, let toolchain resolve JDK 25
Gradle 8.11.1 can target JDK 25 via toolchains but can't launch its
own daemon on it yet. Install both JDKs in CI with 21 last so it
becomes JAVA_HOME, while JDK 25 stays available for the toolchain via
JAVA_HOME_25_X64 (same fix validated in the local build).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-08-08 08:45:34 -04:00

39 lines
972 B
YAML

name: CI
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Gradle 8.11.1 cannot run its own daemon on JDK 25 yet, but the plugin's
# toolchain targets 25 (required by the Paper 26.2 API). Install both:
# JDK 21 last so it becomes JAVA_HOME (runs Gradle itself), while JDK 25
# stays discoverable via JAVA_HOME_25_X64 for Gradle's toolchain to use.
- name: Set up JDKs
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
25
21
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew build --no-daemon
- name: Upload plugin jar
uses: actions/upload-artifact@v4
with:
name: BoatParty
path: build/libs/BoatParty-*.jar