on: push: tags: - '*' jobs: build: runs-on: docker steps: - name: checkout repository uses: actions/checkout@v3 - name: make gradle wrapper executable run: chmod +x ./gradlew - name: set up jdk run: | INSTALL_DIR="/opt/java" mkdir -p "$INSTALL_DIR" JDK8_URL="https://cdn.azul.com/zulu/bin/zulu8.84.0.15-ca-jdk8.0.442-linux_x64.tar.gz" JRE17_URL="https://cdn.azul.com/zulu/bin/zulu17.56.15-ca-jre17.0.14-linux_x64.tar.gz" echo "Downloading JDK8 from $JDK8_URL" curl -L "$JDK8_URL" | tar -xz -C "$INSTALL_DIR" echo "Downloading JRE17 from $JRE17_URL" curl -L "$JRE17_URL" | tar -xz -C "$INSTALL_DIR" - name: build run: JDK8=/opt/java/zulu8.84.0.15-ca-jdk8.0.442-linux_x64 JAVA_HOME=/opt/java/zulu17.56.15-ca-jre17.0.14-linux_x64 ./gradlew build - name: capture build artifacts uses: https://code.forgejo.org/forgejo/upload-artifact@v3 with: name: Artifacts path: 'build/libs'