Skip to content

Add BLAKE3 hash algorithm option for Secure Seed #928

Add BLAKE3 hash algorithm option for Secure Seed

Add BLAKE3 hash algorithm option for Secure Seed #928

Workflow file for this run

name: Build Pull Request
on:
pull_request:
branches: [ "ver/1.21.11" ]
jobs:
build:
# Run workflow only on main repo
if: ${{ github.repository == 'Winds-Studio/Leaf' }}
runs-on: blacksmith-8vcpu-ubuntu-2404
env:
MC_VERSION: "1.21.11"
GRAALVM_ARGS: "-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector"
steps:
- name: Checkout repository
uses: useblacksmith/checkout@v1
- name: Set up GraalVM JDK 21
uses: graalvm/setup-graalvm@v1
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
- name: Create MojmapPaperclipJar
run: ./gradlew -Dorg.gradle.jvmargs="${{ env.GRAALVM_ARGS }}" createMojmapPaperclipJar --stacktrace --no-daemon
- name: Rename Paperclip JARs
run: |
mv leaf-server/build/libs/leaf-paperclip-${{ env.MC_VERSION }}-R0.1-SNAPSHOT-mojmap.jar ./leaf-${{ env.MC_VERSION }}.jar
- name: Upload Leaf
uses: actions/upload-artifact@v7
with:
path: ./leaf-${{ env.MC_VERSION }}.jar
archive: false