Skip to content

Commit

Permalink
Attempt to fix macOS CI (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi authored Feb 3, 2023
1 parent 98a8daa commit 2ac9bc9
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,21 @@ jobs:
# Install tomlplusplus
./vcpkg.exe --overlay-ports=C:/robotology/robotology-vcpkg-ports install tomlplusplus:x64-windows
- name: Fixup brew [macOS]
if: matrix.os == 'macos-latest'
run: |
# Unlink and re-link to prevent errors when github mac runner images
# install python outside of brew, for example:
# https://github.com/orgs/Homebrew/discussions/3895
# https://github.com/actions/setup-python/issues/577
# https://github.com/actions/runner-images/issues/6459
# https://github.com/actions/runner-images/issues/6507
# https://github.com/actions/runner-images/issues/2322
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
- name: Dependencies [macOS]
if: matrix.os == 'macos-latest'
run: |
# Temporary workaround for https://github.com/actions/setup-python/issues/577
rm -f /usr/local/bin/2to3
rm -f /usr/local/bin/idle3
rm -f /usr/local/bin/pydoc3
rm -f /usr/local/bin/python3
rm -f /usr/local/bin/python3-config
rm -f /usr/local/bin/2to3-3.11
rm -f /usr/local/bin/idle3.11
rm -f /usr/local/bin/pydoc3.11
rm -f /usr/local/bin/python3.11
rm -f /usr/local/bin/python3.11-config
brew update
brew install ace boost eigen swig qt5 orocos-kdl qhull ipopt cppad pkg-config pybind11 \
libmatio spdlog librealsense nlohmann-json numpy assimp
Expand Down

0 comments on commit 2ac9bc9

Please sign in to comment.