-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Update macos runner #1165
Update macos runner #1165
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the runners a bit. Sadly, it seems it might be trickier to actually test nginx on M1 -- so up to you - we can merge this as is, and work on the nginx test on M1 separately, or do it all in this PR
Thx @nyurik ! I will try Ngnix on my local M1 MacBook and update this PR then. |
.github/workflows/ci.yml
Outdated
@@ -248,7 +248,7 @@ jobs: | |||
- target: debian-x86_64 | |||
os: ubuntu-latest | |||
- target: x86_64-apple-darwin | |||
os: macos-12 # x64 CPU | |||
os: macos-14 # M1 CPU |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't want M1 CPU here because we are building x86 target
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok. I thought we can build x86 target on M1, can we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we could generate x86 and arm target both on M1, I'm not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see I see.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems M1 could build and run(by Rosetta) x86_64-apple-darwin
, but it's not the best choice. I've already switch back to macos-12 runner. Thx @nyurik
@@ -320,6 +320,7 @@ jobs: | |||
- name: Start HTTP Server (MacOS, no Docker) | |||
if: runner.os == 'macos' | |||
run: | | |||
mkdir -p /usr/local/etc/nginx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not sure we should create a directory that nginx doesn't know about. We may have to just download nginx from somewhere... anyway, i think it might not be worth our time at this stage - until they install nginx on -13 and -14 the same way they have it on -12 (latest).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could do more when macos-14
is stable, now is beta
. There are many issues bigger than #1162.
Try to fix #1162