From 7133d39fb3f277ea88bc2633434224e164b9b68e Mon Sep 17 00:00:00 2001 From: TheWhiteDog9487 Date: Fri, 12 Dec 2025 11:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DGithub=20Action=E4=BD=BF?= =?UTF-8?q?=E7=94=A8Windows=E4=BD=9C=E4=B8=BA=E8=BF=90=E8=A1=8C=E5=AE=BF?= =?UTF-8?q?=E4=B8=BB=E7=8E=AF=E5=A2=83=E6=97=B6=E6=97=A0=E6=B3=95=E8=BF=9B?= =?UTF-8?q?=E8=A1=8CGraalVM=20Native=20Image=E7=BC=96=E8=AF=91=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E5=BE=88=E9=9A=BE=E7=BB=B7=E5=BE=97?= =?UTF-8?q?=E4=BD=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52b5eff..d87b9cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,16 @@ jobs: if: runner.os != 'Windows' run: chmod +x ./gradlew - name: 构建原生镜像 + if: runner.os == 'Windows' + env: + # Needed for Windows; to resolve issue with temp folder during native image build, due to relativization + # problem when different drives are used, such as in GHA runners. + # https://github.com/graalvm/native-build-tools/issues/754 + # https://github.com/bric3/jufmt/commit/feb040f159b9a5168d677455218b787d9b644ee2 + GRADLE_OPTS: -Djava.io.tmpdir=${{ runner.temp }} + run: ./gradlew nativeCompile -x test + - name: 构建原生镜像 + if: runner.os != 'Windows' run: ./gradlew nativeCompile -x test - name: 上传构建产物 uses: actions/upload-artifact@v4