diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-11-08 22:51:06 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-11-14 19:16:58 -0500 |
commit | 0e5d632a62ef79b29df98a437c02d02419eaf8e4 (patch) | |
tree | 3ce12e962b8a73d07fe0881d1456a24bfd0b7f34 | |
parent | aa84c55bef6393b00b3c86eed77bfc00756c7ce9 (diff) | |
download | meson-0e5d632a62ef79b29df98a437c02d02419eaf8e4.zip meson-0e5d632a62ef79b29df98a437c02d02419eaf8e4.tar.gz meson-0e5d632a62ef79b29df98a437c02d02419eaf8e4.tar.bz2 |
CI: force macOS to use brew's python at all costs
The default actions one is broken in two ways, and additionally
overwrote homebrew's symlinks to begin with.
-rw-r--r-- | .github/workflows/macos.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index da77578..b620b43 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -69,9 +69,15 @@ jobs: - uses: actions/checkout@v2 # Avoid picking up an older version of LLVM that does not work. - run: brew update + # github actions overwrites brew's python. Force it to reassert itself, by running in a separate step. + - name: unbreak python in github actions + run: | + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete + sudo rm -rf /Library/Frameworks/Python.framework/ + brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3 # use python3 from homebrew because it is a valid framework, unlike the actions one: # https://github.com/actions/setup-python/issues/58 - - run: brew install pkg-config ninja llvm qt@5 boost ldc hdf5 openmpi lapack scalapack sdl2 python3 boost-python3 gtk-doc + - run: brew install pkg-config ninja llvm qt@5 boost ldc hdf5 openmpi lapack scalapack sdl2 boost-python3 gtk-doc - run: | python3 -m pip install --upgrade setuptools python3 -m pip install --upgrade pip |