Skip to content

Commit 6a1c763

Browse files
CI: Support macOS 15 build with autotools
Use also always Qt 5 on macOS 13 and Qt 6 on macOS 15.
1 parent ba69553 commit 6a1c763

File tree

3 files changed

+28
-11
lines changed

3 files changed

+28
-11
lines changed

.github/actions/install-dependencies/install-dependencies.sh

+11-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# ubuntu-22.04: Qt 5 + GTK 3
77
# ubuntu-24.04: Qt 6 + GTK 3
88
# Windows: Qt 6 + GTK 2
9-
# macOS (Autotools): Qt 5 - GTK
10-
# macOS (Meson): Qt 6 - GTK
9+
# macOS 13: Qt 5 - GTK
10+
# macOS 15: Qt 6 - GTK
1111

1212
os=$(tr '[:upper:]' '[:lower:]' <<< "$1")
1313
build_system=$(tr '[:upper:]' '[:lower:]' <<< "$2")
@@ -58,11 +58,19 @@ case "$os" in
5858
fi
5959
;;
6060

61+
macos-13)
62+
if [ "$build_system" = 'meson' ]; then
63+
brew install $macos_packages qt@5 meson
64+
else
65+
brew install $macos_packages qt@5 automake
66+
fi
67+
;;
68+
6169
macos*)
6270
if [ "$build_system" = 'meson' ]; then
6371
brew install $macos_packages qt@6 meson
6472
else
65-
brew install $macos_packages qt@5 automake
73+
brew install $macos_packages qt@6 automake libiconv
6674
fi
6775
;;
6876

.github/actions/run-action/run-action.sh

+17-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# ubuntu-22.04: Qt 5 + GTK 3
77
# ubuntu-24.04: Qt 6 + GTK 3
88
# Windows: Qt 6 + GTK 2
9-
# macOS (Autotools): Qt 5 - GTK
10-
# macOS (Meson): Qt 6 - GTK
9+
# macOS 13: Qt 5 - GTK
10+
# macOS 15: Qt 6 - GTK
1111

1212
action=$(tr '[:upper:]' '[:lower:]' <<< "$1")
1313
os=$(tr '[:upper:]' '[:lower:]' <<< "$2")
@@ -49,13 +49,25 @@ case "$action" in
4949
fi
5050
;;
5151

52+
macos-13)
53+
export PATH="/usr/local/opt/qt@5/bin:$PATH"
54+
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"
55+
56+
if [ "$build_system" = 'meson' ]; then
57+
meson setup build -D qt5=true -D gtk=false -D mac-media-keys=true
58+
else
59+
./autogen.sh && ./configure --enable-qt5 --disable-gtk --enable-mac-media-keys
60+
fi
61+
;;
62+
5263
macos*)
64+
export PATH="/opt/homebrew/opt/qt@6/bin:$PATH"
65+
export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@6/libexec/lib/pkgconfig:$PKG_CONFIG_PATH"
66+
5367
if [ "$build_system" = 'meson' ]; then
5468
meson setup build -D gtk=false -D mac-media-keys=true
5569
else
56-
export PATH="/usr/local/opt/qt@5/bin:$PATH"
57-
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"
58-
./autogen.sh && ./configure --enable-qt5 --disable-gtk --enable-mac-media-keys
70+
./autogen.sh && ./configure --disable-gtk --enable-mac-media-keys
5971
fi
6072
;;
6173

.github/workflows/c-cpp.yml

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
macos-13, macos-15,
1515
windows-2022]
1616
build-system: [autotools, meson]
17-
exclude:
18-
- os: macos-15
19-
build-system: autotools
2017
fail-fast: false
2118
runs-on: ${{ matrix.os }}
2219

0 commit comments

Comments
 (0)