Files
saturnclient/.gitea/workflows/check.yml
T
selimaj-devandclaude f73f7e733c
Check / compile (pull_request) Successful in 18m7s
Add a version port script and a compile check for pull requests
- scripts/port.sh ports a change made under versions/<from>/src to the
  other versions with `git apply --3way`: clean where files match,
  normal conflicts only where a version really differs. Supports
  uncommitted changes or --commit, --to, --dry-run, and detects changes
  already applied.
- .gitea/workflows/check.yml compiles every version on pull requests and
  pushes to master (--continue reports all failing versions).
- VERSION_GUIDE.md documents the layout, porting, and adding a version.

Closes #17, closes #18

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-26 02:41:22 +02:00

32 lines
807 B
YAML

name: Check
# Compiles every Minecraft version on pull requests and on pushes to master,
# so a change that breaks one version (e.g. a missed or bad port) fails before
# it's merged instead of in the release build.
on:
pull_request:
push:
branches: [master]
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: gradle
- name: Compile all versions
run: |
chmod +x gradlew
# --continue reports every version that fails, not just the first.
./gradlew compileJava --no-daemon --stacktrace --continue