add manual edit warning at top of config.json #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 1.21.0 PreRelease Build and Release | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+\+1.21.0.pre' | |
jobs: | |
build-java-and-linux-amd64: | |
# uses ubuntu 22 | |
# but we need to retain 20 compat for main releases | |
# should be increased for future mc version channels as we can't support it forver | |
# 32gb memory needed for instrumenting | |
runs-on: ubicloud-standard-8 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Setup GraalVM | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '23' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Echo Versions and Paths | |
run: | | |
echo "GRAALVM_HOME: $GRAALVM_HOME" | |
echo "JAVA_HOME: $JAVA_HOME" | |
java --version | |
native-image --version | |
- name: Elevate wrapper permissions | |
run: chmod +x ./gradlew | |
- name: Export Tag | |
run: | | |
echo "RELEASE_TAG=${{ github.ref_name }}" >> "$GITHUB_ENV" | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
dependency-graph: generate-and-submit | |
- name: Build ZenithProxy Java | |
run: ./gradlew jarBuild | |
- name: Upload Java Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ZenithProxy-java | |
path: build/libs/ZenithProxy.jar | |
- name: Enable GraalVM Profile Instrumenting | |
run: | | |
echo "GRAALVM_PGO_INSTRUMENT=true" >> "$GITHUB_ENV" | |
- name: Build ZenithProxy Linux Native | |
run: ./gradlew nativeCompile | |
- name: Elevate binary permissions | |
run: chmod +x build/native/nativeCompile/* | |
- name: Zip Binary And Libs | |
run: zip -j ZenithProxy.zip build/native/nativeCompile/* | |
- name: Upload Linux Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ZenithProxy-linux | |
path: ZenithProxy.zip | |
release-artifacts: | |
needs: | |
- build-java-and-linux-amd64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download job artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
merge-multiple: true | |
path: artifacts/ | |
- name: Get Release Tags | |
run: | | |
j_tag="$(sed 's/\+/\+java./' <<< ${{ github.ref_name }})" | |
echo "JAVA_TAG=$j_tag" >> "$GITHUB_ENV" | |
l_tag="$(sed 's/\+/\+linux./' <<< ${{ github.ref_name }})" | |
echo "LINUX_TAG=$l_tag" >> "$GITHUB_ENV" | |
- name: Publish Java Artifact | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ env.JAVA_TAG }} | |
artifacts: "artifacts/*.jar" | |
prerelease: true | |
body: "File upload not for users. **Use the Launcher:** https://github.com/rfresh2/ZenithProxy/releases/tag/launcher-v3" | |
- name: Publish Linux Artifact | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ env.LINUX_TAG }} | |
artifacts: "artifacts/ZenithProxy.zip" | |
prerelease: true | |
body: "File upload not for users. **Use the Launcher:** https://github.com/rfresh2/ZenithProxy/releases/tag/launcher-v3" |