Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
455638c4cf | ||
|
|
09b200455d | ||
|
|
245bd274e2 |
@@ -30,7 +30,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd neutrino-proxy-admin
|
cd neutrino-proxy-admin
|
||||||
npm install
|
npm install
|
||||||
npm run build:dev
|
npm run build:docker
|
||||||
cp -rf ./dist/ ./../neutrino-proxy-server/src/main/resources/static/
|
cp -rf ./dist/ ./../neutrino-proxy-server/src/main/resources/static/
|
||||||
- name: GitHub Action for GraalVM JDK 17
|
- name: GitHub Action for GraalVM JDK 17
|
||||||
uses: graalvm/setup-graalvm@v1
|
uses: graalvm/setup-graalvm@v1
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd neutrino-proxy-admin
|
cd neutrino-proxy-admin
|
||||||
npm install
|
npm install
|
||||||
npm run build:dev
|
npm run build:docker
|
||||||
cp -r ./dist/ ./../neutrino-proxy-server/src/main/resources/static/
|
cp -r ./dist/ ./../neutrino-proxy-server/src/main/resources/static/
|
||||||
- name: GitHub Action for GraalVM JDK 17
|
- name: GitHub Action for GraalVM JDK 17
|
||||||
uses: graalvm/setup-graalvm@v1
|
uses: graalvm/setup-graalvm@v1
|
||||||
@@ -50,24 +50,24 @@ jobs:
|
|||||||
mvn clean install -pl neutrino-proxy-core -am -DskipTests --no-transfer-progress
|
mvn clean install -pl neutrino-proxy-core -am -DskipTests --no-transfer-progress
|
||||||
cd neutrino-proxy-server
|
cd neutrino-proxy-server
|
||||||
mvn clean native:compile -P native --file pom.xml --no-transfer-progress
|
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)
|
- name: Archive zip (neutrino-proxy-server)
|
||||||
uses: thedoctor0/zip-release@master
|
uses: thedoctor0/zip-release@master
|
||||||
with:
|
with:
|
||||||
type: 'zip'
|
type: 'zip'
|
||||||
path: 'neutrino-proxy-server-${{ github.ref_name }}'
|
path: 'neutrino-proxy-server.exe'
|
||||||
filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip
|
filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip
|
||||||
- name: Build with Maven (neutrino-proxy-client)
|
- name: Build with Maven (neutrino-proxy-client)
|
||||||
run: |
|
run: |
|
||||||
cd neutrino-proxy-client
|
cd neutrino-proxy-client
|
||||||
mvn clean package --file pom.xml --no-transfer-progress
|
mvn clean package --file pom.xml --no-transfer-progress
|
||||||
mvn clean native:compile -P native --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)
|
- name: Archive zip (neutrino-proxy-client)
|
||||||
uses: thedoctor0/zip-release@master
|
uses: thedoctor0/zip-release@master
|
||||||
with:
|
with:
|
||||||
type: 'zip'
|
type: 'zip'
|
||||||
path: 'neutrino-proxy-client-${{ github.ref_name }}'
|
path: 'neutrino-proxy-client.exe'
|
||||||
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
|
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
|
||||||
# GitHub 上创建 release
|
# GitHub 上创建 release
|
||||||
- name: Release
|
- name: Release
|
||||||
@@ -77,7 +77,7 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
neutrino-proxy-server/target/neutrino-proxy-server.jar
|
neutrino-proxy-server/target/neutrino-proxy-server.jar
|
||||||
neutrino-proxy-client/target/neutrino-proxy-client.jar
|
neutrino-proxy-client/target/neutrino-proxy-client.jar
|
||||||
neutrino-proxy-server.exe
|
neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip
|
||||||
neutrino-proxy-client.exe
|
neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
|
||||||
prerelease: true
|
prerelease: true
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
+1
-1
@@ -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.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.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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user