-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
another attempt at cibuildwheels for py3.8 on macos-14
- Loading branch information
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|