Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

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
@naotama2002 naotama2002 force-pushed the change-macos-build-runner branch from cd2027d to 2b5f100 Compare September 26, 2023 11:14
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
@naotama2002 naotama2002 force-pushed the change-macos-build-runner branch from 0611838 to 4197b33 Compare October 1, 2023 04:09
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 force-pushed the change-macos-build-runner branch from 4197b33 to 2722ec4 Compare October 10, 2023 11:05
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants