Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix macos-13 ci issue when installing brew dependencies #1315

Merged
merged 4 commits into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,31 @@ jobs:
- name: Print OS information
run: system_profiler SPSoftwareDataType

- name: Install dependencies
run: brew install libpng libjpeg-turbo libdc1394 opencv pcl librealsense zbar pkg-config nlohmann-json
- name: Install dependencies on macos-12
if: matrix.os == 'macos-12'
run: |
brew install libpng libjpeg-turbo libdc1394 opencv pcl librealsense zbar pkg-config nlohmann-json

- name: Install dependencies on macos-13
# On macos-13 we need to do a specific action
# ==> Pouring [email protected]_1.ventura.bottle.tar.gz
# Error: The `brew link` step did not complete successfully
# The formula built, but is not symlinked into /usr/local
# Could not symlink bin/2to3-3.12
# Target /usr/local/bin/2to3-3.12
# already exists. You may want to remove it:
# rm '/usr/local/bin/2to3-3.12'
#
# To force the link and overwrite all conflicting files:
# brew link --overwrite [email protected]
#
# Fix proposed in https://github.com/actions/runner-images/issues/6817
if: matrix.os == 'macos-13'
run: |
brew update
brew upgrade || true
brew install libpng libjpeg-turbo libdc1394 pcl librealsense zbar pkg-config nlohmann-json
brew install opencv

- name: Install java dependencies
run: |
Expand Down
Loading