Files
DeltaZern/.gitea/workflows/build.yml
T
root a44cde7955
Build Delta / Build paperclip jar (push) Successful in 7m36s
ci: builder image ships git identity (applyFeaturePatches commits)
2026-09-30 09:02:25 +00:00

60 lines
1.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Build Delta
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
env:
JAVA_VERSION: "21"
jobs:
build:
name: Build paperclip jar
runs-on: ubuntu-latest
container:
# Локальный образ на хосте раннера: JDK 21 + node + git identity.
# В чистом eclipse-temurin нет node, и JS-экшен actions/checkout
# валит джобу с exitcode 127 (node: executable file not found).
# git identity обязательна: applyFeaturePatches делает commit и без неё
# падает с "Committer identity unknown".
image: delta-builder:jdk21
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false
- name: Setup gradle cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
.gradle
key: delta-gradle-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
delta-gradle-${{ github.ref_name }}-
# applyPatches and createMojmapPaperclipJar MUST be separate invocations:
# combined they fail with an implicit-dependency error on
# applyResourcePatches -> processResources.
- name: Apply patches
run: ./gradlew applyPatches --stacktrace
- name: Build paperclip jar
run: ./gradlew createMojmapPaperclipJar --stacktrace
- name: List artifacts
run: ls -la paper-server/build/libs/
- name: Upload jar
uses: actions/upload-artifact@v3
with:
name: delta-paperclip
path: |
paper-server/build/libs/paper-paperclip-*.jar
paper-server/build/libs/paper-server-*.jar
retention-days: 14
if-no-files-found: error