-
Notifications
You must be signed in to change notification settings - Fork 143
Add MacOS build packaging tool #734
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
base: dev
Are you sure you want to change the base?
Add MacOS build packaging tool #734
Conversation
|
python3.10 is hardcoded in a few places. We should try to make it easier to upgrade to a new python version in the future, which can happen pretty often. Maybe it is even possible to replace with python3 ? |
2f413e4 to
051c9ff
Compare
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.
Nice work, see comments.
.github/workflows/deploy.yml
Outdated
| run: | | ||
| mkdir artifact | ||
| mv tools/macos_build/installer/* artifact/ | ||
| - uses: actions/upload-artifact@v4 |
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.
Instead of uploading the file as an artifact, upload it as a release asset with this action https://github.com/softprops/action-gh-release .
See also https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28
.github/workflows/deploy.yml
Outdated
| ARTIFACT_NAME: FastSurfer | ||
| VERSION: 242 | ||
| FREESURFER_URL: https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/7.4.1/freesurfer-macOS-darwin_x86_64-7.4.1.tar.gz | ||
| UPLOAD_ARTIFACT: true |
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.
not artifact but release asset
| if ! grep -q "export PATH=\"$(brew --prefix)/opt/grep/libexec/gnubin:\$PATH\"" ~/.bash_profile; then | ||
| echo "export PATH=\"$(brew --prefix)/opt/grep/libexec/gnubin:\$PATH\"" >> ~/.bash_profile; | ||
| echo "GNU grep has been adde to path" | ||
| fi |
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.
Make sure run_fastsurfer.sh is also in PATH!
|
We will also need to update the install instructions for macOS in |
85f3e65 to
d06303d
Compare
This PR contains a tool for packaging MacOS build for FastSurfer and modified workflow to automate packaging on FastSurfer release.
build_release_package.sh script packages FastSurfer along with minimised freesurfer code.
Modified deploy.yml workflow builds and uploads packaged FastSurfers to artifacts on FastSurfer release.