2023-01-12 14:55:50 +00:00
|
|
|
name: Build Mac x64
|
|
|
|
|
2023-02-21 11:07:20 +00:00
|
|
|
on: [pull_request,push]
|
2023-01-12 14:55:50 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_win64:
|
|
|
|
name: Build Mac x64
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install tools
|
|
|
|
run: |
|
2023-01-28 16:17:25 +00:00
|
|
|
brew install cmake git gettext
|
2023-01-12 14:55:50 +00:00
|
|
|
- run: mkdir -p ${{ github.workspace }}/deps/build
|
|
|
|
- run: mkdir -p ${{ github.workspace }}/deps/build/BambuStudio_dep
|
|
|
|
|
2023-01-28 16:17:25 +00:00
|
|
|
# - name: build deps
|
|
|
|
# id: cache_deps
|
|
|
|
# uses: actions/cache@v3
|
|
|
|
# env:
|
|
|
|
# cache-name: ${{ runner.os }}-cache-bambustudio_deps_x64
|
|
|
|
# with:
|
|
|
|
# path: ${{ github.workspace }}/deps/build/BambuStudio_dep
|
|
|
|
# key: build-${{ env.cache-name }}
|
|
|
|
|
|
|
|
# - if: ${{ steps.cache_deps.outputs.cache-hit != 'true' }}
|
|
|
|
# name: build deps
|
|
|
|
# working-directory: ${{ github.workspace }}
|
|
|
|
# continue-on-error: true
|
|
|
|
# run: ./build_release_macos.sh -d -a x86_64
|
|
|
|
|
|
|
|
- name: Download and extract deps
|
2023-01-12 14:55:50 +00:00
|
|
|
working-directory: ${{ github.workspace }}
|
2023-01-28 16:17:25 +00:00
|
|
|
run: |
|
|
|
|
curl -LJO https://github.com/SoftFever/FileSharing/releases/download/2/BambuStudio_dep_x86_64_21-01-2023.tar.gz
|
|
|
|
tar -zxvf BambuStudio_dep_x86_64_21-01-2023.tar.gz -C ${{ github.workspace }}/deps/build
|
|
|
|
chown -R $(id -u):$(id -g) ${{ github.workspace }}/deps/build/BambuStudio_dep
|
|
|
|
ls -l ${{ github.workspace }}/deps/build/BambuStudio_dep
|
|
|
|
rm BambuStudio_dep_x86_64_21-01-2023.tar.gz
|
|
|
|
|
2023-01-12 14:55:50 +00:00
|
|
|
|
|
|
|
- name: Build studio
|
|
|
|
working-directory: ${{ github.workspace }}
|
|
|
|
run: ./build_release_macos.sh -s -n -a x86_64
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: BambuStudio-SoftFever_Mac
|
|
|
|
path: ${{ github.workspace }}/build/BambuStudio-SoftFever/BambuStudio-SoftFever*.zip
|