Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b718c048ea | ||
|
|
d202caa499 | ||
|
|
8591e224dc | ||
|
|
5953256c11 | ||
|
|
8d5b7edf12 | ||
|
|
e74dc64a9a | ||
|
|
47b6a24a42 | ||
|
|
0095ffc65c |
@@ -12,7 +12,8 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# see: https://docs.github.com/zh/actions/using-jobs/choosing-the-runner-for-a-job
|
# see: https://docs.github.com/zh/actions/using-jobs/choosing-the-runner-for-a-job
|
||||||
os: ['ubuntu-20.04', 'macos-12']
|
# os: ['ubuntu-20.04', 'macos-12']
|
||||||
|
os: ['ubuntu-20.04']
|
||||||
name: build - ${{ matrix.os }}
|
name: build - ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
# https://github.com/softprops/action-gh-release/issues/236#issuecomment-1150530128
|
# https://github.com/softprops/action-gh-release/issues/236#issuecomment-1150530128
|
||||||
@@ -49,25 +50,25 @@ 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 ./../
|
cp target/neutrino-proxy-server ./../neutrino-proxy-server-${{ github.ref_name }}
|
||||||
- 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'
|
path: 'neutrino-proxy-server-${{ github.ref_name }}'
|
||||||
filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref }}.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 ./../
|
cp target/neutrino-proxy-client ./../neutrino-proxy-client-${{ github.ref_name }}
|
||||||
- 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'
|
path: 'neutrino-proxy-client-${{ github.ref_name }}'
|
||||||
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip
|
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
|
||||||
# GitHub 上创建 release
|
# GitHub 上创建 release
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
@@ -76,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-${{ matrix.os }}-${{ github.ref }}.zip
|
neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip
|
||||||
neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip
|
neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
|
||||||
prerelease: true
|
prerelease: true
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -4,7 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'win*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
cd neutrino-proxy-admin
|
cd neutrino-proxy-admin
|
||||||
npm install
|
npm install
|
||||||
npm run build:dev
|
npm run build:dev
|
||||||
xcopy /s /i ./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
|
||||||
with:
|
with:
|
||||||
@@ -50,25 +50,25 @@ 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
|
||||||
xcopy target/neutrino-proxy-server ./../
|
xcopy target/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'
|
path: 'neutrino-proxy-server-${{ github.ref_name }}'
|
||||||
filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref }}.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
|
||||||
xcopy target/neutrino-proxy-client ./../
|
xcopy target/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'
|
path: 'neutrino-proxy-client-${{ github.ref_name }}'
|
||||||
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip
|
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
|
||||||
# GitHub 上创建 release
|
# GitHub 上创建 release
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
@@ -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-${{ matrix.os }}-${{ github.ref }}.zip
|
neutrino-proxy-server.exe
|
||||||
neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip
|
neutrino-proxy-client.exe
|
||||||
prerelease: true
|
prerelease: true
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
+1
@@ -43,6 +43,7 @@ public class NeutrinoServerRuntimeNativeRegistrar implements RuntimeNativeRegist
|
|||||||
@Override
|
@Override
|
||||||
public void register(AppContext context, RuntimeNativeMetadata metadata) {
|
public void register(AppContext context, RuntimeNativeMetadata metadata) {
|
||||||
metadata.registerResourceInclude("test.jks");
|
metadata.registerResourceInclude("test.jks");
|
||||||
|
metadata.registerResourceInclude("sql/.*");
|
||||||
|
|
||||||
// 使用 MP lambda 的类,需要注册序列化
|
// 使用 MP lambda 的类,需要注册序列化
|
||||||
metadata.registerLambdaSerialization(ClientConnectRecordService.class);
|
metadata.registerLambdaSerialization(ClientConnectRecordService.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user