-
Notifications
You must be signed in to change notification settings - Fork 145
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
Merged
m-reuter
merged 30 commits into
Deep-MI:dev
from
OtabekRintaro:feature/release-packaging
Nov 18, 2025
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ebc94ab
Add package installer tool for macos
OtabekRintaro ba16a01
Move docker and singularity into tools
OtabekRintaro 101df1a
Create workflow for MacOS package deployment
OtabekRintaro 6c67a96
Apply suggestions from code review
dkuegler f910b59
Reformat scripts and fix broken paths
OtabekRintaro 6f50c3b
Upload assets instead of artifacts in deploy.yml
OtabekRintaro 6ef6be8
Fix script imports style
OtabekRintaro ab05695
Add config file for tools
OtabekRintaro 7731f72
This commit fixes a couple of effects to the docker build settings in…
dkuegler b992ed3
Fix MacOS documentation:
dkuegler 4406f89
Fix missing build paths
OtabekRintaro 302092e
Fix problem with float cast
OtabekRintaro e3364ff
Apply suggestions from code review
dkuegler aa8f852
Fix deployment workflow
OtabekRintaro 82a8f2e
Apply suggestion from @m-reuter
m-reuter 0bf71a4
Update installation instructions for MacOS
OtabekRintaro ff24f54
Update the macOS installation documentation.
dkuegler 21feb8d
Fix backslash in docker installation instructions
dkuegler 2384a17
Apply suggestion from @m-reuter
m-reuter ba07f37
Apply suggestions from reviews
OtabekRintaro f94e498
Fix workflow missing dependency
OtabekRintaro 2bb3416
Install aria2 (and aria2c) in the Docker base build image, so the fre…
dkuegler a8f8084
terminate install_fs_pruned if download is not successful!
dkuegler ea21063
Run py2app directly in macos_build directory
OtabekRintaro a4867ea
Formatting changes in install_fs_pruned.sh
dkuegler 3771eb4
fix typo in error message
m-reuter 3a8311c
fix English
m-reuter 937e0e8
Fix Copilot comments.
dkuegler b8328ed
Fix applet generation
OtabekRintaro 9045517
Add claryfing comments to brew update
OtabekRintaro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,55 +1,50 @@ | ||
| name: MAN deploy-docker | ||
| name: MAN release/deploy | ||
|
|
||
| on: | ||
| # release: | ||
| # types: | ||
| # - published | ||
| release: | ||
| types: | ||
| - published | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| deploy-gpu: | ||
| runs-on: ubuntu-latest | ||
| deploy-mac: | ||
| runs-on: macos-14 | ||
| timeout-minutes: 120 | ||
|
|
||
| env: | ||
| RELEASE_ASSETS: true | ||
| strategy: | ||
| matrix: | ||
| arch: [intel, arm] | ||
| steps: | ||
| - name: Get repository name. | ||
| run: echo "FASTSURFER_DIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Login to Docker | ||
| uses: docker/login-action@v2 | ||
| - name: Set up python environment | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
| - name: Build Docker image GPU | ||
| run: python Docker/build.py --device cuda --tag ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:gpu-${{ github.event.release.tag_name }} | ||
| - name: Add additional tags | ||
| python-version: '3.10' | ||
| - name: install dependencies | ||
| run: | | ||
| docker tag ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:gpu-${{ github.event.release.tag_name }} ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:gpu-latest | ||
| docker tag ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:gpu-${{ github.event.release.tag_name }} ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:latest | ||
| - name: Push Docker image GPU | ||
| run: docker push --all-tags ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:gpu-${{ github.event.release.tag_name }} | ||
| deploy-cpu: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 120 | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Login to Docker | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
| - name: Build Docker image CPU | ||
| run: python Docker/build.py --device cpu --tag ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:cpu-${{ github.event.release.tag_name }} | ||
| - name: Add additional tags | ||
| python -m pip install py2app tomli | ||
|
|
||
| # update system to the newest version, not pin pointing package version on purpose | ||
| brew update | ||
| brew upgrade || true | ||
| brew install aria2 | ||
| - name: package app for ${{ matrix.arch }} | ||
| run: tools/macos_build/build_release_package.sh ${{ matrix.arch }} | ||
| - name: Move assets. | ||
| if: env.RELEASE_ASSETS == 'true' | ||
| run: | | ||
| docker tag ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:cpu-${{ github.event.release.tag_name }} ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:cpu-latest | ||
| - name: Push Docker image CPU | ||
| run: docker push --all-tags ${{ secrets.DOCKERHUB_USERNAME }}/fastsurfer:cpu-${{ github.event.release.tag_name }} | ||
| mkdir assets | ||
| mv tools/macos_build/installer/* assets/ | ||
OtabekRintaro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: Upload release assets. | ||
| uses: softprops/action-gh-release@v2 | ||
| if: env.RELEASE_ASSETS == 'true' | ||
| with: | ||
| files: ${{ env.FASTSURFER_DIR }}/assets/* | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.