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

GitHub CI updates for macOS #744

Merged
merged 4 commits into from
Nov 2, 2024
Merged

Conversation

quark17
Copy link
Collaborator

@quark17 quark17 commented Oct 25, 2024

This implements two workarounds for CI failures on macOS and resolves #740 by removing the macos-12 target (deprecated) and adds macos-15 (beta).

The GitHub runners for macOS have a pre-installed python whose links interfere with the install of python by Homebrew -- which can happen if we try to install something that has python as a dependency, at a version newer than what is pre-installed. There is an open issue for this, 9966 in the actions/runner-images repo.

A workaround is needed for macOS 14 and above because Homebrew has deactivated the pyyaml formulae. There were issuing installing it with pip, which is why we switched to Homebrew; the remaining option is to install it using a local virtual environment. (Which in theory could be used by all the macOS versions, but for now we leave macos-13 the way it was, using pip.)

The Brew pyyaml package has been disabled.  Installing globally with
pip3 was a problem before, so go with the only remaining option of
installing locally into a python virtual environment.
And add a procedure for getting the macOS version, which could be used
to look for specifically for the behavior of macOS 15 versus earlier
versions, but decided just to use a wildcard for the directory
@quark17 quark17 merged commit 9b157d1 into B-Lang-org:main Nov 2, 2024
69 checks passed
@quark17 quark17 deleted the brew-python-overwrite branch November 2, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Github's macos-12 runner is going away
1 participant