diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f10c5f..20db24e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,34 +59,39 @@ jobs: name: wheels-linux-${{ matrix.platform.target }} path: dist -# macos: -# runs-on: ${{ matrix.platform.runner }} -# strategy: -# matrix: -# python-version: [3.9] -# platform: -# - runner: macos-12 -# target: x86_64 -# - runner: macos-14 -# target: aarch64 -# steps: -# - uses: actions/checkout@v4 -# - uses: actions/setup-python@v5 -# with: -# python-version: ${{ matrix.python-version }} -# - name: Build wheels -# uses: PyO3/maturin-action@v1 -# env: -# RUSTFLAGS: -L espeak-ng/src/.libs -# with: -# target: ${{ matrix.platform.target }} -# args: --release --out dist --find-interpreter -# sccache: 'true' -# - name: Upload wheels -# uses: actions/upload-artifact@v4 -# with: -# name: wheels-macos-${{ matrix.platform.target }} -# path: dist + macos: + runs-on: ${{ matrix.platform.runner }} + strategy: + matrix: + python-version: [3.9] + platform: + - runner: macos-12 + target: x86_64 + # - runner: macos-14 + # target: aarch64 + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Build bindings + run: | + tools/build.sh + - name: Build wheels + uses: PyO3/maturin-action@v1 + env: + RUSTFLAGS: -L espeak-ng/src/.libs + with: + target: ${{ matrix.platform.target }} + args: --release --out dist --find-interpreter + sccache: 'true' + - name: Upload wheels + uses: actions/upload-artifact@v4 + with: + name: wheels-macos-${{ matrix.platform.target }} + path: dist # sdist: # runs-on: ubuntu-latest