Build macOS release as Universal Binary (#267)

* Update CMakeLists.txt

* Edit output filename to reflect building as Universal binary
This commit is contained in:
TheOliveOli 2025-06-22 01:37:31 +02:00 committed by GitHub
parent 4a18bf3881
commit 9a9a18999d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,6 @@ jobs:
- name: Publish packaged artifacts
uses: actions/upload-artifact@v4
with:
name: spaghetti-mac-x64
name: spaghetti-mac-universal
path: spaghetti-release
retention-days: 1

View File

@ -27,6 +27,9 @@ endif()
# Set the minimum version of CMake and the deployment target for macOS
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
# Set CMake to build as Universal Binary for macOS
set(CMAKE_OSX_ARCHITECTURES=arm64;x86_64)
# Set the C++ standard and enable the MSVC parallel build option
set(CMAKE_CXX_STANDARD 20 CACHE STRING "The C++ standard to use")
set(CMAKE_C_STANDARD 11 CACHE STRING "The C standard to use")