* fix more colors * fix more color on Mac Signed-off-by: SoftFever <103989404+SoftFever@users.noreply.github.com> * fix new windows issue on Mac Signed-off-by: SoftFever <103989404+SoftFever@users.noreply.github.com> #137 * Support more PrusaSlicer variables Signed-off-by: SoftFever <103989404+SoftFever@users.noreply.github.com> * enhance compatibility: bed_shape and wipe_start_x * fix more color * build deps * only build for PR Signed-off-by: SoftFever <softfeverever@gmail.com> Signed-off-by: SoftFever <103989404+SoftFever@users.noreply.github.com> Signed-off-by: SoftFever <softfeverever@gmail.com>
51 lines
No EOL
1.7 KiB
YAML
51 lines
No EOL
1.7 KiB
YAML
name: Build Mac arm64
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build_win64:
|
|
name: Build Mac arm64
|
|
runs-on: macos-12
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install tools
|
|
run: |
|
|
brew install cmake git gettext zstd
|
|
- run: mkdir -p ${{ github.workspace }}/deps/build
|
|
# - run: mkdir -p ${{ github.workspace }}/deps/build/BambuStudio_dep
|
|
|
|
# - name: build deps
|
|
# id: cache_deps
|
|
# uses: actions/cache@v3
|
|
# env:
|
|
# cache-name: ${{ runner.os }}-cache-bambustudio_deps_arm64
|
|
# 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 arm64
|
|
- name: Download and extract deps
|
|
working-directory: ${{ github.workspace }}
|
|
run: |
|
|
curl -LJO https://github.com/SoftFever/FileSharing/releases/download/2/BambuStudio_dep_arm64.tar.gz
|
|
tar -zxvf BambuStudio_dep_arm64.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_arm64.tar.gz
|
|
|
|
|
|
- name: Build studio
|
|
working-directory: ${{ github.workspace }}
|
|
run: ./build_release_macos.sh -s -n -a arm64
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: BambuStudio-SoftFever_Mac
|
|
path: ${{ github.workspace }}/build/BambuStudio-SoftFever/BambuStudio-SoftFever*.zip |