File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 6
6
# tags:
7
7
# - v*
8
8
9
- env :
10
- ACTIONS_ALLOW_UNSECURE_COMMANDS : true
11
-
12
9
jobs :
13
10
build-windows-x64 :
14
11
runs-on : windows-2022
@@ -18,15 +15,14 @@ jobs:
18
15
19
16
steps :
20
17
- uses : actions/checkout@v4
21
- - uses : ilammy/msvc-dev-cmd@v1
22
18
- name : Install OpenSSL
23
- run : choco install openssl
19
+ run : choco install openssl -y
24
20
- name : Use Node.js ${{ matrix.node-version }}
25
21
uses : actions/setup-node@v4
26
22
with :
27
23
node-version : ${{ matrix.node-version }}
28
24
- name : Build
29
- run : set npm_config_cache= && set NPM_CONFIG_CACHE= && npm install --build-from-source
25
+ run : npm install --build-from-source
30
26
env :
31
27
CI : true
32
28
# - name: Test
@@ -39,10 +35,10 @@ jobs:
39
35
CI : true
40
36
41
37
build-windows-x86 :
42
- runs-on : windows-2022
38
+ runs-on : windows-2019
43
39
strategy :
44
40
matrix :
45
- node_version : [18.x ]
41
+ node_version : [18]
46
42
node_arch :
47
43
- x86
48
44
steps :
61
57
node-version : ${{ matrix.node_version }}
62
58
node-arch : ${{ matrix.node_arch }}
63
59
- name : Build
64
- run : set npm_config_cache= && set NPM_CONFIG_CACHE= && npm install --build-from-source
60
+ run : npm install --build-from-source
65
61
env :
66
62
CI : true
67
63
# - name: Test
Original file line number Diff line number Diff line change @@ -87,3 +87,8 @@ if(WIN32)
87
87
endif ()
88
88
89
89
target_link_libraries (${PROJECT_NAME} PRIVATE ${LINK_LIBRARIES} )
90
+
91
+ if (MSVC AND CMAKE_JS_NODELIB_DEF AND CMAKE_JS_NODELIB_TARGET)
92
+ # Generate node.lib
93
+ execute_process (COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} ${CMAKE_STATIC_LINKER_FLAGS} )
94
+ endif ()
You can’t perform that action at this time.
0 commit comments