Skip to content

Commit

Permalink
Install homebrew for arm, print artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Feb 28, 2024
1 parent 4e497aa commit 7065f25
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/bundle_with_dakota_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,33 @@ jobs:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
if: matrix.os != 'macos-latest-xlarge'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: |
setup.py
pyproject.toml
- name: Set up Homebrew
if: matrix.os == 'macos-latest-xlarge'
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Install Homebrew Python
if: matrix.os == 'macos-latest-xlarge'
run: |
brew install python@${{ matrix.python-version }}
BREW_BIN=$(brew --prefix)/bin
PYTHON3=$BREW_BIN/python${{ matrix.python-version }}
$PYTHON3 -m venv build-env
source build-env/bin/activate
which python3
which python
python3 --version
- name: Download Carolina artifact
uses: actions/download-artifact@v3
with:
Expand All @@ -371,7 +391,18 @@ jobs:
run: |
pyver_nodot=$(echo ${{ matrix.python-version }} | sed 's/\.//g')
arch_ver=$(uname -m)
ls -lah /tmp/artifacts/macOS_python_wheels
wheel_path=$(find /tmp/artifacts -name "carolina*-cp$pyver_nodot*-cp$pyver_nodot*macos*$arch_ver*whl")
if [ -z $wheel_path ]; then
wheel_path=$(find /tmp/artifacts -name "carolina*-cp$pyver_nodot*-cp$pyver_nodot*macos*universal*whl")
echo "Use universal wheel since we could not find a match"
fi
mkdir wheel_dump
unzip -l $wheel_path -d wheel_dump
ls -lah wheel_dump
echo "Found Carolina wheel at $wheel_path"
pip install $wheel_path
Expand Down

0 comments on commit 7065f25

Please sign in to comment.