Skip to content

Commit 395d70c

Browse files
committed
windows build
1 parent 5cb8800 commit 395d70c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/xtracfg.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,18 @@ jobs:
6060
- name: log1
6161
run: |
6262
ls -l ./libxtracfg/c/build
63-
# TODO: windows
6463
- name: c
64+
if: ${{ matrix.os.type != 'windows' }}
65+
working-directory: ./libxtracfg/c
66+
run: |
67+
./build.sh
68+
./test.sh
69+
- name: c
70+
if: ${{ matrix.os.type == 'windows' }}
6571
working-directory: ./libxtracfg/c
66-
env:
67-
EXT: ${{ matrix.os.type == 'windows' && 'bat' || 'sh' }}
6872
run: |
69-
./build.${EXT}
70-
./test.${EXT}
73+
./build.bat
74+
./test.bat
7175
- name: log2
7276
run: |
7377
ls -l ./libxtracfg/c/build

libxtracfg/c/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo lib
1313

1414
REM static
1515
cl.exe /c /W4 /I./ /I%JAVA_HOME%/include /I%JAVA_HOME%/include/%PLATFORM% /Folibxtracfg.obj ../wrapper/libxtracfg.c
16-
copy libxtracfgjni.lib libxtracfg.lib
16+
copy libxtracfgjni_static.lib libxtracfg.lib
1717
lib.exe /OUT:libxtracfg.lib libxtracfg.lib libxtracfg.obj
1818

1919
certutil -hashfile libxtracfg.lib SHA1 > libxtracfg.sha1sum.tmp

0 commit comments

Comments
 (0)