mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 22:14:00 -06:00
parent
43f4288fdc
commit
96c861f906
14 changed files with 581 additions and 84 deletions
|
@ -1,4 +1,4 @@
|
|||
name: BambuStudio-SoftFever
|
||||
name: Build Linux
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
|
@ -20,13 +20,19 @@ jobs:
|
|||
- name: Fix permissions
|
||||
shell: bash
|
||||
run: sudo chown $USER -R ./
|
||||
- name: Build Bambu Studio dependencies using BuildLinux.sh
|
||||
shell: bash
|
||||
run: ./BuildLinux.sh -dsr
|
||||
- name: Build Bambu Studio AppImage using BuildLinux.sh
|
||||
shell: bash
|
||||
run: ./BuildLinux.sh -ir
|
||||
- uses: actions/upload-artifact@v3
|
||||
- name: build deps
|
||||
id: cache_deps
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: ${{ runner.os }}-cache-bambustudio_deps_x64
|
||||
with:
|
||||
name: AppImage
|
||||
path: './build/BambuStudio_ubu64.AppImage'
|
||||
path: ${{ github.workspace }}/deps/build/destdir
|
||||
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: ./BuildLinux.sh -dsr
|
||||
|
||||
|
51
.github/workflows/build_mac_arm64.yml
vendored
Normal file
51
.github/workflows/build_mac_arm64.yml
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
name: Build Mac arm64
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
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
|
42
.github/workflows/build_mac_x64.yml
vendored
Normal file
42
.github/workflows/build_mac_x64.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
name: Build Mac x64
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
build_win64:
|
||||
name: Build Mac x64
|
||||
runs-on: macos-latest
|
||||
|
||||
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_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: 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
|
58
.github/workflows/build_win.yml
vendored
Normal file
58
.github/workflows/build_win.yml
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
name: Build Win64
|
||||
|
||||
on: [pull_request,push]
|
||||
|
||||
jobs:
|
||||
build_win64:
|
||||
name: Build Win64
|
||||
runs-on: windows-2019
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
# - name: Install perl
|
||||
# run: |
|
||||
# choco install strawberryperl
|
||||
- run: mkdir ${{ github.workspace }}/deps/build
|
||||
- run: mkdir ${{ github.workspace }}/deps/build/BambuStudio_dep
|
||||
- name: download deps
|
||||
shell: powershell
|
||||
run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/SoftFever/FileSharing/releases/download/2/BambuStudio_dep.zip", "$env:temp\BambuStudio_dep.zip")'
|
||||
- name: extract deps
|
||||
working-directory: ${{ github.workspace }}/deps/build
|
||||
shell: cmd
|
||||
run: '"C:/Program Files/7-Zip/7z.exe" x %temp%\BambuStudio_dep.zip'
|
||||
|
||||
- run: dir "${{ github.workspace }}\deps\build\BambuStudio_dep"
|
||||
|
||||
# - name: build deps
|
||||
# id: cache_deps
|
||||
# uses: actions/cache@v3
|
||||
# env:
|
||||
# cache-name: ${{ runner.os }}-cache-bambustudio_deps
|
||||
# with:
|
||||
# path: ${{ github.workspace }}/deps/build/BambuStudio_dep
|
||||
# key: ${{ runner.os }}-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.bat deps
|
||||
|
||||
# - run: Get-ChildItem ${{ github.workspace }}/deps/build/ -Exclude BambuStudio_dep | Remove-Item -Recurse -Force
|
||||
|
||||
- name: Build studio
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: .\build_release.bat studio
|
||||
|
||||
- name: pack app
|
||||
working-directory: ${{ github.workspace }}/build
|
||||
shell: cmd
|
||||
run: '"C:/Program Files/7-Zip/7z.exe" a -tzip BambuStudio-SoftFever_dev_build.zip ${{ github.workspace }}/build/BambuStudio-SoftFever'
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: BambuStudio-SoftFever_Win64
|
||||
path: ${{ github.workspace }}/build/BambuStudio-SoftFever_dev_build.zip
|
Loading…
Add table
Add a link
Reference in a new issue