mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-19 06:41:14 -06:00
ENH: Improve macOS build script (#4310)
* ENH: Improve macOS build script - Update shebang to bash, as it is already expected to be present in run_gettext.sh - Added fail-fast shell options. - Changed default CMake generator to Ninja - Adopted configuration for non-multi-config generators (Ninja, Make) - Added new options: - Allow to set CMake generator back to Xcode, no option for make thou. - Allow to build without reconfiguring CMake, improves build times. Unnecessary Cmake reconfigurations require full rebuild. - Allow to set build configuration for CMake - Reorganized targets into separate function to break "cd" dependency. - Reformat shell code. - Fix all warnings reported by ShellCheck linter tool. - Update run_gettext.sh to respect build dir in full mode. Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com> * FIX: Install ninja with brew on CI. Test if building works with Ninja by default. Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com> * ENH: Set Xcode back as default generator. Use Ninja on CI with explicit option. Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com> * FIX: Partially revent changes in run_gettext.sh Revert changes for option parsing. Leave fixes for issues found by ShellCheck linter tool. Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com> --------- Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
parent
eae2703610
commit
7b31ee3a45
5 changed files with 177 additions and 69 deletions
4
.github/workflows/build_deps.yml
vendored
4
.github/workflows/build_deps.yml
vendored
|
@ -70,12 +70,12 @@ jobs:
|
|||
if: inputs.os == 'macos-12'
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
brew install cmake git gettext automake texinfo
|
||||
brew install cmake git gettext automake texinfo ninja
|
||||
brew list
|
||||
mkdir -p ${{ github.workspace }}/deps/build_${{ inputs.arch }}
|
||||
mkdir -p ${{ github.workspace }}/deps/build_${{ inputs.arch }}/OrcaSlicer_dep_${{ inputs.arch }}
|
||||
brew uninstall --ignore-dependencies zstd
|
||||
./build_release_macos.sh -dp -a ${{ inputs.arch }} -t 10.15
|
||||
./build_release_macos.sh -dpx -a ${{ inputs.arch }} -t 10.15
|
||||
brew install zstd
|
||||
|
||||
|
||||
|
|
4
.github/workflows/build_orca.yml
vendored
4
.github/workflows/build_orca.yml
vendored
|
@ -75,7 +75,7 @@ jobs:
|
|||
- name: Install tools mac
|
||||
if: inputs.os == 'macos-12'
|
||||
run: |
|
||||
brew install cmake git gettext tree
|
||||
brew install cmake git gettext tree ninja
|
||||
brew list
|
||||
mkdir -p ${{ github.workspace }}/deps/build_${{inputs.arch}}
|
||||
mkdir -p ${{ github.workspace }}/deps/build_${{inputs.arch}}/OrcaSlicer_dep_${{inputs.arch}}
|
||||
|
@ -85,7 +85,7 @@ jobs:
|
|||
if: inputs.os == 'macos-12'
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
./build_release_macos.sh -s -n -a ${{inputs.arch}} -t 10.15
|
||||
./build_release_macos.sh -s -n -x -a ${{inputs.arch}} -t 10.15
|
||||
|
||||
# Thanks to RaySajuuk, it's working now
|
||||
- name: Sign app and notary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue