Skip to content

Commit 5c9107a

Browse files
authored
Merge pull request #37 from chezou/fix/windows-wheel-version
Fix Windows wheel version by moving swig into cibuildwheel
2 parents 5fe2274 + 1adf97a commit 5c9107a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/wheels.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
7z x kytea-win-x64.zip -okytea &&
6262
cp -r kytea\include include &&
6363
cp kytea\lib\libkytea.lib lib\kytea\ &&
64-
swig -Wall -c++ -python -shadow -Iinclude lib\kytea\mykytea.i &&
6564
Invoke-WebRequest -OutFile model.bin.gz https://github.com/neubig/kytea/raw/master/data/model.bin.gz &&
6665
7z x model.bin.gz &&
6766
ren jp-0.4.7-5.mod model.bin
@@ -74,6 +73,7 @@ jobs:
7473
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
7574
CIBW_BUILD_VERBOSITY: 3
7675
CIBW_BEFORE_ALL_LINUX: bash {project}/.github/workflows/linux-before-all.sh
76+
CIBW_BEFORE_BUILD_WINDOWS: swig -Wall -c++ -python -shadow -Iinclude lib\kytea\mykytea.i
7777
CIBW_TEST_COMMAND: python {project}/.github/workflows/test-wheel.py
7878
CIBW_TEST_COMMAND_WINDOWS: python {project}/.github/workflows/test-wheel.py --model {project}/model.bin
7979
run: python -m cibuildwheel --output-dir wheelhouse
@@ -132,3 +132,5 @@ jobs:
132132
path: dist
133133

134134
- uses: pypa/gh-action-pypi-publish@release/v1
135+
with:
136+
skip-existing: true

0 commit comments

Comments
 (0)