From 0662d30ad06117af5aa078e2c230b76381436069 Mon Sep 17 00:00:00 2001 From: redtide Date: Sat, 26 Aug 2023 19:55:31 +0200 Subject: [PATCH] CI: macOS universal build --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e77adb9..abfa6f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -155,6 +155,11 @@ jobs: ${options[@]} -D SFIZZ_USE_SYSTEM_ABSEIL=ON ) + else + options=( + ${options[@]} + -D CMAKE_OSX_ARCHITECTURES="arm64;x86_64" + ) fi cmake "${options[@]}" echo "-- runner.workspace: ${{ runner.workspace }}" @@ -168,6 +173,7 @@ jobs: --verbose ) cmake "${options[@]}" + lipo -i ./build/sfizz.component/Contents/MacOS/sfizz - name: Validate AU working-directory: ${{ github.workspace }}/build # Force a rescan after copy (thank you @PythonBlue), see