Compare commits

..
6 Commits
Author SHA1 Message Date
songyinyin b718c048ea test github action v22 2023-10-25 16:31:14 +08:00
songyinyin d202caa499 test github action v21 2023-10-25 16:16:26 +08:00
songyinyin 8591e224dc test github action v20 windows xcopy 2023-10-25 16:15:32 +08:00
songyinyin 5953256c11 test github action v19 2023-10-25 16:02:55 +08:00
songyinyin 8d5b7edf12 test github action v18 add sql 2023-10-25 16:01:55 +08:00
songyinyin e74dc64a9a test github action v17 2023-10-25 14:10:31 +08:00
3 changed files with 21 additions and 19 deletions
+10 -9
View File
@@ -12,7 +12,8 @@ jobs:
fail-fast: false
matrix:
# 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 }}
runs-on: ${{ matrix.os }}
# 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
cd neutrino-proxy-server
mvn clean native:compile -P native --file pom.xml --no-transfer-progress
cp target/neutrino-proxy-server ./../neutrino-proxy-server-${{ github.ref }}
cp target/neutrino-proxy-server ./../neutrino-proxy-server-${{ github.ref_name }}
- name: Archive zip (neutrino-proxy-server)
uses: thedoctor0/zip-release@master
with:
type: 'zip'
path: 'neutrino-proxy-server-${{ github.ref }}'
filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref }}.zip
path: 'neutrino-proxy-server-${{ github.ref_name }}'
filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip
- name: Build with Maven (neutrino-proxy-client)
run: |
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 ./../neutrino-proxy-client-${{ github.ref }}
cp target/neutrino-proxy-client ./../neutrino-proxy-client-${{ github.ref_name }}
- name: Archive zip (neutrino-proxy-client)
uses: thedoctor0/zip-release@master
with:
type: 'zip'
path: 'neutrino-proxy-client-${{ github.ref }}'
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip
path: 'neutrino-proxy-client-${{ github.ref_name }}'
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
# GitHub 上创建 release
- name: Release
uses: softprops/action-gh-release@v1
@@ -76,7 +77,7 @@ jobs:
files: |
neutrino-proxy-server/target/neutrino-proxy-server.jar
neutrino-proxy-client/target/neutrino-proxy-client.jar
neutrino-proxy-server-${{ matrix.os }}-${{ github.ref }}.zip
neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip
neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip
neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}
+10 -10
View File
@@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
tags:
- 'vw*'
- 'win*'
jobs:
build:
@@ -31,7 +31,7 @@ jobs:
cd neutrino-proxy-admin
npm install
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
uses: graalvm/setup-graalvm@v1
with:
@@ -50,25 +50,25 @@ 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
xcopy target/neutrino-proxy-server ./../neutrino-proxy-server-${{ github.ref }}
xcopy target/neutrino-proxy-server.exe .
- name: Archive zip (neutrino-proxy-server)
uses: thedoctor0/zip-release@master
with:
type: 'zip'
path: 'neutrino-proxy-server-${{ github.ref }}'
filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref }}.zip
path: 'neutrino-proxy-server-${{ github.ref_name }}'
filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip
- name: Build with Maven (neutrino-proxy-client)
run: |
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
xcopy target/neutrino-proxy-client ./../neutrino-proxy-client-${{ github.ref }}
xcopy target/neutrino-proxy-client.exe .
- name: Archive zip (neutrino-proxy-client)
uses: thedoctor0/zip-release@master
with:
type: 'zip'
path: 'neutrino-proxy-client-${{ github.ref }}'
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip
path: 'neutrino-proxy-client-${{ github.ref_name }}'
filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
# GitHub 上创建 release
- name: Release
uses: softprops/action-gh-release@v1
@@ -77,7 +77,7 @@ jobs:
files: |
neutrino-proxy-server/target/neutrino-proxy-server.jar
neutrino-proxy-client/target/neutrino-proxy-client.jar
neutrino-proxy-server-${{ matrix.os }}-${{ github.ref }}.zip
neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip
neutrino-proxy-server.exe
neutrino-proxy-client.exe
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}
@@ -43,6 +43,7 @@ public class NeutrinoServerRuntimeNativeRegistrar implements RuntimeNativeRegist
@Override
public void register(AppContext context, RuntimeNativeMetadata metadata) {
metadata.registerResourceInclude("test.jks");
metadata.registerResourceInclude("sql/.*");
// 使用 MP lambda 的类,需要注册序列化
metadata.registerLambdaSerialization(ClientConnectRecordService.class);