Skip to content

Commit

Permalink
WIP: Trying conda
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpa committed Aug 8, 2024
1 parent e305c2d commit 1ddbeec
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,14 @@ jobs:
- name: Set MacOS deployment target
if: startsWith(matrix.os, 'macos-')
run: |
echo "MACOSX_DEPLOYMENT_TARGET=${{matrix.macos_target}}" >> $GITHUB_ENV
echo "MACOSX_DEPLOYMENT_TARGET=${{ matrix.macos_target }}" >> $GITHUB_ENV
# conda to get libpng on Mac that is compatible with more OS versions
# brew install libpng has a mininum OS of 12
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python }}

- name: Build wheels
env:
Expand Down Expand Up @@ -158,10 +165,7 @@ jobs:
CIBW_BEFORE_ALL_MACOS: |
python -m pip install cmake ninja setuptools
brew update
if ! brew list libpng &>/dev/null; then
HOMEBREW_NO_AUTO_UPDATE=1 brew install libpng
fi
conda install libpng
run: python -m cibuildwheel --output-dir wheelhouse/cp${{ matrix.cibw_python }}-${{matrix.platform_id }}

Expand Down

0 comments on commit 1ddbeec

Please sign in to comment.