Skip to content

Commit 6961e76

Browse files
committed
windows build
1 parent 12da7c2 commit 6961e76

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/xtracfg.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,19 @@ jobs:
9494
ls -R ./libxtracfg/js/xtracfg-native-binding/prebuilds
9595
# TODO: run tests for java, c, go
9696
- uses: actions/upload-artifact@v4
97+
if: ${{ matrix.os.type != 'windows' }}
9798
with:
9899
name: libxtracfg-c-${{ matrix.os.platform }}
99100
path: ./libxtracfg/c/build/libxtracfg.a
100101
retention-days: 1
102+
- uses: actions/upload-artifact@v4
103+
if: ${{ matrix.os.type == 'windows' }}
104+
with:
105+
name: libxtracfg-c-${{ matrix.os.platform }}
106+
path: |
107+
./libxtracfg/c/build/libxtracfg.lib
108+
./libxtracfg/c/build/libxtracfgjni_static_ext.lib
109+
retention-days: 1
101110
- uses: actions/upload-artifact@v4
102111
with:
103112
name: libxtracfg-c-hash-${{ matrix.os.platform }}

libxtracfg/js/xtracfg-native-binding/binding.gyp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
},
1818
'msvs_settings': {
1919
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
20+
'VCLinkerTool': {
21+
'IgnoreDefaultLibraryNames': [ 'LIBCMT' ],
22+
'AdditionalOptions': [
23+
'/WHOLEARCHIVE:<(local_prefix)/../c/build/libxtracfg.lib',
24+
],
25+
},
2026
},
2127
'conditions': [
2228
['OS=="win"', {

0 commit comments

Comments
 (0)