Skip to content

Commit

Permalink
Merge pull request #29 from chezou/fix-mac-ci
Browse files Browse the repository at this point in the history
Fix macOS CI
  • Loading branch information
chezou authored Jan 13, 2024
2 parents e903cee + 945ab8a commit 178e872
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:
with:
python-version: '3.9'

- name: Install cibuildwheel
run: pip install cibuildwheel==2.16.2

- name: Prepare for Windows
if: runner.os == 'Windows'
run: |
Expand All @@ -93,10 +96,13 @@ jobs:
cp kytea\lib\libkytea.lib lib\kytea\
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_ARCHS: all
CIBW_BUILD_VERBOSITY: 3
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
delocate-listdeps {wheel} &&
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
CIBW_BEFORE_ALL_LINUX: >
yum install -y wget &&
wget http://www.phontron.com/kytea/download/kytea-0.4.7.tar.gz &&
Expand All @@ -109,15 +115,9 @@ jobs:
rm -r kytea-0.4.7 &&
swig -Wall -c++ -python -shadow -I/usr/local/include lib/kytea/mykytea.i
CIBW_BEFORE_ALL_MACOS: >
brew install autoconf automake libtool &&
wget http://www.phontron.com/kytea/download/kytea-0.4.7.tar.gz &&
tar zxf kytea-0.4.7.tar.gz &&
pushd kytea-0.4.7 &&
autoreconf -i &&
./configure && make && make install &&
popd &&
rm -r kytea-0.4.7 &&
swig -Wall -c++ -python -shadow -I/usr/local/include lib/kytea/mykytea.i
brew install kytea &&
swig -Wall -c++ -python -shadow -I$(brew --prefix)/include lib/kytea/mykytea.i
run: python -m cibuildwheel --output-dir wheelhouse

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 178e872

Please sign in to comment.