From f2a30fde4bd91b6402007a49ebfa728bfd1ace39 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Jan 11 2023 08:38:14 +0000 Subject: actions-macos: remove symlinks before installing python (#4702) --- diff --git a/.github/workflows/workflow_macos.yml b/.github/workflows/workflow_macos.yml index 5403620..1002466 100644 --- a/.github/workflows/workflow_macos.yml +++ b/.github/workflows/workflow_macos.yml @@ -8,13 +8,26 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Remove symlinks + run: | + # remove existing symlinks before installing python@3.10 and 3.11 + rm /usr/local/bin/2to3 + rm /usr/local/bin/idle3 + rm /usr/local/bin/pydoc3 + rm /usr/local/bin/python3 + rm /usr/local/bin/python3-config + rm /usr/local/bin/2to3-3.11 + rm /usr/local/bin/idle3.11 + rm /usr/local/bin/pydoc3.11 + rm /usr/local/bin/python3.11 + rm /usr/local/bin/python3.11-config + - name: Install libraries run: | checkPkgAndInstall() { while [ $# -ne 0 ] do - rm -f '/usr/local/bin/2to3' if brew ls --versions $1 ; then brew upgrade $1 else @@ -22,13 +35,7 @@ jobs: fi shift done - } - # remove existing symlinks before installing python@3.10 - rm /usr/local/bin/idle3 - rm /usr/local/bin/pydoc3 - rm /usr/local/bin/python3 - rm /usr/local/bin/python3-config - + } brew update checkPkgAndInstall pkg-config glew lz4 libjpeg libpng lzo qt@5 boost libusb libmypaint ccache jpeg-turbo ninja checkPkgAndInstall opencv