Skip to content

Commit

Permalink
macOS: force universal binary release (#145)
Browse files Browse the repository at this point in the history
Using universal dependencies (ffmpeg).
  • Loading branch information
kosua20 committed Sep 4, 2023
1 parent 04265d8 commit 71c1eff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- os: windows-2019
cmake-opts: -A x64
- os: macos-11
cmake-opts:
cmake-opts: -G Xcode

runs-on: ${{ matrix.os }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
asset_name: MIDIVisualizer-windows-64bits.zip
ffmpeg-archive: ffmpeg-windows-64-static-lgpl.zip
- os: macos-11
cmake-opts:
artifact_name: build/MIDIVisualizer.app
cmake-opts: -G Xcode
artifact_name: build/Release/MIDIVisualizer.app
asset_name: MIDIVisualizer-macos.zip
ffmpeg-archive: ffmpeg-osx-64-static-lgpl.zip
ffmpeg-archive: ffmpeg-osx-uni64-static-lgpl.zip

runs-on: ${{ matrix.os }}

Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 3.8)

# macOS specific settings (force Universal binary)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum OS X deployment version")
set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)" CACHE STRING "" FORCE)

project(MIDIVisualizer)
set(CMAKE_CXX_STANDARD 11)
Expand Down

0 comments on commit 71c1eff

Please sign in to comment.