Compare commits

..
3 Commits
Author SHA1 Message Date
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 19 additions and 17 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 }}
+8 -8
View File
@@ -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 ./../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
xcopy target/neutrino-proxy-client ./../neutrino-proxy-client-${{ github.ref }}
xcopy 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
@@ -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-${{ matrix.os }}-${{ github.ref_name }}.zip
neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip
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);