Skip to content

Commit c08c7da

Browse files
CI: Try to fix macOS build
1 parent 6c014fc commit c08c7da

5 files changed

Lines changed: 17 additions & 16 deletions

File tree

.github/actions/install-dependencies/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ runs:
1616
- run: '$GITHUB_ACTION_PATH/install-dependencies.sh "${{ inputs.os }}" "${{ inputs.build-system }}"'
1717
if: (!startsWith(inputs.os, 'windows'))
1818
shell: bash
19+
env:
20+
CC: clang
21+
CXX: clang++
1922

2023
- uses: msys2/setup-msys2@v2
2124
if: startsWith(inputs.os, 'windows')

.github/actions/run-action/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ runs:
1919
- run: '$GITHUB_ACTION_PATH/run-action.sh "${{ inputs.action }}" "${{ inputs.os }}" "${{ inputs.build-system }}"'
2020
if: (!startsWith(inputs.os, 'windows'))
2121
shell: bash
22+
env:
23+
CC: clang
24+
CXX: clang++
2225

2326
- run: '$GITHUB_ACTION_PATH/run-action.sh "${{ inputs.action }}" "${{ inputs.os }}" "${{ inputs.build-system }}"'
2427
if: startsWith(inputs.os, 'windows')

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ case "$action" in
4747
if [ "$build_system" = 'meson' ]; then
4848
meson setup build -D qt5=true -D gtk=false -D mac-media-keys=true
4949
else
50-
./autogen.sh && ./configure --enable-qt5 --disable-gtk --enable-mac-media-keys
50+
autoreconf -I "/usr/local/share/gettext/m4" && ./configure --enable-qt5 --disable-gtk --enable-mac-media-keys
5151
fi
5252
;;
5353

@@ -58,7 +58,13 @@ case "$action" in
5858
if [ "$build_system" = 'meson' ]; then
5959
meson setup build -D gtk=false -D mac-media-keys=true
6060
else
61-
./autogen.sh && ./configure --disable-gtk --enable-mac-media-keys
61+
brew remove gcc@12
62+
brew remove gcc@13
63+
brew remove gcc@14
64+
65+
export LDFLAGS="-L/opt/homebrew/opt/libiconv/lib"
66+
export CPPFLAGS="-I/opt/homebrew/opt/libiconv/include"
67+
autoreconf -I "/opt/homebrew/opt/gettext/share/gettext/m4" && ./configure --disable-gtk --enable-mac-media-keys
6268
fi
6369
;;
6470

.github/workflows/c-cpp.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
os: [ubuntu-22.04, ubuntu-24.04,
14-
macos-13, macos-15,
15-
windows-2022]
16-
build-system: [autotools, meson]
17-
exclude:
18-
- os: macos-15
19-
build-system: autotools
13+
os: [macos-15]
14+
build-system: [autotools]
2015
fail-fast: false
2116
runs-on: ${{ matrix.os }}
2217

acinclude.m4

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,7 @@ AC_REQUIRE([AC_SYS_LARGEFILE])
101101
102102
if test "x$GCC" = "xyes"; then
103103
CFLAGS="$CFLAGS -std=gnu99 -ffast-math -Wall -pipe"
104-
CXXFLAGS="$CXXFLAGS -ffast-math -Wall -pipe"
105-
106-
# use C++17 if possible (Qt 6 requires it)
107-
AUD_CHECK_CXXFLAGS(-std=gnu++17)
108-
if test "${CXXFLAGS%gnu++17}" = "$CXXFLAGS" ; then
109-
CXXFLAGS="$CXXFLAGS -std=gnu++11"
110-
fi
104+
CXXFLAGS="$CXXFLAGS -std=gnu++17 -ffast-math -Wall -pipe"
111105
112106
AUD_CHECK_CFLAGS(-Wtype-limits)
113107
AUD_CHECK_CFLAGS(-Wno-stringop-truncation)

0 commit comments

Comments
 (0)