From 867a8680e12e3b42b7adfe4cf79a6a822e699038 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Fri, 22 Mar 2024 19:14:17 +0100 Subject: [PATCH] another MacOS CI fix attempt (this is getting ridiculous, fix your shit github) --- .github/workflows/build_all.yml | 40 +++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index c96f990d..5b7527e3 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -97,7 +97,25 @@ jobs: run: brew update - name: Fix stuff - run: rm -f /usr/local/bin/2to3* /usr/local/bin/idle3* /usr/local/bin/pydoc3* /usr/local/bin/python3* /usr/local/bin/python3-config* && brew reinstall gettext + run: | + # Workaround for https://github.com/actions/runner-images/issues/4020 + brew unlink python@3.12 + brew uninstall --force azure-cli + brew uninstall --force aws-sam-cli + brew uninstall --force pipx + brew uninstall --force python@3.11 + brew uninstall --force python@3.12 + rm -f '/usr/local/bin/2to3' + rm -f '/usr/local/bin/2to3-3.12' + rm -f '/usr/local/bin/idle3' + rm -f '/usr/local/bin/idle3.12' + rm -f '/usr/local/bin/pydoc3' + rm -f '/usr/local/bin/pydoc3.12' + rm -f '/usr/local/bin/python3' + rm -f '/usr/local/bin/python3-config' + rm -f '/usr/local/bin/python3.12' + rm -f '/usr/local/bin/python3.12-config' + brew install python@3 || brew link --overwrite python@3 - name: Install dependencies run: brew install pkg-config libusb fftw glfw airspy airspyhf portaudio hackrf libbladerf codec2 zstd autoconf automake libtool && pip3 install mako @@ -154,7 +172,25 @@ jobs: run: brew update - name: Fix stuff - run: rm -f /usr/local/bin/2to3* /usr/local/bin/idle3* /usr/local/bin/pydoc3* /usr/local/bin/python3* /usr/local/bin/python3-config* && brew reinstall gettext + run: | + # Workaround for https://github.com/actions/runner-images/issues/4020 + brew unlink python@3.12 + brew uninstall --force azure-cli + brew uninstall --force aws-sam-cli + brew uninstall --force pipx + brew uninstall --force python@3.11 + brew uninstall --force python@3.12 + rm -f '/usr/local/bin/2to3' + rm -f '/usr/local/bin/2to3-3.12' + rm -f '/usr/local/bin/idle3' + rm -f '/usr/local/bin/idle3.12' + rm -f '/usr/local/bin/pydoc3' + rm -f '/usr/local/bin/pydoc3.12' + rm -f '/usr/local/bin/python3' + rm -f '/usr/local/bin/python3-config' + rm -f '/usr/local/bin/python3.12' + rm -f '/usr/local/bin/python3.12-config' + brew install python@3 || brew link --overwrite python@3 - name: Install dependencies run: brew install pkg-config libusb fftw glfw airspy airspyhf portaudio hackrf libbladerf codec2 zstd autoconf automake libtool && pip3 install mako