From 455638c4cfd4bb55bdac4690fb8153e9af4260e7 Mon Sep 17 00:00:00 2001 From: songyinyin Date: Wed, 25 Oct 2023 18:09:18 +0800 Subject: [PATCH] =?UTF-8?q?test=20github=20action=20v26=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=9B=B4=E5=A4=9A=E7=B1=BB=E5=9E=8B=E7=9A=84cpu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/windows-native.yml | 4 ++-- .../core/aot/NeutrinoCoreRuntimeNativeRegistrar.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows-native.yml b/.github/workflows/windows-native.yml index 79ff51a1..4207af95 100644 --- a/.github/workflows/windows-native.yml +++ b/.github/workflows/windows-native.yml @@ -50,7 +50,7 @@ jobs: mvn clean install -pl neutrino-proxy-core -am -DskipTests --no-transfer-progress cd neutrino-proxy-server mvn clean native:compile -P native --file pom.xml --no-transfer-progress - cp target/neutrino-proxy-server.exe . + cp target/neutrino-proxy-server.exe ./neutrino-proxy-server.exe - name: Archive zip (neutrino-proxy-server) uses: thedoctor0/zip-release@master with: @@ -62,7 +62,7 @@ jobs: cd neutrino-proxy-client mvn clean package --file pom.xml --no-transfer-progress mvn clean native:compile -P native --file pom.xml --no-transfer-progress - cp target/neutrino-proxy-client.exe . + cp target/neutrino-proxy-client.exe ./neutrino-proxy-client.exe - name: Archive zip (neutrino-proxy-client) uses: thedoctor0/zip-release@master with: diff --git a/neutrino-proxy-core/src/main/java/org/dromara/neutrinoproxy/core/aot/NeutrinoCoreRuntimeNativeRegistrar.java b/neutrino-proxy-core/src/main/java/org/dromara/neutrinoproxy/core/aot/NeutrinoCoreRuntimeNativeRegistrar.java index c7a2690f..11ce7f4e 100644 --- a/neutrino-proxy-core/src/main/java/org/dromara/neutrinoproxy/core/aot/NeutrinoCoreRuntimeNativeRegistrar.java +++ b/neutrino-proxy-core/src/main/java/org/dromara/neutrinoproxy/core/aot/NeutrinoCoreRuntimeNativeRegistrar.java @@ -25,6 +25,6 @@ public class NeutrinoCoreRuntimeNativeRegistrar implements RuntimeNativeRegistra metadata.registerReflection(ProxyMessage.class, MemberCategory.DECLARED_FIELDS, MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.INVOKE_DECLARED_CONSTRUCTORS); metadata.registerReflection(ProxyMessage.UdpBaseInfo.class, MemberCategory.DECLARED_FIELDS, MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.INVOKE_DECLARED_CONSTRUCTORS); - metadata.registerArg("--add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED"); + metadata.registerArg("--add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED -march=compatibility"); } }