-
Notifications
You must be signed in to change notification settings - Fork 25
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
Adding Mac Mini runner for arm64 (M1) packages #578
Conversation
@jmarrec getting this error when trying to run the OS 3.5.0 CLI on Mac Mini with M1 processor
Might be because the Mac Mini was on OS 11.6 (20G165), I'll update it Updating the Mac Mini to 13.0.1 fixed the build issues! |
It's odd that my commits from the Mac Mini are showing up as you @jmarrec, I generated and used a new token under my account to do the commits. I guess I need to change the global config too. |
I'm downloading the dmg package for arm64 and will test it on my machine to make sure it works. OpenStudioApplication-1.4.1.758c1c5864d6b42ecb9ca3a8dd8a1ece2682a1c9-macos-arm64.dmg I'm getting an issue with the Measure Manager, this is probably not due to this specific PR though. $ OPENSTUDIO_APPLICATION_DEBUG=1 /Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationModule, info.dli_fname = '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationModule, found '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> Searching for CLI in '/Users/irvinemac/actions-runner/_work/OpenStudioApplication/OpenStudioApplication/build/OpenStudio-3.5.0/OpenStudio-3.5.0+7b14ce1588-Darwin-arm64/bin/openstudio'
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationModule, info.dli_fname = '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationModule, found '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> Searching for CLI in '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/../bin/openstudio'
[openstudio.OSAppBase] <-2> Starting measure manager server at http://127.0.0.1:50139
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationModule, info.dli_fname = '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationModule, found '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> Searching for CLI in '/Users/irvinemac/actions-runner/_work/OpenStudioApplication/OpenStudioApplication/build/OpenStudio-3.5.0/OpenStudio-3.5.0+7b14ce1588-Darwin-arm64/bin/openstudio'
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationModule, info.dli_fname = '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationModule, found '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> Searching for CLI in '/Applications/OpenStudioApplication-1.4.1-alpha/OpenStudioApp.app/Contents/MacOS/../bin/openstudio'
[openstudio.OSAppBase] <-2> Command: measure -s 50139
Warning: QIODevice::read (QProcess): device not open ((null):0, (null))
Warning: QIODevice::read (QProcess): device not open ((null):0, (null)) |
.github/workflows/app_build.yml
Outdated
COMPRESSED_EXT: tar.gz | ||
BINARY_PKG_PATH: _CPack_Packages/Darwin/IFW | ||
COMPRESSED_PKG_PATH: _CPack_Packages/Darwin/TGZ | ||
MACOSX_DEPLOYMENT_TARGET: 10.14 |
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.
This is probably too old really. I build the E+ and OS SDK with MACOSX_DEPLOYMENT_TARGET=12.1
on my machine.
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.
Hmm, I see 10.15 in both EnergyPlus and OpenStudio. Agree that we could be less accommodating if we need, I'd say we update to 10.15 unless there are problems in 10.15 and then go to 11.
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 build the arm64 packages myself, so that's local to my machine. see https://github.com/NREL/EnergyPlus/releases/tag/v22.2.0 for eg, you'll see the (only) arm64 package has 12.1 in the name.
Couple of datapoints:
- Release dates:
- Big Sur: November 12, 2020
- Mac Mini M1 2020: November 17, 2020
- Monterey: October 25, 2021
- Macbook Pro 2021 M1: October 25, 2021
- The Mac Mini (M1, 2020), which was as far as I know the first commercial M1 mac, was on Big Sur, so 11.x. At that point in time, I used Irvine's mac mini to build E+ package, and set the deployment target to 11.2.
- My MBP M1 shipped with Monterrey (12.x)
- I reckon people with M1 machines are more likely to be on the bleeding edge anyways.
So I figured I could just bump to 12.1, to match the macos-12 github actions runner. (I may have had another reason that is escaping me at the moment).
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.
Yeah I get linker warnings that 12.1 is newer than the target 11.0 when I link with the OpenStudio build, did you build the OpenStudio packages for M1 with 12.1 too?
warning: dylib (../../OpenStudio-3.5.0/OpenStudio-3.5.0+7b14ce1588-Darwin-arm64/lib/libopenstudiolib.dylib) was built for newer macOS version (12.1) than being linked (11.0)
If so, I guess there is no reason to try to be more backward compatible than OpenStudio is. Looks like the conan stuff is being built for 11.2.
if [ "${{matrix.SELF_HOSTED}}" = "true" ]; then | ||
echo "Using previously installed ninja and IFW" | ||
echo "/Users/irvinemac/Qt/Tools/QtInstallerFramework/4.3/bin/" >> $GITHUB_PATH | ||
else |
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.
All that stuff should just be preconfigured on the machine perhaps? And we can just skip the step entirely if self hosted
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.
(maybe we should have a dedicated workflow yml file for the self hosted?)
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 about both of those. I wanted to try the caching and see how it goes, seems like it's not worth it. I'd prefer to keep a single workflow file otherwise I'm sure they'll diverge.
Still having an issue with the packaging. Not the fault of this PR I think, though I do see packaging CPACK issuing errors: https://github.com/openstudiocoalition/OpenStudioApplication/actions/runs/3575395655/jobs/6011876669#step:19:1009
|
Hmm I don't see those errors when building locally in the home directory, I'll look into it. Nevermind, when I configured for IFW I see the error |
@jmarrec the symlinks were being installed in the Unspecified component instead of OpenStudioApp. There were also some issues after updating Xcode but I think those are good now. Do these packages work for you now? |
Sorry about the closing / reopening, I misclicked by accident... I'm testing out the package right now, will report back. |
No description provided.