Compare commits

...

2 Commits

Author SHA1 Message Date
ejurgensen 6a93172cb9
[gh-actions] Use stock Homebrew sqlite
GH action's Homebrew should install has sqlite 3.43.0_1+, which has unlock-notify
2024-04-19 08:50:13 +02:00
ejurgensen f00aae6c6c
[gh-actions] Attempt fix for macOS workflow broken by mxml 4 2024-04-19 08:40:51 +02:00
1 changed files with 7 additions and 16 deletions

View File

@ -38,6 +38,12 @@ jobs:
sudo ln -s /usr/local/opt/bison/bin/bison /usr/local/bin/bison
sudo ln -s /usr/local/opt/flex/bin/flex /usr/local/bin/flex
- name: Install libmxml
# Homebrew by default comes with libmxml 4, but it isn't compatible with mxml 3 which we need
run: |
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/71bfcd3624ee88eee1e2ea6653753dafd48e7fcf/Formula/lib/libmxml.rb
brew install --build-from-source libmxml.rb
- name: Install libinotify-kqueue
# brew does not have libinotify package
run: |
@ -49,19 +55,6 @@ jobs:
sudo make install
cd ..
- name: Install sqlite
# When GH actions has 3.43.0_1+, which has unlock-notify, then this can be
# removed and we can just install brew's sqlite
run: |
wget https://www.sqlite.org/2020/sqlite-autoconf-3310100.tar.gz
tar xzf sqlite-autoconf-3310100.tar.gz
cd sqlite-autoconf-3310100
export CFLAGS='-DSQLITE_ENABLE_UNLOCK_NOTIFY=1'
./configure
make
sudo make install
cd ..
- name: Install ffmpeg
# The libbluray ffmpeg dependency fails without the chown (source: stackoverflow)
run: |
@ -69,10 +62,8 @@ jobs:
brew install ffmpeg
- name: Install other dependencies
# Homebrew has libmxml but it isn't compatible with mxml 3
run: |
brew search libmxml
brew install libunistring libmxml@3 confuse libplist libwebsockets libevent libgcrypt json-c protobuf-c libsodium gnutls pulseaudio openssl
brew install sqlite libunistring confuse libplist libwebsockets libevent libgcrypt json-c protobuf-c libsodium gnutls pulseaudio openssl
- name: Configure
# We configure a non-privileged setup, since how to add a "owntone" system