Update .forgejo/workflows/build.yaml

This commit is contained in:
Stachelbeere1248 2025-04-10 22:21:30 +02:00
parent 77a4db1a2b
commit 06c705759d

View file

@ -16,18 +16,15 @@ jobs:
- name: set up jdk
run: |
JDK_VERSION="8"
PLATFORM="linux"
ARCH="x64"
INSTALL_DIR="/opt/java"
mkdir -p "$INSTALL_DIR"
DOWNLOAD_URL="https://cdn.azul.com/zulu/bin/zulu8.84.0.15-ca-jdk8.0.442-linux_x64.tar.gz"
DOWNLOAD_URL="https://cdn.azul.com/zulu/bin/zulu21.40.17-ca-jdk21.0.6-linux_x64.tar.gz"
echo "Downloading from $DOWNLOAD_URL"
curl -L "$DOWNLOAD_URL" | tar -xz -C "$INSTALL_DIR"
- name: build
run: JAVA_HOME="/opt/java/zulu8.84.0.15-ca-jdk8.0.442-linux_x64" ./gradlew build
run: JAVA_HOME="/opt/java/zulu21.40.17-ca-jdk21.0.6-linux_x64" ./gradlew build
- name: capture build artifacts
uses: https://code.forgejo.org/forgejo/upload-artifact@v3