subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.28k stars 202 forks source link

Set architecture options from runner's architecture #264

Closed koji-1009 closed 10 months ago

koji-1009 commented 10 months ago

Apple silicon is now available.

https://github.blog/2023-10-02-introducing-the-new-apple-silicon-powered-m1-macos-larger-runner-for-github-actions/

This makes it necessary in some cases to set arm64 for the architecture option. There is already an option (Thanks!). However, in most cases x64 is used and the option is missed. Therefore, it is likely that users with Apple silicon will not realize that they need to configure arm64.

To solve the above problem, I added a process to get the appropriate architecture from runner-arch if the option is not set. Thanks for the great tool.

subosito commented 10 months ago

Awesome, thanks @koji-1009 👍

koji-1009 commented 10 months ago

@subosito Thank you very much!