Skip to content

Commit

Permalink
Avoid using the homebrew qt6 which doesn't work with macdeployqt
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronwhite committed Sep 29, 2024
1 parent 08a981f commit 50ed543
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,17 @@ jobs:
rm /usr/local/bin/idle3*
rm /usr/local/bin/pydoc3*
rm /usr/local/bin/python3*
brew install --overwrite boost cmake doctest minizip ninja nlohmann-json pugixml qt6 pugixml rtmidi
brew install --overwrite boost cmake doctest minizip ninja nlohmann-json pugixml pugixml rtmidi
# Note: we avoid using the homebrew Qt since it breaks macdeployqt (https://github.com/Homebrew/brew/issues/15354)
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
arch: clang_64
version: 6.7.2

- name: Generate Project
run: cmake -S ${GITHUB_WORKSPACE} -B ${{runner.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/local/opt/qt6/lib/cmake
run: cmake -S ${GITHUB_WORKSPACE} -B ${{runner.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build ${{runner.workspace}}/build
- name: Test
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ You'll have to update the variables for your specific paths to `$vcpkg_exe_path`
* Install Xcode along with its Command Line Tools.
* Install dependencies:
* `brew install boost cmake doctest minizip ninja nlohmann-json pugixml qt6 pugixml rtmidi`
* Note that the Qt package from homebrew [does not currently work for building the installer|https://github.com/Homebrew/brew/issues/15354]. Installing via https://github.com/miurahr/aqtinstall is an alternative.
* Build:
* `mkdir build && cd build`
* `cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/usr/local/opt/qt6/lib/cmake ..`
Expand Down

0 comments on commit 50ed543

Please sign in to comment.