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

macOS CI fixes #188

Merged
merged 3 commits into from
Feb 21, 2022
Merged

macOS CI fixes #188

merged 3 commits into from
Feb 21, 2022

Conversation

YorikSar
Copy link
Member

This should close #175 and #176.

Current nixpkgs doesn't support macOS Big Sur (11). Its support landed in
nixpkgs in 21.11, but that also broke support for Catalina (10.15), so
switch CI workflow to use "macos-11" runner.

Fixes #175
On CI we set NIX_PATH to "nixpkgs=./nixpkgs.nix", so nix-shell tries to
use it from within the example's directory and fails, it tries to use
builtin bash. On macOS it is too old, so we should make sure that the
one from nixpkgs is used.

Related to #176
@YorikSar
Copy link
Member Author

For some reason GitHub expects build that is removed in this PR (the macos-10.15 one).

Copy link
Contributor

@AleksanderGondek AleksanderGondek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on pinning the issues with macOS!
However I would really like to avoid making the test execution script a highly nested, if-else driven construct – I have given a suggestion in review, but I do not mind any solution ;)

.github/workflows/workflow.yaml Outdated Show resolved Hide resolved
.github/workflows/workflow.yaml Outdated Show resolved Hide resolved
All examples are already using 21.11 nixpkgs, so that shouldn't prevent
them from working on Big Sur.

Python example is broken because of #186 and Rust one because of #187,
so skip them for now.

Fixes #176
Copy link
Contributor

@AleksanderGondek AleksanderGondek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aherrmann
Copy link
Member

For some reason GitHub expects build that is removed in this PR (the macos-10.15 one).

This was a branch protection setting. I've changed it to point to macos-11

@aherrmann
Copy link
Member

Thank you @YorikSar for fixing this!
And thank you @AleksanderGondek for the review!

@aherrmann aherrmann added the merge-queue merge on green CI label Feb 21, 2022
@mergify mergify bot merged commit fe8ca3a into master Feb 21, 2022
@mergify mergify bot deleted the yuriy.taraday/fix-macos-ci branch February 21, 2022 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-queue merge on green CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI jobs fail on macOS 11
3 participants