From 0c1fe47bc182b764e80f8ee32729c013f800a66d Mon Sep 17 00:00:00 2001 From: Bruno Alexandre Rosa <1791393+brunoalr@users.noreply.github.com> Date: Thu, 2 Oct 2025 19:08:19 -0300 Subject: [PATCH] Simplify --x86-macos --- .ci/compile.sh | 10 +++------- .github/workflows/desktop-build.yml | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.ci/compile.sh b/.ci/compile.sh index a34ef06c4..b618547b4 100755 --- a/.ci/compile.sh +++ b/.ci/compile.sh @@ -11,7 +11,7 @@ # --debug or --release sets the build type ie CMAKE_BUILD_TYPE # --ccache [] uses ccache and shows stats, optionally provide size # --dir sets the name of the build dir, default is "build" -# --x86-macos +# --x86-macos sets the min os version to 13.0 - only used for Intel builds # uses env: BUILDTYPE MAKE_INSTALL MAKE_PACKAGE PACKAGE_TYPE PACKAGE_SUFFIX MAKE_SERVER MAKE_TEST USE_CCACHE CCACHE_SIZE BUILD_DIR CMAKE_GENERATOR # (correspond to args: --debug/--release --install --package --suffix --server --test --ccache --dir ) # exitcode: 1 for failure, 3 for invalid arguments @@ -78,11 +78,7 @@ while [[ $# != 0 ]]; do ;; '--x86-macos') shift - if [[ $# == 0 ]]; then - echo "::error file=$0::--x86-macos expects an argument" - exit 3 - fi - x86_MACOS="$1" + X86_MACOS=1 shift ;; *) @@ -126,7 +122,7 @@ fi if [[ $PACKAGE_TYPE ]]; then flags+=("-DCPACK_GENERATOR=$PACKAGE_TYPE") fi -if [[ $x86_MACOS == true ]]; then +if [[ $X86_MACOS ]]; then flags+=("-DCMAKE_OSX_DEPLOYMENT_TARGET=13.0") flags+=("-DVCPKG_TARGET_TRIPLET=x64-osx-13") flags+=("-DVCPKG_OVERLAY_TRIPLETS=../cmake/triplets") diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index 90fc34598..430b33824 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -319,7 +319,7 @@ jobs: VCPKG_DISABLE_METRICS: 1 VCPKG_BINARY_SOURCES: 'clear;files,${{ steps.vcpkg-cache.outputs.path }},readwrite' VCPKG_OSX_DEPLOYMENT_TARGET: ${{ matrix.soc == 'Intel' && '13.0' || '' }} - run: .ci/compile.sh --server --test --ccache "$CCACHE_SIZE" --x86-macos ${{ matrix.soc == 'Intel' }} + run: .ci/compile.sh --server --test --ccache "$CCACHE_SIZE" ${{ matrix.soc == 'Intel' && '--x86-macos' || '' }} - name: Sign app bundle if: matrix.make_package && (github.ref == 'refs/heads/master' || needs.configure.outputs.tag != null)