mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-07-23 11:10:57 -05:00
ci, examples : add package-lock.json to examples addon node (#3919)
* ci, examples : add package-lock.json to examples addon node This commit commits the package-lock.json file for examples/addon.node. This is needed to make the CI workflow work properly and after we started pinning the action versions in the workflow, the CI started failing because the package-lock.json was not committed. At least that is what I think is happening. * ci: use node 20.x and 22.x instead of 16.x and 18.x * fix CMakeLists.txt target properties for addon.node
This commit is contained in:
3
.github/workflows/examples.yml
vendored
3
.github/workflows/examples.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [ 16.x, 18.x ]
|
||||
node-version: [ 20.x, 22.x ]
|
||||
steps:
|
||||
- name: Clone
|
||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
||||
@@ -33,6 +33,7 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
cache-dependency-path: examples/addon.node/package-lock.json
|
||||
|
||||
- name: Install package.json dependencies
|
||||
working-directory: ./examples/addon.node
|
||||
|
||||
@@ -8,9 +8,12 @@ include_directories(${CMAKE_JS_INC})
|
||||
#==================================================================
|
||||
|
||||
add_library(${TARGET} SHARED ${CMAKE_JS_SRC} addon.cpp)
|
||||
set_target_properties(${TARGET} PROPERTIES PREFIX "" SUFFIX ".node")
|
||||
|
||||
include(DefaultTargetOptions)
|
||||
set_target_properties(${TARGET} PROPERTIES
|
||||
PREFIX ""
|
||||
OUTPUT_NAME "addon"
|
||||
SUFFIX ".node"
|
||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/Release"
|
||||
)
|
||||
|
||||
# Include N-API wrappers
|
||||
#==================================================================
|
||||
|
||||
4359
examples/addon.node/package-lock.json
generated
Normal file
4359
examples/addon.node/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user