summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheOliveOli <152160964+TheOliveOli38@users.noreply.github.com>2025-06-22 01:37:31 +0200
committerGitHub <noreply@github.com>2025-06-21 17:37:31 -0600
commit9a9a18999df136a226b1696b65f9eeb9a2f191ed (patch)
treeade439360f4dce9ab2b6f3dd439e3c17adb6f094
parent4a18bf388102ce13fd47569a0e053b8e7e38c857 (diff)
Build macOS release as Universal Binary (#267)
* Update CMakeLists.txt * Edit output filename to reflect building as Universal binary
-rw-r--r--.github/workflows/macos-compile.yml2
-rw-r--r--CMakeLists.txt3
2 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/macos-compile.yml b/.github/workflows/macos-compile.yml
index d6259505b..864209387 100644
--- a/.github/workflows/macos-compile.yml
+++ b/.github/workflows/macos-compile.yml
@@ -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
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f13562555..f77ecf401 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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")