mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
Try Github action workflow for MacOS build
This commit is contained in:
parent
4bdc8e6b9e
commit
de54f547d5
67
.github/workflows/macos.yml
vendored
Normal file
67
.github/workflows/macos.yml
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
name: MacOS
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install build tools
|
||||||
|
run: brew install automake autoconf libtool pkg-config
|
||||||
|
|
||||||
|
- name: Install libinotify-kqueue
|
||||||
|
# brew package does not have unlock-notify
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/libinotify-kqueue/libinotify-kqueue
|
||||||
|
cd libinotify-kqueue
|
||||||
|
autoreconf -fvi
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
- name: Install sqlite
|
||||||
|
# brew package does not have unlock-notify
|
||||||
|
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: |
|
||||||
|
sudo chown -R $(whoami) $(brew --prefix)/*
|
||||||
|
brew install ffmpeg
|
||||||
|
|
||||||
|
- name: Install gperf and antlr3
|
||||||
|
run: |
|
||||||
|
brew install gperf
|
||||||
|
wget https://github.com/ejurgensen/actionstest/blob/master/antlr35_install.sh
|
||||||
|
./antlr35_install.sh -p /usr/local
|
||||||
|
|
||||||
|
- name: Install other dependencies
|
||||||
|
run: brew install libunistring libmxml confuse libplist sqlite libwebsockets libevent libgcrypt json-c protobuf-c libsodium gnutls pulseaudio
|
||||||
|
|
||||||
|
- name: Configure forked-daapd
|
||||||
|
run: |
|
||||||
|
autoreconf -fi
|
||||||
|
./configure --enable-chromecast --enable-lastfm --with-pulseaudio
|
||||||
|
|
||||||
|
- name: Build forked-daapd
|
||||||
|
run: make
|
||||||
|
|
||||||
|
- name: Install forked-daapd
|
||||||
|
run: sudo make install
|
Loading…
Reference in New Issue
Block a user