diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f5a36c63..ce91b3b5 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -290,18 +290,22 @@ jobs: python_version: "3.12" arch: x64 runner: macos-13 + brew_prefix: /usr/local - py_platform: macosx-12.0-x86_64 python_version: "3.13" arch: x64 runner: macos-13 + brew_prefix: /usr/local - py_platform: macosx-12.0-arm64 python_version: "3.12" arch: arm64 runner: macos-14 + brew_prefix: /opt/homebrew - py_platform: macosx-12.0-arm64 python_version: "3.13" arch: arm64 runner: macos-14 + brew_prefix: /opt/homebrew steps: - uses: actions/checkout@v2 @@ -345,11 +349,11 @@ jobs: -DBUILD_SHARED_LIBS=ON -DTESSERACT_ENABLE_EXAMPLES=OFF -DTESSERACT_BUILD_TRAJOPT_IFOPT=OFF \ -DVCPKG_APPLOCAL_DEPS=OFF -DTESSERACT_ENABLE_TESTING=ON \ -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 \ - -DOpenMP_CXX_INCLUDE_DIR=/usr/local/opt/libomp/include \ - -DOpenMP_C_INCLUDE_DIR=/usr/local/opt/libomp/include \ + -DOpenMP_CXX_INCLUDE_DIR=${{ matrix.config.brew_prefix }}/opt/libomp/include \ + -DOpenMP_C_INCLUDE_DIR=${{ matrix.config.brew_prefix }}/opt/libomp/include \ -DOpenMP_CXX_LIB_NAMES=libomp -DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp" \ -DOpenMP_C_LIB_NAMES=libomp -DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp" \ - -DOpenMP_libomp_LIBRARY=/usr/local/opt/libomp/lib/libomp.dylib \ + -DOpenMP_libomp_LIBRARY=${{ matrix.config.brew_prefix }}/opt/libomp/lib/libomp.dylib \ -Dtcmalloc_minimal_LIBRARY=${{ github.workspace }}/vcpkg/installed/x64-osx-dynamic-release/lib/libtcmalloc_minimal.dylib \ -DPYTHON_EXECUTABLE="${{ steps.setup-python.outputs.python-path }}" \ -DTESSERACT_PYTHON_WHEEL_PLATFORM=${{ matrix.config.py_platform }} \