Skip to content

Commit

Permalink
change way of installing py3.8 on macos-14 due to dyld error
Browse files Browse the repository at this point in the history
  • Loading branch information
gschnabel committed May 30, 2024
1 parent c13d525 commit fab0dc7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ jobs:
with:
python-version: "3.x"

- name: Setup Python (3.8 universal2 for macOS arm64)
if: matrix.os == 'macos-14'
uses: actions/setup-python@v5
with:
python-version: '3.8'
architecture: 'x64'
- name: Setup Python 3.8 universal2 on macOS arm64
if: matrix.os == 'macos-14' && runner.arch == 'ARM64'
run: |
if [[ $(uname -m) == 'arm64' ]]; then
brew install gettext
brew link --force gettext
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
arch -x86_64 brew install [email protected]
arch -x86_64 python3.8 -m pip install --upgrade pip
fi
- name: Install build deps
run: |
Expand Down

0 comments on commit fab0dc7

Please sign in to comment.