This repository was archived by the owner on Aug 30, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,13 +44,16 @@ jobs:
4444 shell : bash
4545 run : |
4646 set -euo pipefail
47+ REAL_JAVA_HOME="$JAVA_HOME"
4748 CI_JDK="$RUNNER_TEMP/jdk17-ignore"
4849 mkdir -p "$CI_JDK/bin"
49- cp "$JAVA_HOME /release" "$CI_JDK/release"
50- printf '#!/usr/bin/env sh\nexec "%s/bin/java" -XX:+IgnoreUnrecognizedVMOptions "$@"\n' "$JAVA_HOME " > "$CI_JDK/bin/java"
51- printf '#!/usr/bin/env sh\nexec "%s/bin/javac" "$@"\n' "$JAVA_HOME " > "$CI_JDK/bin/javac"
52- printf '#!/usr/bin/env sh\nexec "%s/bin/javadoc" "$@"\n' "$JAVA_HOME " > "$CI_JDK/bin/javadoc"
50+ cp "$REAL_JAVA_HOME /release" "$CI_JDK/release"
51+ printf '#!/usr/bin/env sh\nexec "%s/bin/java" -XX:+IgnoreUnrecognizedVMOptions "$@"\n' "$REAL_JAVA_HOME " > "$CI_JDK/bin/java"
52+ printf '#!/usr/bin/env sh\nexec "%s/bin/javac" "$@"\n' "$REAL_JAVA_HOME " > "$CI_JDK/bin/javac"
53+ printf '#!/usr/bin/env sh\nexec "%s/bin/javadoc" "$@"\n' "$REAL_JAVA_HOME " > "$CI_JDK/bin/javadoc"
5354 chmod +x "$CI_JDK/bin/java" "$CI_JDK/bin/javac" "$CI_JDK/bin/javadoc"
55+ echo "$CI_JDK/bin" >> "$GITHUB_PATH"
56+ echo "JAVA_HOME=$CI_JDK" >> "$GITHUB_ENV"
5457 echo "CI_JDK=$CI_JDK" >> "$GITHUB_ENV"
5558
5659 - name : 读取版本号
9295 echo "JAVA_HOME=$JAVA_HOME"
9396 echo "CI_JDK=$CI_JDK"
9497 java -version
95- ./gradlew --no-daemon --stacktrace -Dorg.gradle.java.installations.paths="$CI_JDK" reobfJar
98+ ./gradlew --no-daemon --stacktrace -Dorg.gradle.java.home="$CI_JDK" -Dorg.gradle.java. installations.paths="$CI_JDK" reobfJar
9699
97100 - name : 查找构建产物
98101 id : artifacts
You can’t perform that action at this time.
0 commit comments