From ac1bebcb3931b04c2ca9682c89e7235d95ecb366 Mon Sep 17 00:00:00 2001 From: Paul Annetts <5033948+paulannetts@users.noreply.github.com> Date: Fri, 4 Oct 2024 17:49:29 +0100 Subject: [PATCH] Add some mac to see if it's better --- .github/workflows/build.yml | 61 ++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 28 deletions(-) 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