Skip to content

Commit

Permalink
another attempt at cibuildwheels for py3.8 on macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
gschnabel committed May 30, 2024
1 parent fab0dc7 commit 9c56923
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,21 @@ jobs:
with:
python-version: "3.x"

# Install Homebrew and dependencies, and setup Python 3.8 for macOS arm64
- name: Setup Python 3.8 universal2 on macOS arm64
if: matrix.os == 'macos-14' && runner.arch == 'ARM64'
if: matrix.os == 'macos-latest' && runner.arch == 'ARM64'
run: |
if [[ $(uname -m) == 'arm64' ]]; then
# Install Homebrew in /usr/local for x86_64
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/usr/local/bin/brew shellenv)"' >> /Users/runner/.bash_profile
eval "$(/usr/local/bin/brew shellenv)"
# Install gettext and link it
brew install gettext
brew link --force gettext
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Python 3.8 in x86_64 mode
arch -x86_64 brew install [email protected]
arch -x86_64 python3.8 -m pip install --upgrade pip
arch -x86_64 /usr/local/opt/[email protected]/bin/python3.8 -m pip install --upgrade pip
fi
- name: Install build deps
Expand Down

0 comments on commit 9c56923

Please sign in to comment.