Skip to content

Commit

Permalink
fix binding.gyp include_dir and add submodule-recursive in .github/wo…
Browse files Browse the repository at this point in the history
…rkflows/test.yml
  • Loading branch information
yanyiwu committed Jul 16, 2024
1 parent 3ca3451 commit 70ed827
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
8 changes: 6 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@
"VCCLCompilerTool": { "ExceptionHandling": 1 },
},
"win_delay_load_hook": "true",
"sources": ["./lib/index.cpp", "./lib/nodejieba.cpp"],
"sources": [
"./lib/index.cpp",
"./lib/nodejieba.cpp",
],
"cflags": [
"-DLOGGING_LEVEL=LL_WARNING"
],
"include_dirs" : [
"<!(node -p \"require('node-addon-api').include_dir\")",
"./deps"
"./submodules/cppjieba/include",
"./submodules/cppjieba/deps/limonp/include",
],
'configurations': {
'Release': {
Expand Down

0 comments on commit 70ed827

Please sign in to comment.