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

Build for macOS with ubuntu runner, support 64-bit ARM architecture on Windows and Linux #263

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

naotama2002
Copy link
Contributor

@naotama2002 naotama2002 commented Sep 8, 2023

📝 Description

Build for macOS with ubuntu runner

When cross-compiling for macOS, DNS resolution was handled improperly. This has been fixed by golang in version 1.20. Build on Ubuntu runner now that the problem is fixed.

🔗 References

Support 64-bit ARM architecture

  • Windows
  • Linux

✅ Test

  • Run on macOS
    • ARM64
    • AMD64
  • Run on Windows; ARM64
  • Run on Linux; ARM64

@naotama2002 naotama2002 force-pushed the change-macos-build-runner branch 2 times, most recently from 97cbf64 to cd2027d Compare September 26, 2023 07:49
@naotama2002 naotama2002 changed the title Run macos build in linux ( CGO_ENABLE = 0 ) Build for macOS with ubuntu runner Sep 26, 2023
@naotama2002 naotama2002 changed the title Build for macOS with ubuntu runner Build for macOS with ubuntu runner, support 64-bit ARM architecture on Windows and Linux Sep 26, 2023
Copy link
Member

@korosuke613 korosuke613 left a comment

Choose a reason for hiding this comment

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

.github/workflows/ci.yml also uses macos-13 runner, so please use ubuntu-latest here as well.

# Run the build on macOS, because only the macOS version is built with CGO enabled.
# See https://github.com/golang/go/issues/12524
runs-on: macos-13


Also, please check additional comments.
For the rest, it is LGTM 👍🏼

.github/workflows/release.yml Outdated Show resolved Hide resolved
Copy link
Member

@korosuke613 korosuke613 left a comment

Choose a reason for hiding this comment

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

LGTM!

@naotama2002 naotama2002 merged commit 6c335e5 into main Oct 10, 2023
5 checks passed
@naotama2002 naotama2002 deleted the change-macos-build-runner branch October 10, 2023 11:10
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.

None yet

2 participants