Skip to content

Commit

Permalink
ci: pack macos dep
Browse files Browse the repository at this point in the history
  • Loading branch information
MackBambu committed Jun 16, 2024
1 parent c3a3e2b commit 812cfc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_bambu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
if: inputs.os == 'macos-13'
working-directory: ${{ github.workspace }}
run: |
brew install cmake git gettext automake texinfo
brew install automake texinfo
mkdir -p ${{ github.workspace }}/build_${{inputs.arch}}
cd ${{ github.workspace }}/build_${{inputs.arch}}
cmake .. -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="${{ github.workspace }}/deps/build_${{ inputs.arch }}/BambuStudio_dep_${{ inputs.arch }}/usr/local" -DCMAKE_INSTALL_PREFIX="../install_dir" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MACOSX_RPATH=ON -DCMAKE_INSTALL_RPATH="${{ github.workspace }}/deps/build_${{ inputs.arch }}/BambuStudio_dep_${{ inputs.arch }}/usr/local" -DCMAKE_MACOSX_BUNDLE=on
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
if: inputs.os == 'macos-13'
working-directory: ${{ github.workspace }}
run: |
brew install cmake git gettext automake texinfo
brew install automake texinfo
brew uninstall --ignore-dependencies zstd
mkdir -p ${{ github.workspace }}/deps/build_${{ inputs.arch }}
mkdir -p ${{ github.workspace }}/deps/build_${{ inputs.arch }}/BambuStudio_dep_${{ inputs.arch }}
Expand All @@ -88,6 +88,11 @@ jobs:
make -j4
brew install zstd
- name: pack deps on Macos
if: inputs.os == 'macos-13'
working-directory: ${{ github.workspace }}
run: tar -zcvf "BambuStudio_dep_mac_${{ inputs.arch }}_$(date +"%Y%m%d").tar.gz" "${{ github.workspace }}/deps/build_${{ inputs.arch }}/BambuStudio_dep_${{ inputs.arch }}"


- name: Build on Ubuntu
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
Expand All @@ -110,7 +115,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: BambuStudio_dep_mac_${{ inputs.arch }}_${{ env.date }}
path: ${{ github.workspace }}/deps/build_${{ inputs.arch }}/BambuStudio_dep*.tar.gz
path: ${{ github.workspace }}/BambuStudio_dep_mac_${{ inputs.arch }}*.tar.gz

- name: Upload Windows artifacts
if: inputs.os == 'windows-latest'
Expand Down

0 comments on commit 812cfc5

Please sign in to comment.