Repository navigation
macos arm64 support - #4
Conversation
|
ping @matthew-brett, @mattip, @rgommers |
matthew-brett
left a comment
There was a problem hiding this comment.
A few immediate thoughts.
| sudo tar -xvf gfortran-darwin-arm64.tar.gz | ||
| sudo rm gfortran-darwin-arm64.tar.gz | ||
| popd | ||
| export FC_ARM64="/opt/gfortran-darwin-arm64/bin/arm64-apple-darwin20.0.0-gfortran" |
There was a problem hiding this comment.
Any way of getting this path more automatically? Or generalizing so we don't have to change it with other releases?
There was a problem hiding this comment.
Since the archive is checked into the repo, this won't change.
There was a problem hiding this comment.
Well - sorry - I'm not saying it's necessarily a good idea to check it into the repo - if there is some other way to guarantee that we can get exactly that binary from something similar to version control elsewhere, that would be just as good.
There was a problem hiding this comment.
Reverted back to the URL and added a shasum check.
| sudo tar -xvf gfortran-darwin-arm64.tar.gz | ||
| sudo rm gfortran-darwin-arm64.tar.gz | ||
| popd | ||
| export FC_ARM64="/opt/gfortran-darwin-arm64/bin/arm64-apple-darwin20.0.0-gfortran" |
There was a problem hiding this comment.
Well - sorry - I'm not saying it's necessarily a good idea to check it into the repo - if there is some other way to guarantee that we can get exactly that binary from something similar to version control elsewhere, that would be just as good.
| GFORTRAN_SHA="$(shasum $GFORTRAN_DMG)" | ||
|
|
||
| function install_arm64_cross_gfortran { | ||
| curl -L -O https://github.com/isuruf/gcc/releases/download/gcc-10-arm-20210112/gfortran-darwin-arm64.tar.gz |
There was a problem hiding this comment.
Right - but just to check - do you think we can depend on this curl command working for the next few years?
There was a problem hiding this comment.
We can also make a release in MacPython/gfortran-install and attach it there.
There was a problem hiding this comment.
Yes, maybe that would be the best way.
|
@mattip - any thoughts? |
|
Does it make any difference to CI performance if the file is part of this repo or if it is downloaded from a github release URL? In my mind I would hop somehow subrepos can be cached, but the URL must be fetched each run, but I don't know if this intuition is true or not. |
|
No, downloading took 2 seconds on github actions for me. |
|
Cool. Then LGTM. |
|
Thanks @isuruf |
No description provided.