Skip to content

Commit

Permalink
CI: Use Qt 5 on macOS 13 and Qt 6 on macOS 15
Browse files Browse the repository at this point in the history
The macOS 15 autotools build stays disabled because many header files
are not found (adplug, opusfile, soxr, ...) here for some reason.
  • Loading branch information
radioactiveman committed Jan 6, 2025
1 parent ceaf237 commit 462ffcd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
14 changes: 11 additions & 3 deletions .github/actions/install-dependencies/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# ubuntu-22.04: Qt 5 + GTK 3
# ubuntu-24.04: Qt 6 + GTK 3
# Windows: Qt 6 + GTK 2
# macOS (Autotools): Qt 5 - GTK
# macOS (Meson): Qt 6 - GTK
# macOS 13: Qt 5 - GTK
# macOS 15: Qt 6 - GTK

os=$(tr '[:upper:]' '[:lower:]' <<< "$1")
build_system=$(tr '[:upper:]' '[:lower:]' <<< "$2")
Expand Down Expand Up @@ -58,11 +58,19 @@ case "$os" in
fi
;;

macos-13)
if [ "$build_system" = 'meson' ]; then
brew install $macos_packages qt@5 meson
else
brew install $macos_packages qt@5 automake
fi
;;

macos*)
if [ "$build_system" = 'meson' ]; then
brew install $macos_packages qt@6 meson
else
brew install $macos_packages qt@5 automake
brew install $macos_packages qt@6 automake libiconv
fi
;;

Expand Down
22 changes: 17 additions & 5 deletions .github/actions/run-action/run-action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# ubuntu-22.04: Qt 5 + GTK 3
# ubuntu-24.04: Qt 6 + GTK 3
# Windows: Qt 6 + GTK 2
# macOS (Autotools): Qt 5 - GTK
# macOS (Meson): Qt 6 - GTK
# macOS 13: Qt 5 - GTK
# macOS 15: Qt 6 - GTK

action=$(tr '[:upper:]' '[:lower:]' <<< "$1")
os=$(tr '[:upper:]' '[:lower:]' <<< "$2")
Expand Down Expand Up @@ -49,13 +49,25 @@ case "$action" in
fi
;;

macos-13)
export PATH="/usr/local/opt/qt@5/bin:$PATH"
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"

if [ "$build_system" = 'meson' ]; then
meson setup build -D qt5=true -D gtk=false -D mac-media-keys=true
else
./autogen.sh && ./configure --enable-qt5 --disable-gtk --enable-mac-media-keys
fi
;;

macos*)
export PATH="/opt/homebrew/opt/qt@6/bin:$PATH"
export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@6/libexec/lib/pkgconfig:$PKG_CONFIG_PATH"

if [ "$build_system" = 'meson' ]; then
meson setup build -D gtk=false -D mac-media-keys=true
else
export PATH="/usr/local/opt/qt@5/bin:$PATH"
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"
./autogen.sh && ./configure --enable-qt5 --disable-gtk --enable-mac-media-keys
./autogen.sh && ./configure --disable-gtk --enable-mac-media-keys
fi
;;

Expand Down

0 comments on commit 462ffcd

Please sign in to comment.