mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-26 18:39:23 +00:00
Update ConfigurationMaster-API repo
This commit is contained in:
36
.github/workflows/build-1214.yml
vendored
36
.github/workflows/build-1214.yml
vendored
@@ -2,50 +2,48 @@ name: Build Leaf 1.21.4
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["ver/1.21.4"]
|
||||
|
||||
env:
|
||||
GRAALVM_ARGS: "-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector"
|
||||
branches: [ "ver/1.21.4" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2204
|
||||
env:
|
||||
RUN_NUMBER: ${{ github.run_number }}
|
||||
|
||||
GRAALVM_ARGS: "-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector"
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@main
|
||||
|
||||
|
||||
- name: Set up GraalVM JDK 21
|
||||
uses: graalvm/setup-graalvm@main
|
||||
with:
|
||||
java-version: 21
|
||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
cache: gradle
|
||||
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config --global user.email "no-reply@github.com"
|
||||
git config --global user.name "Github Actions"
|
||||
|
||||
|
||||
- name: Apply patches
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="${{ env.GRAALVM_ARGS }}" applyAllPatches --stacktrace --no-daemon
|
||||
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="$GRAALVM_ARGS" applyAllPatches --stacktrace --no-daemon
|
||||
|
||||
- name: Create MojmapPaperclipJar
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="${{ env.GRAALVM_ARGS }}" createMojmapPaperclipJar --stacktrace --no-daemon
|
||||
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="$GRAALVM_ARGS" createMojmapPaperclipJar --stacktrace --no-daemon
|
||||
|
||||
- name: Create ReobfPaperclipJar
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="${{ env.GRAALVM_ARGS }}" -Dpaperweight.debug=true createReobfPaperclipJar --stacktrace --no-daemon
|
||||
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="$GRAALVM_ARGS" -Dpaperweight.debug=true createReobfPaperclipJar --stacktrace --no-daemon
|
||||
|
||||
- name: Rename Paperclip JARs
|
||||
run: |
|
||||
mv leaf-server/build/libs/leaf-paperclip-1.21.4-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.4-$RUN_NUMBER-mojmap.jar
|
||||
mv leaf-server/build/libs/leaf-paperclip-1.21.4-R0.1-SNAPSHOT-reobf.jar ./leaf-1.21.4-$RUN_NUMBER-reobf.jar
|
||||
|
||||
|
||||
- name: Publish API
|
||||
continue-on-error: true
|
||||
run: |
|
||||
@@ -56,16 +54,16 @@ jobs:
|
||||
./gradlew publish
|
||||
# Uncomment when ready to implement:
|
||||
# ./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true
|
||||
|
||||
|
||||
- name: Upload Leaf as build artifact
|
||||
uses: actions/upload-artifact@main
|
||||
with:
|
||||
name: Leaf 1.21.4
|
||||
path: ./leaf-1.21.4-*.jar
|
||||
|
||||
|
||||
- name: Prepare jar for release
|
||||
run: mv ./leaf-1.21.4-$RUN_NUMBER-mojmap.jar ./leaf-1.21.4-$RUN_NUMBER.jar
|
||||
|
||||
|
||||
- name: Release Leaf
|
||||
# TODO: Replace with a maintained action as marvinpinto/action-automatic-releases is archived
|
||||
# Recommended alternatives: softprops/action-gh-release or ncipollo/release-action
|
||||
|
||||
23
.github/workflows/build-pr.yml
vendored
23
.github/workflows/build-pr.yml
vendored
@@ -7,9 +7,14 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GRAALVM_ARGS: "-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- name: Set up JDK
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@main
|
||||
|
||||
- name: Set up GraalVM JDK 21
|
||||
uses: graalvm/setup-graalvm@main
|
||||
with:
|
||||
java-version: 21
|
||||
@@ -19,21 +24,23 @@ jobs:
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Configure Git
|
||||
run: git config --global user.email "no-reply@github.com" && git config --global user.name "Github Actions"
|
||||
run: |
|
||||
git config --global user.email "no-reply@github.com"
|
||||
git config --global user.name "Github Actions"
|
||||
|
||||
- name: Apply patches
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector" applyAllPatches --stacktrace --no-daemon
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="$GRAALVM_ARGS" applyAllPatches --stacktrace --no-daemon
|
||||
- name: Create MojmapPaperclipJar
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector" createMojmapPaperclipJar --stacktrace --no-daemon
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="$GRAALVM_ARGS" createMojmapPaperclipJar --stacktrace --no-daemon
|
||||
- name: Create ReobfPaperclipJar
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector" -Dpaperweight.debug=true createReobfPaperclipJar --stacktrace --no-daemon
|
||||
run: ./gradlew -Dorg.gradle.jvmargs="$GRAALVM_ARGS" -Dpaperweight.debug=true createReobfPaperclipJar --stacktrace --no-daemon
|
||||
|
||||
- name: Rename Paperclip Jar
|
||||
- name: Rename Paperclip JARs
|
||||
run: |
|
||||
mv leaf-server/build/libs/leaf-paperclip-1.21.4-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.4-mojmap.jar
|
||||
mv leaf-server/build/libs/leaf-paperclip-1.21.4-R0.1-SNAPSHOT-reobf.jar ./leaf-1.21.4-reobf.jar
|
||||
|
||||
- name: Upload Leaf
|
||||
- name: Upload Leaf as build artifact
|
||||
uses: actions/upload-artifact@main
|
||||
with:
|
||||
name: Leaf 1.21.4
|
||||
|
||||
Reference in New Issue
Block a user