Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS CI #29

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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