Skip to content

Commit f7ace00

Browse files
committed
fix: support AceinnaBinaryUdp format message
1 parent 77a3a5d commit f7ace00

9 files changed

Lines changed: 7114 additions & 4478 deletions

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
push:
44
branches:
55
- main
6+
7+
permissions:
8+
id-token: write
9+
contents: write
10+
611
concurrency:
712
group: build-${{ github.ref }}
813
cancel-in-progress: false
@@ -16,18 +21,18 @@ jobs:
1621
node: x64
1722
command: prebuildify
1823
- name: win32-x64
19-
os: windows-2019
24+
os: windows-2022
2025
node: x64
2126
command: prebuildify
2227
name: Build ${{ matrix.name }}
2328
runs-on: ${{ matrix.os }}
2429
steps:
2530
- if: matrix.node
26-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
2732
with:
28-
node-version: 16.x
33+
node-version: 20.x
2934
architecture: ${{ matrix.node }}
30-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3136
- uses: actions/setup-python@v4
3237
with:
3338
python-version: 3.8
@@ -46,7 +51,7 @@ jobs:
4651
name: Release
4752
runs-on: ubuntu-latest
4853
steps:
49-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v4
5055
- uses: actions/download-artifact@v4
5156
with:
5257
name: build-artifacts-darwin-${{ github.run_id }}
@@ -55,16 +60,20 @@ jobs:
5560
with:
5661
name: build-artifacts-win32-x64-${{ github.run_id }}
5762
path: prebuilds/
58-
- uses: actions/setup-node@v3
63+
- uses: actions/setup-node@v4
5964
with:
60-
node-version: 16.x
65+
node-version: 20
6166
- uses: actions/setup-python@v4
6267
with:
6368
python-version: 3.8
69+
registry-url: https://registry.npmjs.org
70+
# Ensure npm 11.5.1 or later is installed
6471
- run: pip3 install setuptools
65-
- run: npm ci
72+
- name: Update npm
73+
run: npm install -g npm@latest
74+
- run: npm ci --ignore-scripts
75+
- run: npm config set registry https://registry.npmjs.org
6676
- run: npm run build
6777
- run: npm run semantic-release
6878
env:
69-
GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
70-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
79+
GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}

binding.gyp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
'variables': {
3+
'openssl_fips': ''
4+
},
25
'targets': [
36
{
47
'target_name': 'ace-msg-parser',
@@ -8,6 +11,7 @@
811
'src/message_extractor.cc',
912
'src/analyzers/nmea_analyzer.cc',
1013
'src/analyzers/aceinna_binary_analyzer.cc',
14+
'src/analyzers/headless_analyzer.cc',
1115
],
1216
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"],
1317
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
@@ -22,10 +26,5 @@
2226
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
2327
}
2428
}
25-
],
26-
'variables': {
27-
'openssl_fips': '',
28-
'openssl_is_fips': 'false',
29-
'openssl_quic': 'true',
30-
}
29+
]
3130
}

0 commit comments

Comments
 (0)